To solve the problem between States of animation, we have created a nomenclature about how you can use your animations.
Now we have
Controlled animations: The most recommended way of use of your animations. To use it, you need to call setAnimation(componentRef, animationConfig), where:
compomentRef: The component reference that is in the instance.context object.
animationConfig: An object that receives the properties: name, wich is the name of the animation and values that is the animation config and is optional.
Inline animations where you just need to parse the name of the animation as property of you component or tag HTML.
You can see more detail about this methodology in the docs of the NevinhaJs website.
To solve the problem between States of animation, we have created a nomenclature about how you can use your animations.
Now we have
Controlled animations: The most recommended way of use of your animations. To use it, you need to call
setAnimation(componentRef, animationConfig)
, where:name
, wich is the name of the animation andvalues
that is the animation config and is optional.Inline animations where you just need to parse the name of the animation as property of you component or tag HTML.
You can see more detail about this methodology in the docs of the NevinhaJs website.