MooTools Question: Download MooTools PDF

How to make the gallery go to a specific image using MooTools?

Tweet Share WhatsApp

Answer:

Just use the goTo function. But remember that its argument is an integer starting from 0 and not 1. For example, to make it skip to the fifth image, use this code:
myGallery.goTo(4);

Download MooTools PDF Read All 16 MooTools Questions
Previous QuestionNext Question
How to call the gallery from outside in MooTools?How to make the gallery go to the next or previous image using MooTools?