MooTools Question: Download MooTools PDF

How to make the gallery go to the next or previous image using MooTools?

Tweet Share WhatsApp

Answer:

Sometime you might want to remove the built in buttons to make buttons outside the gallery. Doing that is very simple: Just make your buttons call the appropriate functions.
The functions to make it go to the next or previous images are respectively:

myGallery.nextItem();
myGallery.prevItem();

Download MooTools PDF Read All 16 MooTools Questions
Previous QuestionNext Question
How to make the gallery go to a specific image using MooTools?How to use the gallery with data from flickr in MooTools?