Page 1 of 1

Carousel mix-up

Posted: Thu Jun 16, 2022 5:32 am
by me.prosenjeet
Case:
I added a layout grid and placed a carousel over it
Added three images as 3 slides.
Added two objects on slide 1
Preview:
The animation on slide 1 doesn't show however when the carousel goes through all the three slides and repeats the first slide, now the animation works.
What could be wrong?
Please see it here: *link removed*

Re: Carousel mix-up

Posted: Thu Jun 16, 2022 5:48 am
by Pablo
This is normal behavior, the event will not be triggered for the first slide when it loads because the slide is already visible, so there is no state change.

Re: Carousel mix-up

Posted: Thu Jun 16, 2022 6:45 am
by me.prosenjeet
Thank you Pablo for your quick reply.
After reading your reply another question comes in my mind Please have a look at this URL and tell me here how come the animation is working on the first slide?
*link removed*

Re: Carousel mix-up

Posted: Thu Jun 16, 2022 7:33 am
by me.prosenjeet
Hi Pablo,
Please look at this page again it has two carousels.
*link removed*
In the first carousel the animation on the first slide does not show till it reaches a full cycle.
In the second carousel, the animation on the first slide is visible from the initial load itself.

What could be the difference? Also, you had said the behaviour of the first carousel is what is expected then how carousel 2 is loading the animation?

Re: Carousel mix-up

Posted: Thu Jun 16, 2022 8:01 am
by me.prosenjeet
me.prosenjeet wrote: Thu Jun 16, 2022 7:33 am Hi Pablo,
Please look at this page again it has two carousels.
*link removed*
In the first carousel the animation on the first slide does not show till it reaches a full cycle.
In the second carousel, the animation on the first slide is visible from the initial load itself.

What could be the difference? Also, you had said the behaviour of the first carousel is what is expected then how carousel 2 is loading the animation?
I noticed one thing, looking at the second carousel where the animation is working on the first slide, if I am adding some new object to slide 1 and add animation to this object and then do a preview, on page load, the new object added will not display the animation and will show only after one round is completed.
See the demo (*link removed*) and look for the text
"This is a new text which will not animate on initial load
while all the other objects will animate from first load"

Re: Carousel mix-up

Posted: Thu Jun 16, 2022 9:36 am
by Pablo
Did you set the animation both on the object and in the carousel events?

Note: I cannot see what you have done based on the published page.

Re: Carousel mix-up

Posted: Thu Jun 16, 2022 9:47 am
by me.prosenjeet
I think I got it to work!!!
Thank you Pablo!