NickPiscitelli/Glider.js

Show certain slide when loading page

Opened this issue · 2 comments

Hello,

I've just changed from tiny-slider to glider.js, and I wonder if glider.js has a special feature which tiny-slider has.

With tiny-slider I created a calendar, where each slide contains a month. On my website are displayed three months at the same time, and when the permalink contains e.g. "august", the slide for "august" is shown IN THE MIDDLE of the three months. I realized that with "startIndex" and a condition "if (str_contains($_SERVER['REQUEST_URI'], 'august')) { $startindex = 7; }

Is it possible, to do something similar with glider.js?

Thank you very much in advance for your help!
Andreas

Yeah, you can just call the method after initializing.

glider.scrollItem(<slide-number>)