voronianski/swipe-js-iso

Active state for current slide

PabloMarch opened this issue · 1 comments

I couldn't find a way to set styles for the current slide, is this possible?

Do you want to apply a style that only affects the currently visible slide? If so, that is currently no possible with pure CSS as the information for the selectors isn't there.

However, it would be possible to extend the code easily enough to add a previousSlide, currentSlide and nextSlide class to the relevant slides, and you could target your styling towards those.