Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
It would be helpful if Field Slideshow triggered a custom JavaScript event when the slide changes so that other modules can react as needed.
field_slideshow.js already registers a callback function to cycle's "before" transition event, so it should be a matter of creating a custom event and triggering it on a shared element, like the document itself.
Comment | File | Size | Author |
---|---|---|---|
#1 | field_slideshow-1999130-1-add_js_before_event.patch | 897 bytes | arithmetric |
Comments
Comment #1
arithmetric CreditAttribution: arithmetric commentedAttached is a patch that triggers the custom event "beforeTransition.fieldSlideshow" on the document object before the slide changes.
Other JS code can react to this event by implementing: