Glide: Is it possible to have controls outside of the `.glide` container?

Created on 31 Jul 2019  路  1Comment  路  Source: glidejs/glide

Wondering if I can use the controls markup outside of the .glide wrapper so it can be placed elsewhere on the page.

Thanks

Most helpful comment

You can use a js "click" event listener to navigate through a slider using the .go() method.
For example:

buttonNext.addEventListener("click", function(){
yourSlide.go('>');
});

You can read about it here: https://glidejs.com/docs/api/

>All comments

You can use a js "click" event listener to navigate through a slider using the .go() method.
For example:

buttonNext.addEventListener("click", function(){
yourSlide.go('>');
});

You can read about it here: https://glidejs.com/docs/api/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dodozhang21 picture dodozhang21  路  5Comments

iaarab picture iaarab  路  4Comments

Danielvandervelden picture Danielvandervelden  路  4Comments

robertu7 picture robertu7  路  6Comments

thany picture thany  路  3Comments