From 8ea2c3f621facba57e1ca222448efe4e3f3e1cec Mon Sep 17 00:00:00 2001 From: Carlos Mesquita <52337966+carlos3g@users.noreply.github.com> Date: Sun, 5 Sep 2021 18:06:08 -0300 Subject: [PATCH] fix: typos in docs/api/props.md --- docs/docs/api/props.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.