Jump to content
Search Community

Reset CSS properties on window resize

TraphicJim test
Moderator Tag

Recommended Posts

Hey Green Sock people!

 

I'd like to kill all gsap timelines and resent the CSS properties of any objects that may have been altered, much like these guys do upon screen resizing to mobile device size.

 

I've managed to get a function going which monitors the window size and starts up GSAP on larger windows, but I'm struggling to reset the in-line style properties that may have already been put in place before resizing the screen.

 

Any help would be very much aprreciated!

 

Thanks.

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