You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: static/app/components/core/principles/motion/motion.mdx
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,21 @@ const theme = useTheme();
59
59
theme.motion.smooth.moderate;
60
60
```
61
61
62
+
If you need to use the tokens with [Framer Motion](https://motion.dev) you can access the Bézier curve control points values and durations directly.
63
+
64
+
```jsx
65
+
consttheme=useTheme();
66
+
67
+
<motion.div
68
+
animate={{opacity:0}}
69
+
transition={{
70
+
type:'tween',
71
+
ease:theme.motionControlPoints.enter,
72
+
duration:theme.motionDurations.slow,
73
+
}}
74
+
></motion.div>;
75
+
```
76
+
62
77
## Easing
63
78
64
79
The easing curve of an animation drastically changes our perception of it. These easing tokens have been chosen to provide snappy, natural motion to interactions.
0 commit comments