diff --git a/docs/docs/api/props.md b/docs/docs/api/props.md index 0d5104b..bea2581 100644 --- a/docs/docs/api/props.md +++ b/docs/docs/api/props.md @@ -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.