thednp / kute.js

KUTE.js is a JavaScript animation engine for modern browsers.

Home Page:http://thednp.github.io/kute.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to control the time progression of the tween?

ungual opened this issue · comments

Hi, thank you for this amazing lib !

I was wondering if there is a way to create a slider that would control the progression of the tween animation? Like at one side it's the first .svg, at the other side it's the second .svg, and you can move the slider forward and backward the see the animation progress.

Thank you !!

Hello there.

I haven't found this to be important/useful just yet, but it shouldn't be hard to make a slider with values from 0 to 1, stepping 0.001, attach a change handler to it and make use of the KUTE.dom update functions in the handler. This should only work for fromTo tween objects.

Type KUTE in your browser console and look around. Also let me know how this goes of course.

Good luck.

@doriantimmermans
Update: check this out