juliangarnier / anime

JavaScript animation engine
https://animejs.com
MIT License
50.45k stars 3.69k forks source link

Return interpolated values outside DOM #740

Open fitzmode opened 3 years ago

fitzmode commented 3 years ago

I'd like to be able to use interpolated values for morphing and line drawing svg's

    var path = anime.path("M1,0 L2,2 L0,2 Z");

    path('x').seek(0.5) . //Returns interpolated value at 50% of duration.

This would allow using anime.js in non-DOM contexts.