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

Element.animate(attrs, duration, [easing], [callback])

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

Animates the given attributes of the element

Parameters

  1. attrsobjectkey-value pairs of destination attributes
  2. durationnumberduration of the animation in milliseconds
  3. easingfunctioneasing function frommina or custom
  4. callbackfunctioncallback function that executes whenthe animation ends

Returns: Element the current element