Greetings everyone! I am diving into the world of JavaScript and recently attempted to create a banner carousel animation. Specifically, I have 3 banners in rotation where each slide reveals text with an animation effect. However, I'm encountering an issue where the animations only work for the first three slides. Once the cycle restarts and the first slide comes back in, the text on that slide fails to animate, and all subsequent slides lack animation as well.
My inspiration for these banner animations came from this website:
banner text animation inspiration.
Here is the CSS code snippet I've tried using for the animations:
@-webkit-keyframes bounceInDown {
/* Animation keyframes here */
}
.bounceInDown {
animation-name: bounceInDown;
}
/* Similar keyframes and classes for other animation effects */
For a clearer understanding, please refer to this JSFiddle link.
I am captivated by text animations in banners, but being new to jQuery and JS, I need guidance on how to ensure the animations appear correctly on every slide transition. Although I have crafted CSS3 animations, I find myself at a roadblock at this particular step.
Thank you, Alexander