tweenjs / es6-tween

ES6 version of tween.js
MIT License
186 stars 34 forks source link

v3: Introducing and Features #27

Closed dalisoft closed 7 years ago

dalisoft commented 7 years ago

Core

Dependecy

Ask

dalisoft commented 7 years ago

Note

Who isn't like the using or hear about v3, please leave review here (this issue)

Who like the idea, support me by ideas, please share idea and review here (this issue)

dalisoft commented 7 years ago

Release date: 10 August 2017

dalisoft commented 7 years ago

v3.x plugin defintion looks like this as example

import { Plugins } from 'es6-tween';
Plugins.morph = class Morph {
  constructor (Tween, start, end) {
    this.node = Tween.node
  }
  preprocess () {
 // before values preparation
  }
  postprocess () {
  // after values preparation
  }
  update (value, d) {
    this.node.setAttribute('d', d)
  }
}