Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I need to do some jQuery-stuff on the active slide. Not in the pager, but in the main slider. After loading the page, there is a class 'views_slideshow_cycle_hidden' on all non active rows. So I thought, I can use that for targeting the active image, but the class doesn't update, when the slide is changing.
Is this a bug?
Comments
Comment #1
krabbe CreditAttribution: krabbe commentedHere is a short version of the generated html code:
So, the first image is active, the second one is hidden and has the class 'views_slideshow_cycle_hidden'. When I click on a pager item the slide changes but the class doesn't.
For the pager items the active image class is changing with the slides, but in main slide nothing happens. The inline styles are changing for the slides and work as expected.
There is a first beta version online: http://kineofoto.de/album/portrait
Comment #2
nickBumgarner CreditAttribution: nickBumgarner commentedObviously this question was never answered and is quite old at this point. What was your solution here?
Comment #3
NickDickinsonWildeThere is no class applied, just styles. However you can still select in JavaScript with something like:
$('.views_slideshow_slide:visible')
Do not that depending on specific transitions and exact time that is run, that at times 2 slides from the same slideshow may be visible.