Jump to content
Search Community

update scrolltrigger coords after layout change

gweatherson test
Moderator Tag

Recommended Posts

In the example I'm moving an intro section off of the page using translate, as well bumping the footer up. If there is a better way to pull this off using gsap let me know.

 

The issue is since the layout changed and the x,y coords scrolltrigger is referencing are now different, the splittext animations aren't firing when they should be, they are happening too late.

 

Is there a better way to bump that intro panel off the screen or call a refresh, update, etc method for the scroll trigger batch elements?

 

 

See the Pen qBVdGEW by gweatherson (@gweatherson) on CodePen

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