If I remember correctly didn't slideshow singleframe provide an 'active' class for the currently visible element?

It would be nice to have that again. Or is there a way to somehow provide that class via the jquery cycle custom settings? If so, how could I do it?

Thanks!

Comments

nickBumgarner’s picture

Issue summary: View changes

I would also like this. Do you have any solution or further information on this topic?

NickDickinsonWilde’s picture

Status: Active » Closed (works as designed)

yes, the active class can be set via the advanced options (requires the JSON2 library) available on the views UI setting page.

jberg1’s picture

I know this thread is super old. But everything I found online was vague and wasn't working. Even adding it to my own script to load the Jquery wasn't working. Not much documentation on how to enter it.

How I finally got it to work. Using the Advanced Options (requires the JSON2 library).
Under Slideshow->Settings->Advanced Options
Choose: "after". Then for the value enter:
$(this).addClass('active-slide');

Click "Update Advanced Option"
Then Choose: "before". Then for the value enter:
$(this).parent('.views-slideshow-cycle-main-frame').find('.active-slide').removeClass('active-slide');
Click "Update Advanced Option"

Update, Save View.
Hope this might help someone else.