1.0.3 • Published 9 months ago

smoke-distance v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

smoke-distance

tweening engine for Typescript

Install

npm i unplugin-vue-cssvars -D

Or

yarn add unplugin-vue-cssvars -D

Or

pnpm add unplugin-vue-cssvars -D

Usage

import SmokeDistance from 'b-tween';
const smoke = new SmokeDistance({
  from: {
    left: 0
  },
  to: {
    left: 700
  },
  duration: 500,
  easing: 'bounceOut',
  onUpdate: (keys) => {
    // You can do everything with keys
    block.style.left = keys.left + 'px';
  }
});
smoke.start();
1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago