How to remove all styles / api.delete() #1993
Answered
by
joshuaellis
mutheusalmeida
asked this question in
Support
-
Hey, guys. I have an animation that works in a way on mobile devices and in another on desktop. How can I remove all previous styles conditionally and start again with new ones when the viewport change? Is it with the Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
joshuaellis
Oct 7, 2022
Replies: 1 comment 2 replies
-
If you want to "reset" all styles, I would use the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mutheusalmeida
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to "reset" all styles, I would use the
set
method to set the current values back to defaults and possible set up your new values ready for thestart
method to animate.