Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

how to get current applied (inline) styles set by gsap

Recommended Posts

so I know there's element._gsap.rotation for example.

But it returns a string like '1.234deg'. 


Is there an easier way to 'get' inline styles (set previously by gsap). 



I've set random rotations

on click, want to turn rotation back to 0 


I can't seem to find anything in the documentation (was expecting to see it @ CSSpluggin)



Link to comment
Share on other sites

There's something for everything in gsap~~


  • Like 1
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.