As a beginner in jQuery, I have been exploring different animations and recently came across an issue with Firefox compatibility.
I discovered the animate.css library, and decided to incorporate its animations into text captions on a slider using the Soliloquy WordPress plugin.
The Soliloquy slider dynamically adds a class called
.soliloquy-active-slide
to the active slide. To apply the animation, I used jQuery to add the 'animated slideInLeft' class to the active slide:
jQuery('#caption-1').on('.soliloquy-id-8 .soliloquy-active-slide').addClass('animated slideInLeft');
Initially, the animation worked flawlessly when the first slide loaded. However, it stopped working upon returning to the first slide in Firefox, whereas it continued running smoothly in Chrome and Safari even after cycling through the slides again.
Interestingly, the animation functioned correctly in Firefox when the Firebug debugger was open.
While I haven't included much code here, I am willing to provide more if necessary. Any guidance on resolving this Firefox-specific issue would be greatly appreciated.
Thank you!