Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/motiondivision/motion
/ functions
Functions
1,999 in github.com/motiondivision/motion
⨍
Functions
1,999
◇
Types & classes
338
↓ 2 callers
Function
getEventTarget
(element: Element)
packages/framer-motion/src/render/dom/scroll/track.ts:15
↓ 2 callers
Function
getGeneratorVelocity
( resolveValue: (v: number) => number, t: number, current: number )
packages/motion-dom/src/animation/generators/utils/velocity.ts:5
↓ 2 callers
Function
getInitializedFeatureDefinitions
()
packages/framer-motion/src/motion/features/definitions.ts:55
↓ 2 callers
Function
getMax
( animations: GroupedAnimations, propName: "iterationDuration" | "duration" )
packages/motion-dom/src/animation/GroupAnimation.ts:115
↓ 2 callers
Function
getRadius
(values: ResolvedValues, radiusName: string)
packages/motion-dom/src/projection/animation/mix-values.ts:96
↓ 2 callers
Function
getSize
( borderBoxAxis: "inline" | "block", svgAxis: "width" | "height", htmlAxis: "offsetWid
packages/motion-dom/src/resize/handle-element.ts:10
↓ 2 callers
Function
getSubjectSequence
( subject: Element | MotionValue | O, sequences: Map<Element | MotionValue | O, SequenceMap> )
packages/framer-motion/src/animation/sequence/create.ts:461
↓ 2 callers
Function
getTimeline
({ source, container, ...options }: ScrollOptionsWithDefaults)
packages/framer-motion/src/render/dom/scroll/utils/get-timeline.ts:38
↓ 2 callers
Function
getValueParam
(params: any, name: string, isPercentage: boolean)
dev/react/src/tests/drag.tsx:4
↓ 2 callers
Function
getValueSequence
(name: string, sequences: SequenceMap)
packages/framer-motion/src/animation/sequence/create.ts:469
↓ 2 callers
Function
getValueState
(visualElement?: any)
packages/motion-dom/src/render/utils/resolve-variants.ts:9
↓ 2 callers
Function
handleHoverEvent
( node: VisualElement<Element>, event: PointerEvent, lifecycle: "Start" | "End" )
packages/framer-motion/src/gestures/hover.ts:4
↓ 2 callers
Function
handlePressEvent
( node: VisualElement<Element>, event: PointerEvent, lifecycle: "Start" | "End" | "Cancel" )
packages/framer-motion/src/gestures/press.ts:4
↓ 2 callers
Method
handleScroll
* Handle scroll compensation during drag. * * For element scroll: adjusts history origin since pageX/pageY doesn't change. * For window
packages/framer-motion/src/gestures/pan/PanSession.ts:238
↓ 2 callers
Function
has2DTranslate
(values: ResolvedValues)
packages/motion-dom/src/projection/utils/has-transform.ts:29
↓ 2 callers
Function
hslaToRgba
({ hue, saturation, lightness, alpha }: HSLA)
packages/motion-dom/src/value/types/color/hsla-to-rgba.ts:13
↓ 2 callers
Method
initAnimation
()
packages/motion-dom/src/animation/JSAnimation.ts:101
↓ 2 callers
Function
initPrefersReducedMotion
()
packages/motion-dom/src/render/utils/reduced-motion/index.ts:5
↓ 2 callers
Function
interpolator
(v: number)
packages/motion-dom/src/utils/interpolate.ts:93
↓ 2 callers
Function
invert
(scale: number, point: number)
dev/react/src/examples/_dragDevice.tsx:16
↓ 2 callers
Function
is2DTranslate
(value: AnyResolvedKeyframe | undefined)
packages/motion-dom/src/projection/utils/has-transform.ts:33
↓ 2 callers
Function
isAxisDeltaZero
(delta: AxisDelta)
packages/motion-dom/src/projection/geometry/utils.ts:4
↓ 2 callers
Function
isControllingVariants
(props: MotionNodeOptions)
packages/motion-dom/src/render/utils/is-controlling-variants.ts:6
↓ 2 callers
Function
isDeltaZero
(delta: Delta)
packages/motion-dom/src/projection/geometry/utils.ts:8
↓ 2 callers
Function
isDragActive
()
packages/motion-dom/src/gestures/drag/state/is-active.ts:6
↓ 2 callers
Function
isEasingArray
(ease: any)
packages/motion-utils/src/easing/utils/is-easing-array.ts:4
↓ 2 callers
Function
isForcedMotionValue
( key: string, { layout, layoutId }: MotionNodeOptions )
packages/motion-dom/src/render/utils/is-forced-motion-value.ts:10
↓ 2 callers
Method
isLead
()
packages/motion-dom/src/projection/node/create-projection-node.ts:1867
↓ 2 callers
Function
isNumOrPxType
(v?: ValueType)
packages/motion-dom/src/animation/keyframes/utils/unit-conversion.ts:11
↓ 2 callers
Function
isP3
(value: T)
dev/react/src/tests/animate-custom-mix.tsx:10
↓ 2 callers
Method
isProjecting
()
packages/motion-dom/src/projection/node/types.ts:118
↓ 2 callers
Function
isPx
(value: AnyResolvedKeyframe)
packages/motion-dom/src/projection/animation/mix-values.ts:18
↓ 2 callers
Function
isSVGTag
(tag: unknown)
packages/motion-dom/src/render/svg/utils/is-svg-tag.ts:1
↓ 2 callers
Function
isSpringType
(options: SpringOptions, keys: string[])
packages/motion-dom/src/animation/generators/spring.ts:167
↓ 2 callers
Function
isSquareRadius
(radius: string)
packages/motion-dom/src/view/start.ts:32
↓ 2 callers
Method
isUpdateBlocked
()
packages/motion-dom/src/projection/node/create-projection-node.ts:628
↓ 2 callers
Function
isValidPressEvent
* Filter out events that are not primary pointer events, or are triggering * while a Motion gesture is active.
packages/motion-dom/src/gestures/press/index.ts:17
↓ 2 callers
Function
lastDevicePoint
(history: TimestampedPoint[])
packages/framer-motion/src/gestures/pan/PanSession.ts:379
↓ 2 callers
Function
layerNames
(pseudos: string[])
tests/view/view-targets.spec.ts:56
↓ 2 callers
Function
listener
()
packages/framer-motion/src/render/dom/scroll/track.ts:70
↓ 2 callers
Function
loadExternalIsValidProp
(isValidProp?: IsValidProp)
packages/framer-motion/src/render/dom/utils/filter-props.ts:9
↓ 2 callers
Function
m
(a)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:157
↓ 2 callers
Function
makeAccelerateConfig
( axis: "x" | "y", options: Omit<UseScrollOptions, "container" | "target">, container?: RefObject<
packages/framer-motion/src/value/use-scroll.ts:37
↓ 2 callers
Function
markToAnimate
(key: string)
packages/motion-dom/src/render/utils/animation-state.ts:279
↓ 2 callers
Method
measure
(removeTransform = true)
packages/motion-dom/src/projection/node/create-projection-node.ts:998
↓ 2 callers
Function
measureLayers
(phase: "old" | "new")
packages/motion-dom/src/view/start.ts:342
↓ 2 callers
Function
measureViewportBox
( instance: HTMLElement, transformPoint?: TransformPoint )
packages/motion-dom/src/projection/utils/measure.ts:8
↓ 2 callers
Function
measureWith
(container: Element, target: Element)
packages/framer-motion/src/render/dom/scroll/__tests__/on-scroll-handler.test.ts:33
↓ 2 callers
Function
mergeTransition
* Merge a base transition (e.g. the default `options`) with a per-layer/value * override. An explicit `duration` on the override must win over an inh
packages/motion-dom/src/view/start.ts:915
↓ 2 callers
Function
mixArray
(a: MixableArray, b: MixableArray)
packages/motion-dom/src/utils/mix/complex.ts:44
↓ 2 callers
Function
mixAxis
(output: Axis, from: Axis, to: Axis, p: number)
packages/motion-dom/src/projection/node/create-projection-node.ts:2398
↓ 2 callers
Function
mixAxisDeltaLinear
(output: AxisDelta, delta: AxisDelta, p: number)
packages/motion-dom/src/projection/node/create-projection-node.ts:2391
↓ 2 callers
Function
mixImmediate
(a: T, b: T)
packages/motion-dom/src/utils/mix/immediate.ts:1
↓ 2 callers
Function
moveItem
( id: number, targetListId: number, [a, b]: number[][], setLists: (lists: number[][]) => void
dev/react/src/examples/Shared-layout-lists.tsx:108
↓ 2 callers
Function
nextFrame
()
packages/framer-motion/src/motion/__tests__/animate-no-browser.test.tsx:20
↓ 2 callers
Function
nextFrame
()
packages/motion-dom/src/animation/__tests__/JSAnimation.test.ts:7
↓ 2 callers
Function
o
(a, b, c)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:165
↓ 2 callers
Method
observe
(_element: Element)
packages/framer-motion/src/utils/__tests__/mock-intersection-observer.ts:21
↓ 2 callers
Method
observe
(element: Element)
packages/motion-dom/src/resize/__tests__/mock-resize-observer.ts:21
↓ 2 callers
Function
observeTimeline
(update: Update, timeline: ProgressTimeline)
packages/motion-dom/src/scroll/observe.ts:6
↓ 2 callers
Function
onComplete
()
packages/framer-motion/src/motion/__tests__/lazy.test.tsx:9
↓ 2 callers
Function
onDrag
()
dev/react/src/examples/_dragSetState.tsx:14
↓ 2 callers
Function
onPointerEnd
(endEvent: PointerEvent, success: boolean)
packages/motion-dom/src/gestures/press/index.ts:79
↓ 2 callers
Method
onUpdate
* Callback with latest motion values, fired max once per frame. * * ```jsx * function onUpdate(latest) { * console.log(latest.x,
packages/motion-dom/src/node/types.ts:270
↓ 2 callers
Function
onlyElements
(children: ReactNode)
packages/framer-motion/src/components/AnimatePresence/utils.ts:8
↓ 2 callers
Method
pause
()
packages/motion-dom/src/animation/NativeAnimation.ts:139
↓ 2 callers
Function
pointerMove
(element: Element)
packages/framer-motion/src/jest.setup.tsx:79
↓ 2 callers
Function
prepareNode
( element: HTMLElement, transition?: Transition )
packages/motion-dom/src/layout/LayoutAnimationBuilder.ts:118
↓ 2 callers
Function
processFrame
* Process a single frame at the given timestamp, running all frame loop steps.
packages/motion-dom/src/value/__tests__/follow-value-framerate.test.ts:10
↓ 2 callers
Method
promote
(node: IProjectionNode, preserveFollowOpacity?: boolean)
packages/motion-dom/src/projection/shared/stack.ts:45
↓ 2 callers
Function
r
(a, b, c, d, e, f)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:190
↓ 2 callers
Function
randomInt
(min, max)
dev/react/src/examples/useViewportScroll.tsx:10
↓ 2 callers
Function
randomInt
(min, max)
dev/react/src/examples/useScroll.tsx:9
↓ 2 callers
Function
randomInt
(min, max)
dev/react/src/examples/Animation-height-auto-display-none.tsx:127
↓ 2 callers
Function
randomInt
(min, max)
dev/react/src/examples/Animation-height-auto-rotate-scale.tsx:126
↓ 2 callers
Method
readKeyframes
()
packages/motion-dom/src/animation/keyframes/KeyframesResolver.ts:161
↓ 2 callers
Function
readNodeOptions
(element: HTMLElement, transition?: Transition)
packages/motion-dom/src/layout/LayoutAnimationBuilder.ts:104
↓ 2 callers
Function
remove
(arr: number[], item: number)
dev/react/src/examples/AnimatePresence-notifications-list.tsx:56
↓ 2 callers
Function
remove
(arr: number[], item: number)
dev/react/src/examples/AnimatePresence-notifications-list-pop.tsx:56
↓ 2 callers
Function
removeAxisTransforms
( axis: Axis, transforms: ResolvedValues, [key, scaleKey, originKey]: string[], origin?: Axis,
packages/motion-dom/src/projection/geometry/delta-remove.ts:75
↓ 2 callers
Function
removeBoxTransforms
( box: Box, transforms: ResolvedValues, originBox?: Box, sourceBox?: Box )
packages/motion-dom/src/projection/geometry/delta-remove.ts:103
↓ 2 callers
Function
removePointDelta
( point: number, translate: number, scale: number, originPoint: number, boxScale?: number
packages/motion-dom/src/projection/geometry/delta-remove.ts:10
↓ 2 callers
Method
removeRelativeTarget
()
packages/motion-dom/src/projection/node/create-projection-node.ts:1390
↓ 2 callers
Function
replaceTransitionType
(transition: ValueAnimationTransition)
packages/motion-dom/src/animation/utils/replace-transition-type.ts:14
↓ 2 callers
Method
resetTransform
()
packages/motion-dom/src/projection/node/types.ts:106
↓ 2 callers
Function
resolveAxisElastic
( dragElastic: DragElastic, minLabel: string, maxLabel: string )
packages/framer-motion/src/gestures/drag/utils/constraints.ts:214
↓ 2 callers
Function
resolveAxisTranslate
( value: number | string | undefined, axis: Axis )
packages/motion-dom/src/projection/geometry/delta-apply.ts:173
↓ 2 callers
Method
resolveConstraints
()
packages/framer-motion/src/gestures/drag/VisualElementDragControls.ts:340
↓ 2 callers
Function
resolveGroupTiming
(name: string)
packages/motion-dom/src/view/start.ts:306
↓ 2 callers
Function
resolveLayerTransition
( target: ViewTransitionTarget | undefined, type: string, transitionName: string,
packages/motion-dom/src/view/start.ts:275
↓ 2 callers
Function
resolveLayers
(phase: "old" | "new")
packages/motion-dom/src/view/start.ts:139
↓ 2 callers
Method
resolveNoneKeyframes
()
packages/motion-dom/src/animation/keyframes/DOMKeyframesResolver.ts:126
↓ 2 callers
Function
resolvePointElastic
( dragElastic: DragElastic, label: string )
packages/framer-motion/src/gestures/drag/utils/constraints.ts:225
↓ 2 callers
Method
resolveRefConstraints
()
packages/framer-motion/src/gestures/drag/VisualElementDragControls.ts:395
↓ 2 callers
Function
resolveSubjects
( subject: | string | Element | Element[] | NodeListOf<Element> |
packages/framer-motion/src/animation/animate/resolve-subjects.ts:10
↓ 2 callers
Function
resolveValueSequence
( valueKeyframes: UnresolvedValueKeyframe | UnresolvedValueKeyframe[], valueTransition
packages/framer-motion/src/animation/sequence/create.ts:102
↓ 2 callers
Function
roundAxis
(axis: Axis)
packages/motion-dom/src/projection/node/create-projection-node.ts:2434
↓ 2 callers
Function
roundBorder
(border)
dev/html/src/imports/script-assert.js:165
↓ 2 callers
Function
row
(i)
dev/react/src/examples/Animation-stagger-custom.tsx:9
↓ 2 callers
Function
runAnimatedValueTests
(unit?: string | undefined)
packages/framer-motion/src/value/__tests__/use-follow-value.test.tsx:49
← previous
next →
501–600 of 1,999, ranked by callers