Currently, I am working on developing a component that creates an animation loop with a duration that is passed as a prop to the component.
The issue I am facing involves using CSS to create the animation:
animate:{
-webkit-transition: 10.0s !important;
-moz-transition: 10.0s !important;
-o-transition: 10.0s !important;
transition: 10.0s !important;
}
I would like to be able to include the duration directly in this class declaration, but it seems impossible. To work around this limitation, I am resorting to CSS techniques like those outlined in this article by CSS-Tricks, which involve adding a class to restart the animation.
Is there a way to initialize a class with variables in Vue.js or create a CSS animation loop with the duration as a parameter?