Jump to content
Search Community

Seeking assistance with animation using pin

Salah Belaid test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Dear GreenSock community,

 

I am attempting to implement animation with pin and transform but it seem to be encountering unexpected behavior (im using transform so the boxes leave their place blank and bottom text should be in boxes position )

you can see what i'm trying to reach in the video  

Please find below a simplified version of the code I'm currently using in codepen

 

Any guidance or suggestions you can provide would be highly appreciated.

I am open to alternative approaches or any additional information that could assist in resolving this issue.

Thank you kindly for your time and expertise.

See the Pen vYQGyOy by Belaid-Salah-Eddine (@Belaid-Salah-Eddine) on CodePen

Link to comment
Share on other sites

  • Solution

Hi @Salah Belaid and welcome to the GreenSock forums!

 

In this case is better to use pinning for each element and use pinSpacing false and use the endTrigger property in order to keep the elements pinned until that particular element reaches certain position in the viewport.

 

Something like this:

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

 

Hopefully this helps.

Happy Tweening!

  • Thanks 1
Link to comment
Share on other sites

hello @Rodrigo 

 

Your assistance has been immensely helpful in resolving my animation issue, and I am truly grateful for your expertise and support

Your solution worked flawlessly, and I was able to successfully implement it in my project.

The clarity and detail of your explanation were exceptional

 

Thank you ❤️

  • Like 1
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...