@remvst/animate.js
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

animate.js

Simple Javascript animation system. Provides timelines and interpolations.

Example

import { Timeline, Animation, InterpolationPool } from '@remvst/animate.js';

const pool = new InterpolationPool();

new Timeline()
    .append(new Animation(myView).interpToOffset('position.x', 100).during(0.3))
    .wait(1)
    .append(new Animation(myView).interpToOffset('position.x', -100).during(0.3))
    .run(pool);


function frame(elapsed: number) {
    pool.cycle(elapsed);
}

Readme

Keywords

none

Package Sidebar

Install

npm i @remvst/animate.js

Weekly Downloads

72

Version

3.1.0

License

UNLICENSED

Unpacked Size

73.4 kB

Total Files

38

Last publish

Collaborators

  • remvst