0.6.1 • Published 8 months ago

@rutan/frame-tween v0.6.1

Weekly downloads
-
License
WTFPL
Repository
github
Last release
8 months ago

frame-tween

install

npm install @rutan/frame-tween

Usage

import { createTween, Group, easeInOutSine } from '@rutan/frame-tween';

const tweenGroup = new Group();
const tween = createTween(sprite, tweenGroup, {
  x: 0,
})
  .to(
    {
      x: 100,
    },
    30,
    easeInOutSine,
  )
  .call(() => {
    console.log('finished!');
  })
  .start();

function mainLoop() {
  requestAnimationFrame(mainLoop);
  tweenGroup.update();
}
mainLoop();
0.6.1

8 months ago

0.6.0

8 months ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago