Carousel: Text and image animation not working properly
-
I have two issues with the carousel widget that I’ve been tackling with for several days and still unresolved. I’m hoping that someone would know the solution or be able to point me in the right direction.
1. The coloured text on the second slide:
– When that second slide comes in, for a split second at the beginning, the text pushes to the left and out of view before the proper entrance animation begins.
– This happens only on the second slide and on the first run when the carousel is loaded/looped.I’ve tried reordering the slides and the same bug happens to whatever the second slide is, so I know it’s not my slide design.
– The text is in Elementor’s text widget.Would anyone have any ideas on why this happens?
2. Image animation mistiming
– In my slide design, the background image is set up with animation that is timed to run when the slide comes in view.
– In order for the animation to happen when a slide appears, and I realize this while working with the carousel widget though, the animation duration needs to match the total length of the entire loop, including slide and transition time (e.g. (5 seconds per slide + 1 second transition) = 6 seconds x 2 slides = 12 seconds), and not the duration of only the animation portion when the slide appears (e.g. 5 seconds).
– In other words, the animation duration is set as follows: 5 seconds per slide + 1 second transition + X seconds as remaining length of time for one whole slider loop.
– To ensure the actual image animation matches when the slide appears, a timing delay needs to be added to each slide (e.g. for two slides, the second slide’s animation has a 6-second delay, third slide has a 12 second delay, etc.)
– The above is all done in my slide template, in Elementor’s Image Widget – Custom CSSThe set up described above works fine if the slider is left to run on its own course, but if a user clicks on a navigation dot to see a different slide, the animation would be off because it is running respective of the whole slider loop’s length and where it is at, rather than when the slide appears. (e.g. If you’re on the third slide and click to see the first slide, the first slide’s image animation hasn’t set to begin yet).
Note: The text’s entrance animation begins correctly every time I click the navigation dot to see a slide.
So my question is, is there a way to set the image animation so that it will run in sync when a slide appears? (e.g. Animation duration is set to 5 seconds and run when the slide appears, but how?)
Any feedback, ideas or leads appreciated. TIA!
- The topic ‘Carousel: Text and image animation not working properly’ is closed to new replies.