tween.js
tween.js copied to clipboard
JavaScript/TypeScript animation engine
Here's @jonobr1's original, forked to use array values: https://codepen.io/trusktr/pen/04518ee24a8d1d7822e584c6a513d378?editors=1010 Watch it for a while. Over time, the animation speeds up, which shouldn't happen.
I have an idea for API improvement, with backwards compatibility: ``` new TWEEN.Tween(objectWithInitialValues, group, {rememberLastValues: true}) ``` where `rememberLastValues` would make it so any time you call `start()` it will...
With the merge of https://github.com/tweenjs/tween.js/pull/539 and https://github.com/tweenjs/tween.js/pull/541 we got support for animating properties inside nested object or arrays. But we haven't tested `repeat` or `yoyo` with this yet. We should...
Hey, I am currently moving an object with a tween, and i would like to slow down the tween when the mouse is upon it. What did i try :...
We could always use more easing functions. An easing function is single-variable function that maps values in the range [0, 1] to a numeric value. Generally, we require that `f(0)...
Hi all, what are your thoughts on, f.e., supporting only IE11+? This would allow us to use `WeakMap` for private properties on the `Tween` class, and then we can store...
I have just started working with Tween.js and ask forgiveness if wasting time. I have written a basic tween as in the code snippet. ` partTween= new TWEEN.Tween({y:100}); partTween.to({y:0},1000); partTween.onUpdate(function(d){...
Considering the following code ``` //a new tween running for 15segs var tween = new TWEEN.Tween({width: 0}) .to({width: 100}, 15000) .start(); function pause_or_resume(){ if(tween.isPlaying()){ tween.pause(); } else { tween.resume(); }...
I want to have a working build automation server for this project, but Travis-CI doesn't support that very well. I want the server to build every commit that hits master...