Jump to content
Search Community

Trying to find out to do an awesome animation

Keyur kadam test
Moderator Tag

Recommended Posts

Hi guys. I have found this very amazing image gallery and I come up with the idea to create a scroll gallery myself too. However, I seems dont quite understand what it is doing and how does the whole thing work out. Any help would be great. Thanks!

animation sample video link

 

 

 

 

 

 

See the Pen wvKwZXG by GreenSock (@GreenSock) on CodePen

Link to comment
Share on other sites

Hi @Keyur kadam and welcome to the GreenSock forums!

 

Yeah there is a difference between the video you posted and the example codepen. In the video every image comes from a different position as the text in the center fades out, while in the codepen example basically the entire container is being scaled down.

 

I forked and made some changes in the codepen so you can see a different approach. Have a look at it as well as the documentation in order to see how is working, but is pretty straight forward:

See the Pen poVqydG by GreenSock (@GreenSock) on CodePen

 

Happy Tweening!

  • Like 2
Link to comment
Share on other sites

  • 2 months later...

Hi,

 

You can either increase the end point to keep the gallery container pinned longer, but regardless of that if a user scrolls super fast there is no way to prevent that from happening with native scroll. I recommend you to watch this video about using ScrollTrigger:

 Happy Tweening!

  • Like 1
Link to comment
Share on other sites

  • Keyur kadam changed the title to Trying to find out to do an awesome animation

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...