目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Snap.animation(attr, duration, [easing], [callback])

优质
小牛编辑
132浏览
2023-12-01

Creates an animation object

Parameters

  1. attrobjectattributes of final destination
  2. durationnumberduration of the animation, in milliseconds
  3. easingfunctionone of easing functions ofmina or custom one
  4. callbackfunctioncallback function that fires when animationends

Returns: object animation object