Skip to content

Commit 2c25565

Browse files
committed
fixed typos in the type definitions and a stale documentation link
1 parent 7825b62 commit 2c25565

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/framer-motion/src/animation/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface AnimationControls {
4444
* ```
4545
*
4646
* @param definition - Properties or variant label to animate to
47-
* @param transition - Optional `transtion` to apply to a variant
47+
* @param transition - Optional `transition` to apply to a variant
4848
* @returns - A `Promise` that resolves when all animations have completed.
4949
*
5050
* @public

packages/framer-motion/src/gestures/drag/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export interface DraggableProps extends DragHandlers {
163163
* Applies constraints on the permitted draggable area.
164164
*
165165
* It can accept an object of optional `top`, `left`, `right`, and `bottom` values, measured in pixels.
166-
* This will define a distance the named edge of the draggable component.
166+
* This will define a distance from the named edge of the draggable component.
167167
*
168168
* Alternatively, it can accept a `ref` to another component created with React's `useRef` hook.
169169
* This `ref` should be passed both to the draggable component's `dragConstraints` prop, and the `ref`
@@ -226,7 +226,7 @@ export interface DraggableProps extends DragHandlers {
226226
/**
227227
* Allows you to change dragging inertia parameters.
228228
* When releasing a draggable Frame, an animation with type `inertia` starts. The animation is based on your dragging velocity. This property allows you to customize it.
229-
* See {@link https://framer.com/api/animation/#inertia | Inertia} for all properties you can use.
229+
* See {@link https://motion.dev/docs/react-motion-component#dragtransition | Inertia} for all properties you can use.
230230
*
231231
* ```jsx
232232
* <motion.div

packages/motion-dom/src/utils/interpolate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function createMixers<T>(
5454
* mixColor(0.5) // 'rgba(128, 128, 128, 1)'
5555
* ```
5656
*
57-
* TODO Revist this approach once we've moved to data models for values,
57+
* TODO Revisit this approach once we've moved to data models for values,
5858
* probably not needed to pregenerate mixer functions.
5959
*
6060
* @public

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy