mina(a, A, b, B, get, set, [easing])
优质
小牛编辑
138浏览
2023-12-01
Generic animation of numbers
Parameters
- anumberstartslave number
- Anumberendslave number
- bnumberstartmaster number (start time ingeneral case)
- Bnumberendmaster number (end time in generalcase)
- getfunctiongetter ofmaster number (seemina.time)
- setfunctionsetter ofslave number
- easingfunctioneasing function, default ismina.linear
Returns: object animation descriptor
- {
- id stringanimation id,
- start numberstart slave number,
- end numberend slave number,
- b numberstart master number,
- s numberanimation status (0..1),
- dur numberanimation duration,
- spd numberanimation speed,
- get functiongetter of master number (see mina.time),
- set functionsetter of slave number,
- easing functioneasing function, default is mina.linear,
- status functionstatus getter/setter,
- speed functionspeed getter/setter,
- duration functionduration getter/setter,
- stop functionanimation stopper
- pause functionpauses the animation
- resume functionresumes the animation
- update functioncalles setter with the right value of the animation
- }