Jump to content
Search Community

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

flowen test
Moderator Tag

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

 

why:

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)

 

thx!

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