Skip to content

Commit

Permalink
fix: typos in docs/api/props.md
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos3g authored Sep 5, 2021
1 parent 680838e commit 8ea2c3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/api/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ sidebar_label: Component Props

All `moti` components have a few useful props:

- `animate` Magically animate any value passed here
- `from` The initial animation styles when the component mounts
- `animate` Magically animate any value passed here.
- `from` The initial animation styles when the component mounts.
- `exit` Unmount animation styles. This works the exact same as `framer-motion`'s exit prop, and requires wrapping your component with `AnimatePresence`. The only difference is you import `AnimatePresence` from `moti`.
- `transition` Take full control over your animation configuration. You can set options for your entire animtation (such as `type: 'timing'`), or set transition options per-style (`translateY: { type: 'timing' }`).
- `transition` Take full control over your animation configuration. You can set options for your entire animation (such as `type: 'timing'`), or set transition options per-style (`translateY: { type: 'timing' }`).
- `exitTransition` The exact same as `transition`, except that it only applies to `exit` animations.
- `state` If you're using the `useAnimationState` hook, you should pass the state it returns to this prop.
- `onDidAnimate` Callback function called after finishing a given animation.
Expand Down

0 comments on commit 8ea2c3f

Please sign in to comment.