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
Hello! First of all thanks for the library. I have a question, in version 8 is it possible to make calls to functions in the middle of an animation when using useTransition? Something similar to this:
constimageTransitions=useTransition(showTransition,null,{from: {// ...},enter: ()=>asyncnext=>{// do something at the beginning of the animation like dispatch a Redux action or set a stateawaitnext({top: toElement.toTop,left: toElement.toLeft,// ...});// do something in betweenawaitnext({visibility: "hidden",});// do something after the animation visibility: "hidden" ends});},// ...
This discussion was converted from issue #1288 on March 18, 2021 13:35.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
🤓 Question
Hello! First of all thanks for the library. I have a question, in version 8 is it possible to make calls to functions in the middle of an animation when using
useTransition
? Something similar to this:Thanks in advance! 😄
Beta Was this translation helpful? Give feedback.
All reactions