Bohdan.
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Bohdan.
-
-
Hi to all!
I need to play the animation right away without scrub control. When the trigger fires - animation play with duration.
gsap.timeline .from('.image', { opacity: 0, y: 80, ease: 'power2.ease', duration: 1, scrollTrigger: { trigger: '.image', start: 'top bottom-=10%' } }) .from('.image-2', { opacity: 0, y: 80, ease: 'power2.ease', duration: 1, scrollTrigger: { trigger: '.image-2', start: 'top bottom-=10%' } })
Is it possible to do this without onEnter callback and animation.play()?
Thank You!
Scrol Trigger play animation without scrub
in GSAP
Posted
@Rodrigo Thank you a lot!
Your variant works as it should. I thought it was good to use Timeline for a few animations.
That it will be more elegant )