framer-motion 6.3.4 → 6.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framer-motion",
3
- "version": "6.3.4",
3
+ "version": "6.3.5",
4
4
  "description": "A simple and powerful React animation library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.mjs",
@@ -103,5 +103,5 @@
103
103
  "maxSize": "31.5 kB"
104
104
  }
105
105
  ],
106
- "gitHead": "719c44f9514dc3d6b56d1323e3a647875a062262"
106
+ "gitHead": "40eb5ea693b1a0b4506811a2ab26b47c6747cb9c"
107
107
  }
@@ -88,6 +88,26 @@ export declare type ResolveLayoutTransition = (info: RelayoutInfo) => Transition
88
88
  * @public
89
89
  */
90
90
  export interface AnimationProps {
91
+ /**
92
+ * Properties, variant label or array of variant labels to start in.
93
+ *
94
+ * Set to `false` to initialise with the values in `animate` (disabling the mount animation)
95
+ *
96
+ * ```jsx
97
+ * // As values
98
+ * <motion.div initial={{ opacity: 1 }} />
99
+ *
100
+ * // As variant
101
+ * <motion.div initial="visible" variants={variants} />
102
+ *
103
+ * // Multiple variants
104
+ * <motion.div initial={["visible", "active"]} variants={variants} />
105
+ *
106
+ * // As false (disable mount animation)
107
+ * <motion.div initial={false} animate={{ opacity: 0 }} />
108
+ * ```
109
+ */
110
+ initial?: boolean | Target | VariantLabels;
91
111
  /**
92
112
  * Values to animate to, variant label(s), or `AnimationControls`.
93
113
  *
@@ -208,26 +228,6 @@ export interface MotionAdvancedProps {
208
228
  * @public
209
229
  */
210
230
  export interface MotionProps extends AnimationProps, VisualElementLifecycles, PanHandlers, TapHandlers, HoverHandlers, FocusHandlers, ViewportProps, DraggableProps, LayoutProps, MotionAdvancedProps {
211
- /**
212
- * Properties, variant label or array of variant labels to start in.
213
- *
214
- * Set to `false` to initialise with the values in `animate` (disabling the mount animation)
215
- *
216
- * ```jsx
217
- * // As values
218
- * <motion.div initial={{ opacity: 1 }} />
219
- *
220
- * // As variant
221
- * <motion.div initial="visible" variants={variants} />
222
- *
223
- * // Multiple variants
224
- * <motion.div initial={["visible", "active"]} variants={variants} />
225
- *
226
- * // As false (disable mount animation)
227
- * <motion.div initial={false} animate={{ opacity: 0 }} />
228
- * ```
229
- */
230
- initial?: boolean | Target | VariantLabels;
231
231
  /**
232
232
  *
233
233
  * The React DOM `style` prop, enhanced with support for `MotionValue`s and separate `transform` values.