How to trigger CSS animations #265
Answered
by
steam0r
tgd-git
asked this question in
Answers & Questions
-
hey i have a DivElement op and a CSS op. Can i somhow trigger the animation externally to play it forward and backward?
|
Beta Was this translation helpful? Give feedback.
Answered by
steam0r
Jun 7, 2022
Replies: 1 comment 1 reply
-
you can use https://cables.gl/op/Ops.Html.ToggleClass to add and remove classes from DivElement. you can also use https://cables.gl/op/Ops.Html.CSSProperty_v2 or https://cables.gl/op/Ops.Html.CSSPropertyString to control the animation part from cables timers and triggers. hope that helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tgd-git
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can use https://cables.gl/op/Ops.Html.ToggleClass to add and remove classes from DivElement.
you can also use https://cables.gl/op/Ops.Html.CSSProperty_v2 or https://cables.gl/op/Ops.Html.CSSPropertyString to control the animation part from cables timers and triggers.
hope that helps!