Jump to content
Search Community

play video with scrollTrigger smoothly

zhewar test
Moderator Tag

Recommended Posts

We love helping with GSAP-related questions, but unfortunately we just don't have the resources to provide free general consulting, logic troubleshooting, or "how do I recreate this cool effect I saw on another site?" tutorials. Of course anyone else is welcome to post an answer if they'd like - we just want to manage expectations.  

 

You might want to search the forums for "airpods" because a lot of people have talked about this effect:

https://greensock.com/search/?q=airpods&quick=1&type=forums_topic&nodes=11

 

Good luck!

Link to comment
Share on other sites

1 hour ago, zhewar said:

but how do some website like Apple or this one do it
https://www.dji.com/avata?site=brandsite&from=homepage

Apple uses exactly technic of image sequence. I just recently did the same 

 

https://greenshiftwp.com/how-to-make-apple-style-pin-scroll-video-animation/

 

On DJI, they use two methods at once. When you start scroll, they show image sequence, when you reach some point, they show autoplayed video with event attached to scroll. You can do the same with Scroll trigger if you attach video animation to ScrollTrigger callbacks (for example onToggle callback)

 

https://www.w3schools.com/tags/av_met_play.asp

 

P.s. more frames per second you export as image sequence, more smooth and realistic will be animation, you just need to find proper interpolation between scroll and frame change. 

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...