object-transit
v1.4.0
Published
## Usage
Downloads
4
Readme
Utility for object values transition
Usage
import transit from 'object-transit';
const object = transit({ a: 0 }, console.log);
object.to(
{ a: 100 },
{
duration: 300
}
);
Demo
https://sunify.github.io/object-transit/
Params
List of params
duration
— duration in ms, defaults to300
easing
— simple easing function that takes one argument — time (from 0 to 1). Defaults tolinear
. You can use functions from eases or similar packagefps
— defaults to60
end
— transition end callback