You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
popmotion is an efficient tool to help me implement animations,but i find that when i start a repeat animation, i can not find a way to do something when each repeat complete. Here is a example:
// suppose that i want to init style at some pointconststyleInit=()=>{}//animation codeanimate({from: 0,to: 40,ease: easeOut,duration: 250,repeat: Infinity,repeatDelay: 5000,onUpdate: (latest)=>{},/** * I want to init the style, but i find that this will * not be called when each repeat complete because the animation repeats */onComplete(){styleInit();},});
how to solve this problem?
The text was updated successfully, but these errors were encountered:
popmotion is an efficient tool to help me implement animations,but i find that when i start a repeat animation, i can not find a way to do something when each repeat complete. Here is a example:
how to solve this problem?
The text was updated successfully, but these errors were encountered: