Jump to content
Search Community

Setting pin to true breaks my layout and does not pin the animation

whereisNate test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

  • Solution

Hi @whereisNate

 

Something in your CSS was not playing nice with GSAP, I couldn't figure out what, so I hade just removed the CSS and rebuild the layout. I'd also updated your GSAP plugins to the latest versions and set the ScrollTrigger to be the section where everything resides in. 

 

Also, you almost never need a .fromTo() animation, GSAP is smart and it will just tween to the browsers defaults. so .from() opacity: 0 will tween to 1 if you don't set anything in your CSS. 

 

Hope it helps and happy tweening! 

 

See the Pen gOqGKpp by mvaneijgen (@mvaneijgen) on CodePen

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