Show certain slide when loading page
Opened this issue · 2 comments
Andreas-2023 commented
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
NickPiscitelli commented
Yeah, you can just call the method after initializing.
glider.scrollItem(<slide-number>)
Andreas-2023 commented
Hi Nick, thank you very much :-)
Am Sa., 29. Apr. 2023 um 03:37 Uhr schrieb pickykneee <
***@***.***>:
… Yeah, you can just call the method after initializing.
glider.scrollItem(<slide-number>)
—
Reply to this email directly, view it on GitHub
<#250 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6YEE5FIV3WOSFFOQVVCSKDXDRWFDANCNFSM6AAAAAAWII2EG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>