Improving GSAP ScrollTrigger Cinema Animations on MobileImproving GSAP ScrollTrigger Cinema Animations on Mobile
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
On the Filmbot site which I developed earlier this year, we had this cinema animation when the curtains open. This works with clip-path and ScrollTrigger from GSAP. On mobile I disabled the motion. But I’ve played a lot with it to see if that can be also smooth on mobile. Which helped there a lot was adding scrub: 0.2 in GSAP ScrollTrigger to make the animation smoother on mobile. It adds a slight delay, so the animation catches up to the scroll position over 0.2 seconds instead of following it instantly. But sometimes it’s just better to disable it.
Senad's avatar
Good tip on scrub: 0.2, that small catch-up delay makes a big difference on mobile. Agree though that sometimes disabling the clip-path animation is the cleaner choice.
Eduard's avatar
Thanks!
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started