flowen Posted June 1, 2021 Share Posted June 1, 2021 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 More sharing options...
PointC Posted June 1, 2021 Share Posted June 1, 2021 Sounds like you're looking for the .getProperty() method. https://greensock.com/docs/v3/GSAP/gsap.getProperty Happy tweening. 4 1 Link to comment Share on other sites More sharing options...
flowen Posted June 2, 2021 Author Share Posted June 2, 2021 There's something for everything in gsap~~ 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