Best Practices for Animations #60978
Replies: 3 comments 11 replies
-
If we create directives like |
Beta Was this translation helpful? Give feedback.
-
A bit of digression from your question but all modern browsers now support the |
Beta Was this translation helpful? Give feedback.
-
Definitely going to try this. Thanks for the tip! |
Beta Was this translation helpful? Give feedback.
-
I can think of two ways in which I can implement animations with the Interactivity API:
data-wp-class
directive and use CSS Transitions.data-wp-style
.The first is very flexible but limited in terms of animation options, for example if you want a spring animation.
I find the second one very inflexible and a lot of writing work.
So a few questions about animations I stumbled across:
Unfortunately, my understanding of how exactly the rendering works is probably too poor to figure out the answers myself.
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions