Back to Fluentui

CreateMotionComponentImperativeRefPlayState.Stories

packages/react-components/react-motion/stories/src/CreateMotionComponent/CreateMotionComponentImperativeRefPlayState.stories.md

4.40.2-hotfix2261 B
Original Source

By default, the child component will be animated when it first mounts. The state of a motion can be controlled using setPlayState() via imperativeRef prop.

imperativeRef works with both createMotionComponent() and createPresenceComponent() factories.