Jump to content
Search Community

update timeline variables on resize with scrolltrigger

paulleon test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hi,

I have an animation with scrolltrigger where a title gets masked while another appears when scrolling.

I want to have two sizes for my the titles (for mobile and desktop) and when I resized my screen I tried to set new values for my timeline animations but nothing gets updated. I have set invalidateOnRefresh to true but it doesn't seem to do anything.

Can anyone point me out what's wrong with my code ?

 

 

See the Pen eYMrPyZ by akinorikul (@akinorikul) 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...