JSTweener

JSTweener is tween library for JavaScript.

JSTweener's API like Tweener.

download

subversion

svn co http://svn.coderepos.org/share/lang/javascript/jstweener/trunk/ jstweener

transitions

JSTweener's transitions is Tweener's easing functions (Penner's Easing Equations) porting to JavaScript.

See: http://hosted.zeh.com.br/tweener/docs/en-us/misc/transitions.html

examples

  JSTweener.addTween(element.style, {
      time: 3,
      transition: 'linear',
      onComplete: function() {},
      width: 200,
      height: 200,
      left: 500,
      top: 300
  });

Tweening Parameters

  • time
  • transition
  • delay
  • onComplete
  • onCompleteParams
  • onComplete
  • onUpdateParams
  • onUpdate
  • onStartParams
  • onStart
  • suffix
  • prefix

Author

  • Yuichi Tateno (secondlife)