Chaunce Posted December 16, 2021 Share Posted December 16, 2021 Hello. I created an an animation using splitText. My question is and this is for any animation using GSAP, how do I stop an animation at a certain screen size. I want to stop the splitText animation at 810px. An of course this is 2021 and I'm using the latest version of GSAP so no tweens involved. Link to comment Share on other sites More sharing options...
PointC Posted December 16, 2021 Share Posted December 16, 2021 Hi @Chaunce Welcome to the forum. Sounds like you're looking for Window.matchMedia(). https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia Happy tweening and welcome aboard. 2 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