paulleon Posted August 6, 2022 Share Posted August 6, 2022 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 More sharing options...
Solution Cassie Posted August 6, 2022 Solution Share Posted August 6, 2022 Hey there! You'll need to couple functional values with invalidateOnRefreshx: () => wTitle Hope this helps! Link to comment Share on other sites More sharing options...
paulleon Posted August 6, 2022 Author Share Posted August 6, 2022 Thank you so much Cassie, it works now ! See the Pen KKoRJzL by akinorikul (@akinorikul) on CodePen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now