es6tween-plugin-morph

0.0.21 • Public • Published

es6-tween-plugin-morph

size gzipsize

Morph plug-in for ES6 tween

Usage

import { Tween } from 'es6-tween';
import 'es6-tween-plugin-morph';
 
let tween = new Tween(document.querySelector('#myPath'), {morph:{shape:'#circleSVGShape'}).to({morph:{shape:'#rectSVGShape'}}, 2000).start();

Config

  • shape: Any - If want to use reverse/moveIndex, you should shape
  • reverse: Boolean - Reverses the path if your want change naturality
  • moveIndex: Number - Changes the index of points to make better/worse naturality
  • approximate: Boolean - Requires flubber library and makes animation a lot better

Package Sidebar

Install

npm i es6tween-plugin-morph

Weekly Downloads

10

Version

0.0.21

License

MIT

Unpacked Size

171 kB

Total Files

9

Last publish

Collaborators

  • dalisoft