motion/provider
import { … } from 'zidane-ui'ui/src/motion/provider.tsx
Components#
MotionProviderComponent#
Applies one motion policy to an app: writes the motion variables and switches on <html>
and wraps the tree in motion.dev's MotionConfig, so JS and CSS animations follow the same
preference. Anything but full makes transform and layout values jump.
function MotionProvider(props: MotionProviderProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | MotionProviderProps | See |
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| children | ReactNode | The app tree to put under the motion policy. |
| level? | MotionLevel | The motion level; default: follow |
| panelMs? | number | The panel slider (ms): the |
| springs? | boolean | Spring animations; default: follow |
Interfaces#
MotionProviderPropsInterface#
Props of MotionProvider.
interface MotionProviderPropsProperties
| Name | Type | Description |
|---|---|---|
| children | ReactNode | The app tree to put under the motion policy. |
| level? | MotionLevel | The motion level; default: follow |
| panelMs? | number | The panel slider (ms): the |
| springs? | boolean | Spring animations; default: follow |