css on active slides
-
So I am looking for a solution here. My issue is I am using the looped slider, showing 3 items at a time. I am trying to make it where the first and third active slide have a slight overlaid opacity over it. My issue is that when I use the css selector :nth-child(odd):after, it works for the first set of three slides that are visible. Once it slides though, it does not switch the css for the outer slides, because it acts as if the previous item that had an active class still is an active class. This creates an unwanted effect where it just alternates between having opacity and not.
I guess my question is are there any hooks or events that I can use which will tell me when the class has changed to/from active or the slides have been slidden (manually/automatically)?
The topic ‘css on active slides’ is closed to new replies.