React-motion: StaggeredMotion onRest

Created on 7 Mar 2017  路  3Comments  路  Source: chenglou/react-motion

I see that there is currently no onRest callback for StaggeredMotion... Has anyoone figured out another way to tell when the animation is complete?

Thanks!

Most helpful comment

@nkbt what do you think about adding this? I also need this functionality. I love the project and would be happy to contribute. I propose to add onRest: PropTypes.func property for StaggeredMotion which gets fired when all elements are in resting state. Thoughts? 馃暫

All 3 comments

@nkbt what do you think about adding this? I also need this functionality. I love the project and would be happy to contribute. I propose to add onRest: PropTypes.func property for StaggeredMotion which gets fired when all elements are in resting state. Thoughts? 馃暫

Doing this for TransitionMotion in my fork right now. Looks like StaggeredMotion has a very similar shouldStopAnimationAll that could be used to tell when things are at rest.

Since I mentioned it, I'll note here that the PR for this would probably be similar to #552

Was this page helpful?
0 / 5 - 0 ratings

Related issues

p4bloch picture p4bloch  路  3Comments

boyswan picture boyswan  路  9Comments

haxxxton picture haxxxton  路  4Comments

penx picture penx  路  4Comments

sdras picture sdras  路  10Comments