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

mina(a, A, b, B, get, set, [easing])

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

Generic animation of numbers

Parameters

  1. anumberstartslave number
  2. Anumberendslave number
  3. bnumberstartmaster number (start time ingeneral case)
  4. Bnumberendmaster number (end time in generalcase)
  5. getfunctiongetter ofmaster number (seemina.time)
  6. setfunctionsetter ofslave number
  7. easingfunctioneasing function, default ismina.linear

Returns: object animation descriptor

  1. {
    1. id stringanimation id,
    2. start numberstart slave number,
    3. end numberend slave number,
    4. b numberstart master number,
    5. s numberanimation status (0..1),
    6. dur numberanimation duration,
    7. spd numberanimation speed,
    8. get functiongetter of master number (see mina.time),
    9. set functionsetter of slave number,
    10. easing functioneasing function, default is mina.linear,
    11. status functionstatus getter/setter,
    12. speed functionspeed getter/setter,
    13. duration functionduration getter/setter,
    14. stop functionanimation stopper
    15. pause functionpauses the animation
    16. resume functionresumes the animation
    17. update functioncalles setter with the right value of the animation
  2. }