framer-motion 7.8.0 → 7.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/dist/cjs/index.js +2030 -1920
- package/dist/es/animation/animate.mjs +2 -2
- package/dist/es/animation/create-instant-animation.mjs +12 -0
- package/dist/es/animation/{animation-controls.mjs → hooks/animation-controls.mjs} +2 -2
- package/dist/es/animation/{use-animated-state.mjs → hooks/use-animated-state.mjs} +6 -6
- package/dist/es/animation/{use-animation.mjs → hooks/use-animation.mjs} +1 -1
- package/dist/es/animation/index.mjs +124 -0
- package/dist/es/animation/legacy-popmotion/decay.mjs +11 -4
- package/dist/es/animation/legacy-popmotion/index.mjs +22 -11
- package/dist/es/animation/legacy-popmotion/inertia.mjs +14 -8
- package/dist/es/animation/legacy-popmotion/keyframes.mjs +21 -13
- package/dist/es/animation/legacy-popmotion/spring.mjs +13 -11
- package/dist/es/animation/utils/default-transitions.mjs +9 -14
- package/dist/es/animation/utils/keyframes.mjs +41 -0
- package/dist/es/animation/utils/transitions.mjs +1 -166
- package/dist/es/animation/waapi/create-accelerated-animation.mjs +82 -0
- package/dist/es/animation/waapi/index.mjs +4 -6
- package/dist/es/gestures/drag/VisualElementDragControls.mjs +2 -2
- package/dist/es/index.mjs +3 -3
- package/dist/es/render/VisualElement.mjs +1 -1
- package/dist/es/render/utils/animation.mjs +2 -2
- package/dist/es/render/utils/motion-values.mjs +2 -2
- package/dist/es/render/utils/setters.mjs +1 -1
- package/dist/es/value/index.mjs +11 -5
- package/dist/es/value/use-spring.mjs +1 -2
- package/dist/framer-motion.dev.js +2051 -1941
- package/dist/framer-motion.js +1 -1
- package/dist/index.d.ts +409 -348
- package/dist/projection.dev.js +1672 -1535
- package/dist/size-rollup-dom-animation-assets.js +1 -1
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max-assets.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-motion.js +1 -1
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/dist/three-entry.d.ts +287 -281
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -43,6 +43,7 @@ It does all this:
|
|
|
43
43
|
- SVG paths
|
|
44
44
|
- Exit animations
|
|
45
45
|
- Server-side rendering
|
|
46
|
+
- Hardware-accelerated animations
|
|
46
47
|
- Orchestrate animations across components
|
|
47
48
|
- CSS variables
|
|
48
49
|
|
|
@@ -70,17 +71,17 @@ export const MyComponent = ({ isVisible }) => (
|
|
|
70
71
|
|
|
71
72
|
### 📚 Docs
|
|
72
73
|
|
|
73
|
-
-
|
|
74
|
-
-
|
|
74
|
+
- Check out [our documentation](https://www.framer.com/docs/) for guides and a full API reference.
|
|
75
|
+
- Or see [our examples](https://www.framer.com/docs/examples/) for inspiration.
|
|
75
76
|
|
|
76
77
|
### 💎 Contribute
|
|
77
78
|
|
|
78
|
-
-
|
|
79
|
+
- Want to contribute to Framer Motion? Our [contributing guide](https://github.com/framer/motion/blob/master/CONTRIBUTING.md) has you covered.
|
|
79
80
|
|
|
80
81
|
### 👩🏻⚖️ License
|
|
81
82
|
|
|
82
|
-
-
|
|
83
|
+
- Framer Motion is MIT licensed.
|
|
83
84
|
|
|
84
85
|
### ✨ Framer
|
|
85
86
|
|
|
86
|
-
-
|
|
87
|
+
- Design and publish sites that inspire. [Try Framer for free](https://www.framer.com/).
|