Open Kenny-Moore opened 5 years ago
Amazing code that saved me hours. Thank you. @gooeyideas
+1.. this doesn't work exactly like css keyframes :( @juliangarnier are you looking into this? there are a buncha issues on this topic.. this project def needs proper css-like keyframes value tweening
+1, today while I was going to integrate animejs
in VueJS I have also felt the same need. @juliangarnier My humble opinion it would be really good if you could integrate such feature in keyframe module.
Is your feature request related to a problem? Please describe. There are many CSS library's for creating animated effects. I am planning to making an effect library based on AnimateCSS that could be used with Animejs. The problem is that the CSS keyframes syntax is very different from what is expected by Anime and the conversion process is not simple.
Describe the solution you'd like To make my task easier I wrote a parsing function that allows me to convert keyframes animations in CSS into an array that is consumable by Animejs with minimal syntax changes:
Converter:
CSS
AnimeJs
Here is a working example: https://codepen.io/GooeyIdeas/pen/RdPzyX
I personally think this should be built in. Like in this example: https://codepen.io/GooeyIdeas/pen/QobXBd
Would you be willing to consider this feature? If so I can make a pull request.