Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/motiondivision/motion
/ functions
Functions
1,999 in github.com/motiondivision/motion
⨍
Functions
1,999
◇
Types & classes
338
↓ 1,368 callers
Method
get
* Returns the latest state of `MotionValue` * * @returns - The latest state of `MotionValue` * * @public
packages/motion-dom/src/value/index.ts:384
↓ 853 callers
Function
test
()
packages/motion-utils/src/__tests__/memo.test.ts:7
↓ 562 callers
Function
render
(children: any, isStrict = true)
packages/framer-motion/src/jest.setup.tsx:102
↓ 401 callers
Function
motionValue
(init: V, options?: MotionValueOptions)
packages/motion-dom/src/value/index.ts:509
↓ 327 callers
Function
test
(v: any)
packages/motion-dom/src/value/types/complex/index.ts:9
↓ 318 callers
Function
nextFrame
()
packages/framer-motion/src/gestures/__tests__/utils.ts:3
↓ 234 callers
Method
set
* Sets the state of the `MotionValue`. * * @remarks * * ```jsx * const x = useMotionValue(0) * x.set(10) * ```
packages/motion-dom/src/value/index.ts:305
↓ 168 callers
Function
createMotionComponent
( Component: TagName | string | React.ComponentType<Props>, { forwardMotionProps = false, type }: Moti
packages/framer-motion/src/motion/index.tsx:71
↓ 165 callers
Function
useMotionValue
(initial: T)
packages/framer-motion/src/value/use-motion-value.ts:25
↓ 164 callers
Function
createMinimalMotionComponent
( Component: TagName | string | React.ComponentType<Props>, options?: MotionComponentOptions )
packages/framer-motion/src/render/components/m/create.ts:4
↓ 130 callers
Method
then
(resolve: () => void, reject?: () => void)
packages/motion-dom/src/view/index.ts:226
↓ 125 callers
Function
animate
()
dev/react/src/examples/Animation-stagger-custom.tsx:54
↓ 105 callers
Method
forEach
(callback: (child: WithDepth) => void)
packages/motion-dom/src/projection/utils/flat-tree.ts:19
↓ 81 callers
Method
set
( name: string, value: MotionValue, render?: VoidFunction, computed?: MotionVa
packages/motion-dom/src/effects/MotionValueState.ts:15
↓ 81 callers
Function
useTransform
( input: | MotionValue<I> | MotionValue<string>[] | MotionValue<number>[]
packages/framer-motion/src/value/use-transform.ts:172
↓ 78 callers
Function
parseValueFromTransform
( transform: string | undefined, name: string )
packages/motion-dom/src/render/dom/parse-transform.ts:66
↓ 77 callers
Function
expectBbox
(element: HTMLElement, expectedBbox: BoundingBox)
packages/framer-motion/cypress/integration/layout-shared.ts:8
↓ 60 callers
Function
animateValue
( options: ValueAnimationOptions<T> )
packages/motion-dom/src/animation/JSAnimation.ts:553
↓ 59 callers
Method
on
( eventName: EventName, callback: MotionValueEventCallbacks<V>[EventName] )
packages/motion-dom/src/value/index.ts:247
↓ 55 callers
Method
end
()
packages/framer-motion/src/gestures/pan/PanSession.ts:347
↓ 55 callers
Function
getComputedStyle
( element: HTMLElement | SVGElement, name: string )
packages/motion-dom/src/render/dom/style-computed.ts:3
↓ 53 callers
Function
drag
(element: any, triggerElement?: any)
packages/framer-motion/src/gestures/drag/__tests__/utils.tsx:33
↓ 53 callers
Method
update
()
packages/framer-motion/src/gestures/pan/index.ts:56
↓ 52 callers
Method
add
(name: string)
packages/motion-dom/src/value/will-change/types.ts:4
↓ 47 callers
Function
syncDriver
(interval = 10)
packages/motion-dom/src/animation/__tests__/utils.ts:4
↓ 45 callers
Function
createAnimationsFromSequence
( sequence: AnimationSequence, { defaultTransition = {}, ...sequenceTransition }: SequenceOptions = {}
packages/framer-motion/src/animation/sequence/create.ts:43
↓ 44 callers
Function
resolveEdge
(edge: Edge, length: number, inset = 0)
packages/framer-motion/src/render/dom/scroll/offsets/edge.ts:9
↓ 44 callers
Function
waitForAnimation
(url: string, page: Page, customTimeout = 500)
tests/animate/animate.spec.ts:18
↓ 41 callers
Function
eachBox
( page: Page, callback: (box: Locator, index: number) => Promise<void> )
tests/animate/animate.spec.ts:3
↓ 40 callers
Function
f
(b, c, e)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:50
↓ 40 callers
Function
mockAnimate
(state: AnimationState)
packages/framer-motion/src/render/utils/__tests__/animation-state.test.ts:42
↓ 38 callers
Method
addEventListener
(name: LayoutEvents, handler: any)
packages/motion-dom/src/projection/node/types.ts:145
↓ 38 callers
Function
expectBbox
(element: HTMLElement, expectedBbox: Partial<BoundingBox>)
packages/framer-motion/cypress/integration/drag-nested.ts:8
↓ 38 callers
Function
pointerDown
(element: Element)
packages/framer-motion/src/jest.setup.tsx:65
↓ 36 callers
Function
resolveOffset
( offset: Edge | Intersection | ProgressIntersection, containerLength: number, targetLength: numbe
packages/framer-motion/src/render/dom/scroll/offsets/offset.ts:6
↓ 35 callers
Function
createMockMeasurement
(element: Element | null, name: string)
packages/framer-motion/src/render/dom/scroll/__tests__/index.test.ts:27
↓ 35 callers
Function
mixNumber
(from: number, to: number, progress: number)
packages/motion-dom/src/utils/mix/number.ts:22
↓ 35 callers
Function
pointerUp
(element: Element)
packages/framer-motion/src/jest.setup.tsx:72
↓ 33 callers
Function
logOpacity
()
packages/framer-motion/src/gestures/__tests__/press.test.tsx:392
↓ 32 callers
Function
c
(a)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:24
↓ 30 callers
Function
a
(a, b)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:1151
↓ 30 callers
Method
getProps
()
packages/framer-motion/src/gestures/drag/VisualElementDragControls.ts:770
↓ 30 callers
Function
readResult
(page: import("@playwright/test").Page)
tests/view/view-targets.spec.ts:49
↓ 29 callers
Function
isMotionValue
(value: any)
packages/motion-dom/src/value/utils/is-motion-value.ts:3
↓ 28 callers
Function
createBox
()
packages/motion-dom/src/projection/geometry/models.ts:17
↓ 28 callers
Function
createTest
( props: MotionProps = {}, parent: VisualElement<any> | undefined = undefined )
packages/framer-motion/src/render/utils/__tests__/animation-state.test.ts:6
↓ 28 callers
Method
sample
(sampleTime: number)
packages/motion-dom/src/animation/JSAnimation.ts:535
↓ 28 callers
Function
scroll
( onScroll: OnScroll | AnimationPlaybackControls, { axis = "y", container = document.s
packages/framer-motion/src/render/dom/scroll/index.ts:7
↓ 28 callers
Function
spring
( optionsOrVisualDuration: | ValueAnimationOptions<number> | number = springDefaults.visua
packages/motion-dom/src/animation/generators/spring.ts:221
↓ 27 callers
Function
interpolate
( input: number[], output: T[], { clamp: isClamp = true, ease, mixer }: InterpolateOptions<T> = {}
packages/motion-dom/src/utils/interpolate.ts:62
↓ 27 callers
Function
nextFrame
()
packages/motion-dom/src/effects/__tests__/style-effect.test.ts:5
↓ 26 callers
Function
mixColor
(from: Color | string, to: Color | string)
packages/motion-dom/src/utils/mix/color.ts:44
↓ 26 callers
Function
useScroll
({ container, target, ...options }: UseScrollOptions = {})
packages/framer-motion/src/value/use-scroll.ts:87
↓ 25 callers
Function
createArcPath
({ strength = 0.5, peak = 0.5, direction, rotate = false, }: ArcOptions = {})
packages/motion-dom/src/animation/utils/arc.ts:91
↓ 25 callers
Function
createTestAnimationControls
( partialControls?: Partial<AnimationPlaybackControlsWithThen> )
packages/motion-dom/src/animation/__tests__/GroupAnimation.test.ts:5
↓ 25 callers
Function
expectBbox
(element: HTMLElement, expectedBbox: BoundingBox)
packages/framer-motion/cypress/integration/layout.ts:8
↓ 25 callers
Function
mix
(from: T, to: T, p?: T)
packages/motion-dom/src/utils/mix/index.ts:7
↓ 25 callers
Function
secondsToMilliseconds
(seconds: number)
packages/motion-utils/src/time-conversion.ts:9
↓ 24 callers
Function
callback
()
packages/motion-dom/src/view/start.ts:446
↓ 24 callers
Function
createValue
(num: number)
packages/motion-dom/src/value/__tests__/spring-value.test.ts:31
↓ 24 callers
Function
useCycle
(...items: T[])
packages/framer-motion/src/utils/use-cycle.ts:36
↓ 23 callers
Function
stagger
( duration: number = 0.1, { startDelay = 0, from = 0, ease }: StaggerOptions = {} )
packages/motion-dom/src/utils/stagger.ts:21
↓ 22 callers
Method
render
()
packages/framer-motion/src/components/AnimatePresence/PopChild.tsx:69
↓ 21 callers
Function
invariant
()
packages/motion-utils/src/errors.ts:10
↓ 21 callers
Method
update
()
packages/motion-dom/src/projection/node/create-projection-node.ts:724
↓ 21 callers
Function
useConstant
(init: Init<T>)
packages/framer-motion/src/utils/use-constant.ts:14
↓ 20 callers
Function
e
()
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:42
↓ 20 callers
Function
useSpring
( source: MotionValue<string> | MotionValue<number> | string | number, options: UseSpringOptions = {}
packages/framer-motion/src/value/use-spring.ts:44
↓ 19 callers
Function
getFinalKeyframe
( keyframes: T[], { repeat, repeatType = "loop" }: AnimationPlaybackOptions, finalKeyframe?: T,
packages/motion-dom/src/animation/keyframes/get-final.ts:5
↓ 19 callers
Function
nextFrame
()
packages/framer-motion/src/render/dom/scroll/__tests__/index.test.ts:20
↓ 19 callers
Method
stop
* Stop the currently active animation. * * @public
packages/motion-dom/src/value/index.ts:465
↓ 18 callers
Function
expectBbox
(element: HTMLElement, expectedBbox: Partial<BoundingBox>)
packages/framer-motion/cypress/integration/animate-presence-pop.ts:8
↓ 18 callers
Method
notify
()
packages/motion-dom/src/resize/__tests__/mock-resize-observer.ts:35
↓ 18 callers
Function
pointerEnter
(element: Element, options?: any)
packages/framer-motion/src/jest.setup.tsx:42
↓ 18 callers
Function
useAnimate
()
packages/framer-motion/src/animation/hooks/use-animate.ts:11
↓ 17 callers
Function
calcNextTime
( current: number, next: SequenceTime, prev: number, labels: Map<string, number> )
packages/framer-motion/src/animation/sequence/utils/calc-time.ts:7
↓ 17 callers
Function
nextMicrotask
()
packages/framer-motion/src/gestures/__tests__/utils.ts:9
↓ 16 callers
Function
assignViewTransitionNames
( definition: ElementOrSelector, registry: Map<Element, string>, assigned: Element[], forcedNa
packages/motion-dom/src/view/utils/assign-names.ts:78
↓ 16 callers
Function
clamp
(min: number, max: number, v: number)
packages/motion-utils/src/clamp.ts:1
↓ 16 callers
Function
getValueTransition
(transition: any, key: string)
packages/motion-dom/src/animation/utils/get-value-transition.ts:3
↓ 16 callers
Function
nextFrame
()
packages/motion-dom/src/effects/__tests__/svg-effect.test.ts:5
↓ 16 callers
Function
offsetToViewTimelineRange
( offset?: ScrollOffset )
packages/framer-motion/src/render/dom/scroll/utils/offset-to-range.ts:69
↓ 16 callers
Function
testAnimate
( options: ValueAnimationOptions<V>, expected: V[], resolve: () => void )
packages/motion-dom/src/animation/__tests__/JSAnimation.test.ts:15
↓ 16 callers
Method
then
* Allows the animation to be awaited. * * @deprecated Use `finished` instead.
packages/motion-dom/src/animation/utils/WithPromise.ts:29
↓ 16 callers
Function
useFollowValue
( source: MotionValue<string> | MotionValue<number> | AnyResolvedKeyframe, options: FollowValueOptions
packages/framer-motion/src/value/use-follow-value.ts:63
↓ 16 callers
Function
useMotionValueEvent
( value: MotionValue<V>, event: EventName, callback: MotionValueEventCallbacks<V>[EventName] )
packages/framer-motion/src/utils/use-motion-value-event.ts:6
↓ 15 callers
Function
buildTransform
(state: MotionValueState)
packages/motion-dom/src/effects/style/transform.ts:11
↓ 15 callers
Function
calcLength
(axis: Axis)
packages/motion-dom/src/projection/geometry/delta-calc.ts:12
↓ 15 callers
Function
containsCSSVariable
( value?: AnyResolvedKeyframe | null )
packages/motion-dom/src/animation/utils/is-css-variable.ts:36
↓ 15 callers
Function
createValue
(num: number)
packages/framer-motion/src/value/__tests__/use-follow-value.test.tsx:50
↓ 15 callers
Function
createValue
(num: number)
packages/framer-motion/src/value/__tests__/use-spring.test.tsx:50
↓ 15 callers
Function
inertia
({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bou
packages/motion-dom/src/animation/generators/inertia.ts:9
↓ 15 callers
Method
willUpdate
(notifyListeners?: boolean)
packages/motion-dom/src/projection/node/types.ts:85
↓ 14 callers
Method
cancel
()
packages/motion-dom/src/animation/JSAnimation.ts:515
↓ 14 callers
Function
fireElementScroll
(distance: number = 0)
packages/framer-motion/src/render/dom/scroll/__tests__/index.test.ts:148
↓ 14 callers
Method
getSize
()
packages/motion-utils/src/subscription-manager.ts:39
↓ 14 callers
Method
getVelocity
* Returns the latest velocity of `MotionValue` * * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerica
packages/motion-dom/src/value/index.ts:406
↓ 14 callers
Function
hasBrowserOnlyColors
(keyframes: any[])
packages/motion-dom/src/animation/waapi/utils/is-browser-color.ts:4
↓ 14 callers
Function
i
(a, b, c, d)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:94
↓ 14 callers
Function
isAnimatable
( value: ValueKeyframesDefinition, name?: string )
packages/motion-dom/src/animation/utils/is-animatable.ts:13
next →
1–100 of 1,999, ranked by callers