You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to add a class to a specific index?
I have a situation where I am focusing on a dynamic slide index on load and need to highlight it, so when I load I am moving to a custom index splide.mount(); splide.go(this.startIndex)
That then adds the "active" class and I can highlight it, but when I scroll away it moves the active class. So, can I STOP the active class from changing? OR, is there a way to target that splide that I went to by index?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
Is there a way to add a class to a specific index?
I have a situation where I am focusing on a dynamic slide index on load and need to highlight it, so when I load I am moving to a custom index
splide.mount();
splide.go(this.startIndex)
That then adds the "active" class and I can highlight it, but when I scroll away it moves the active class. So, can I STOP the active class from changing? OR, is there a way to target that splide that I went to by index?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions