Sameh_07
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Sameh_07
-
-
2 minutes ago, Cassie said:
You're only adding slide 1 to the timeline.
The component mounts - you add the animation for slide one, then on timeline complete you increment the item number but you don't actually add anything else to the timeline.
It's just looping the one slide you've told it to animate.What I wanted to do is to repeat the same timeline but for the new slide, hoping that by then the ref would be updated.
Is there something wrong with this logic?
- 1
-
I'm trying to make a simple slider that animates-in then out one slide after the other according to the
currentStep
variable, which gets incremented by 1 at the end of every slide, but nonetheless , I end up getting the same slide over and over again and can't figure out why...See the Pen mdmPwMN by samehhashy (@samehhashy) on CodePen
Problem with making a timeline that dynamically animates a different element every repetition, with Vue
in GSAP
Posted
Thank you all! that's been very helpful.
I now understand what exactly
repeat
does.