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
↓ 4 callers
Function
isValidMotionProp
(key: string)
packages/framer-motion/src/motion/utils/valid-prop.ts:51
↓ 4 callers
Function
keyframes
({ duration = 300, keyframes: keyframeValues, times, ease = "easeInOut", }: ValueAnimationOpti
packages/motion-dom/src/animation/generators/keyframes.ts:24
↓ 4 callers
Function
mixLinearColor
(from: number, to: number, v: number)
packages/motion-dom/src/utils/mix/color.ts:13
↓ 4 callers
Method
notify
( a?: Parameters<Handler>[0], b?: Parameters<Handler>[1], c?: Parameters<Handler>[2]
packages/motion-utils/src/subscription-manager.ts:13
↓ 4 callers
Method
notifyFinished
()
packages/motion-dom/src/animation/utils/WithPromise.ts:20
↓ 4 callers
Function
num
(v: unknown)
tests/view/view-targets.spec.ts:342
↓ 4 callers
Function
paginate
(newDelta: number)
dev/react/src/examples/AnimatePresence-image-gallery.tsx:55
↓ 4 callers
Function
parseTranslate
* Extract translateX and translateY values from a CSS transform string.
packages/framer-motion/cypress/integration/drag-svg-viewbox.ts:20
↓ 4 callers
Function
pixelsToPercent
(pixels: number, axis: Axis)
packages/motion-dom/src/projection/styles/scale-border-radius.ts:5
↓ 4 callers
Function
propagateDirtyNodes
(node: IProjectionNode)
packages/motion-dom/src/projection/node/create-projection-node.ts:2289
↓ 4 callers
Function
recordStats
()
packages/motion-dom/src/stats/index.ts:8
↓ 4 callers
Function
replaceSettings
(env)
packages/motion/rollup.config.mjs:16
↓ 4 callers
Function
replaceSettings
(env)
packages/motion-utils/rollup.config.mjs:14
↓ 4 callers
Method
scheduleRender
(notifyAll = true)
packages/motion-dom/src/projection/node/create-projection-node.ts:1563
↓ 4 callers
Function
shouldDrag
( direction: DragDirection, drag: boolean | DragDirection | undefined, currentDirection: null | Dr
packages/framer-motion/src/gestures/drag/VisualElementDragControls.ts:816
↓ 4 callers
Function
testAlternateAxes
(parentLayout: boolean, childLayout: boolean)
packages/framer-motion/cypress/integration/drag-nested.ts:366
↓ 4 callers
Function
testNestedDrag
(parentLayout: boolean, childLayout: boolean)
packages/framer-motion/cypress/integration/drag-nested.ts:16
↓ 4 callers
Function
testNestedDragConstraints
( parentLayout: boolean, childLayout: boolean )
packages/framer-motion/cypress/integration/drag-nested.ts:168
↓ 4 callers
Function
testNestedDragConstraintsAndAnimation
( parentLayout: boolean, childLayout: boolean )
packages/framer-motion/cypress/integration/drag-nested.ts:276
↓ 4 callers
Method
unmount
()
packages/motion-dom/src/projection/node/create-projection-node.ts:607
↓ 4 callers
Function
unwrapMotionComponent
( component: React.ComponentType | string )
packages/framer-motion/src/motion/utils/unwrap-motion-component.ts:10
↓ 4 callers
Function
update
()
packages/motion-dom/src/render/Feature.ts:21
↓ 4 callers
Method
update
()
packages/framer-motion/src/value/use-will-change/WillChangeMotionValue.ts:21
↓ 4 callers
Function
updateDelayedBy
(i: number)
packages/framer-motion/src/motion/__tests__/variant.test.tsx:811
↓ 4 callers
Method
updateLayout
()
packages/motion-dom/src/projection/node/types.ts:89
↓ 4 callers
Function
useAnimateMini
()
packages/framer-motion/src/animation/hooks/use-animate-style.ts:8
↓ 4 callers
Function
useAnimationFrame
(callback: FrameCallback)
packages/framer-motion/src/utils/use-animation-frame.ts:9
↓ 4 callers
Function
useDomEvent
( ref: RefObject<EventTarget | null>, eventName: string, handler?: EventListener | undefined,
packages/framer-motion/src/events/use-dom-event.ts:27
↓ 4 callers
Function
useInstantLayoutTransition
()
packages/framer-motion/src/projection/use-instant-layout-transition.ts:3
↓ 4 callers
Function
useInstantTransition
()
packages/framer-motion/src/utils/use-instant-transition.ts:9
↓ 4 callers
Function
useVelocity
(value: MotionValue<number>)
packages/framer-motion/src/value/use-velocity.ts:17
↓ 4 callers
Function
waitForFrame
()
packages/framer-motion/src/animation/animate/__tests__/animate.test.tsx:377
↓ 3 callers
Function
addKeyframes
( sequence: ValueSequence, keyframes: UnresolvedValueKeyframe[], easing: Easing | Easing[], of
packages/framer-motion/src/animation/sequence/utils/edit.ts:22
↓ 3 callers
Function
addScaleCorrector
(correctors: ScaleCorrectorMap)
packages/motion-dom/src/projection/styles/scale-correction.ts:19
↓ 3 callers
Function
addValueToWillChange
( visualElement: VisualElement, key: string )
packages/motion-dom/src/value/will-change/add-will-change.ts:5
↓ 3 callers
Function
animateTarget
( visualElement: VisualElement, targetAndTransition: TargetAndTransition, { delay = 0, transitionO
packages/motion-dom/src/animation/interfaces/visual-element-target.ts:33
↓ 3 callers
Function
animateType
( value: V | MotionValue<V>, target: V | V[] )
packages/framer-motion/src/animation/animate/__tests__/animate.test.tsx:112
↓ 3 callers
Function
animateVariant
( visualElement: VisualElement, variant: string, options: VisualElementAnimationOptions = {} )
packages/motion-dom/src/animation/interfaces/visual-element-variant.ts:8
↓ 3 callers
Function
animationControls
()
packages/framer-motion/src/animation/hooks/animation-controls.ts:45
↓ 3 callers
Function
applyGeneratorOptions
({ type, ...options }: ValueTransition)
packages/motion-dom/src/animation/waapi/utils/apply-generator.ts:5
↓ 3 callers
Function
asyncHandler
(handler?: PanEventHandler)
packages/framer-motion/src/gestures/pan/index.ts:9
↓ 3 callers
Function
attachFollow
( value: MotionValue<T>, source: T | MotionValue<T>, options: FollowValueOptions = {} )
packages/motion-dom/src/value/follow-value.ts:66
↓ 3 callers
Function
bezierTangentAngle
( t: number, originX: number, controlX: number, targetX: number, originY: number, cont
packages/motion-dom/src/animation/utils/arc.ts:45
↓ 3 callers
Function
calcAngularFreq
(undampedFreq: number, dampingRatio: number)
packages/motion-dom/src/animation/generators/spring.ts:50
↓ 3 callers
Function
calcOrigin
(source: Axis, target: Axis)
packages/framer-motion/src/gestures/drag/utils/constraints.ts:126
↓ 3 callers
Method
cancel
()
packages/motion-dom/src/animation/NativeAnimation.ts:147
↓ 3 callers
Method
clearAllSnapshots
()
packages/motion-dom/src/projection/node/create-projection-node.ts:817
↓ 3 callers
Function
collect
(sourceDir, outputFile)
dev/inc/collect-html-tests.js:4
↓ 3 callers
Function
convertBoundingBoxToBox
({ top, left, right, bottom, }: BoundingBox)
packages/motion-dom/src/projection/geometry/conversion.ts:8
↓ 3 callers
Function
copyAxisInto
(axis: Axis, originAxis: Axis)
packages/motion-dom/src/projection/geometry/copy.ts:8
↓ 3 callers
Function
createAxis
()
packages/motion-dom/src/projection/geometry/models.ts:15
↓ 3 callers
Function
createHtmlRenderState
()
packages/framer-motion/src/render/html/utils/create-render-state.ts:3
↓ 3 callers
Function
createSelectorEffect
( subjectEffect: ( subject: T, values: Record<string, MotionValue> ) => VoidFunction )
packages/motion-dom/src/effects/utils/create-dom-effect.ts:7
↓ 3 callers
Function
createUmd
(input, file)
packages/framer-motion/rollup.config.mjs:70
↓ 3 callers
Function
createVisualElement
()
packages/motion-dom/src/layout/LayoutAnimationBuilder.ts:85
↓ 3 callers
Function
defaultTransformValue
(name: string)
packages/motion-dom/src/render/dom/parse-transform.ts:62
↓ 3 callers
Function
distance2D
(a: Point, b: Point)
packages/framer-motion/src/utils/distance.ts:5
↓ 3 callers
Function
expectBbox
(element: HTMLElement, expectedBbox: Partial<BoundingBox>)
packages/framer-motion/cypress/integration/drag-framer-page.ts:8
↓ 3 callers
Function
findScrollableAncestor
( element: Element | null, axis: "x" | "y" )
packages/framer-motion/src/components/Reorder/utils/auto-scroll.ts:50
↓ 3 callers
Function
firePointerEvent
(target: EventTarget, type: "down" | "up" | "cancel")
packages/motion-dom/src/gestures/press/utils/keyboard.ts:13
↓ 3 callers
Function
formatErrorMessage
(message: string, errorCode?: string)
packages/motion-utils/src/format-error-message.ts:1
↓ 3 callers
Function
getChildKey
(child: ReactElement<any>)
packages/framer-motion/src/components/AnimatePresence/utils.ts:5
↓ 3 callers
Function
getMixer
(a: T)
packages/motion-dom/src/utils/mix/complex.ts:26
↓ 3 callers
Function
getOptimisedAppearId
( visualElement: WithAppearProps )
packages/motion-dom/src/animation/optimized-appear/get-appear-id.ts:4
↓ 3 callers
Function
getPanInfo
({ point }: EventInfo, history: TimestampedPoint[])
packages/framer-motion/src/gestures/pan/PanSession.ts:366
↓ 3 callers
Method
getStack
()
packages/motion-dom/src/projection/node/types.ts:98
↓ 3 callers
Function
getTextContents
()
packages/framer-motion/src/components/AnimatePresence/__tests__/AnimatePresence.test.tsx:510
↓ 3 callers
Method
getTransformTemplate
()
packages/motion-dom/src/projection/node/create-projection-node.ts:650
↓ 3 callers
Function
getTranslateX
(element: HTMLElement)
packages/framer-motion/cypress/integration/unit-conversion.ts:9
↓ 3 callers
Function
hasScale
({ scale, scaleX, scaleY }: ResolvedValues)
packages/motion-dom/src/projection/utils/has-transform.ts:8
↓ 3 callers
Function
hueToRgb
(p: number, q: number, t: number)
packages/motion-dom/src/value/types/color/hsla-to-rgba.ts:4
↓ 3 callers
Function
isCSSVar
(name: string)
packages/motion-dom/src/render/dom/is-css-var.ts:1
↓ 3 callers
Function
isColorString
(type: string, testProp?: string)
packages/motion-dom/src/value/types/color/utils.ts:10
↓ 3 callers
Function
isDOMKeyframes
( keyframes: unknown )
packages/framer-motion/src/animation/utils/is-dom-keyframes.ts:3
↓ 3 callers
Function
isGenerator
( type?: AnimationGeneratorType )
packages/motion-dom/src/animation/generators/utils/is-generator.ts:3
↓ 3 callers
Function
isIdentityScale
(scale: AnyResolvedKeyframe | undefined)
packages/motion-dom/src/projection/utils/has-transform.ts:4
↓ 3 callers
Function
isKeyframesTarget
( v: ValueKeyframesDefinition )
packages/motion-dom/src/render/utils/is-keyframes-target.ts:3
↓ 3 callers
Function
isLazyBundle
( features: FeatureBundle | LazyFeatureBundle )
packages/framer-motion/src/components/LazyMotion/index.tsx:77
↓ 3 callers
Function
loadFeatures
(features: FeaturePackages)
packages/framer-motion/src/motion/features/load-features.ts:5
↓ 3 callers
Function
logOpacities
()
packages/framer-motion/src/gestures/__tests__/press.test.tsx:823
↓ 3 callers
Function
makeAnimationInstant
( options: Partial<{ duration: ValueAnimationOptions["duration"] type: ValueAnimationOptio
packages/motion-dom/src/animation/utils/make-animation-instant.ts:3
↓ 3 callers
Function
makeUseVisualState
(config: UseVisualStateConfig<RS>)
packages/framer-motion/src/motion/utils/use-visual-state.ts:135
↓ 3 callers
Method
measure
(removeTransform?: boolean)
packages/motion-dom/src/projection/node/types.ts:87
↓ 3 callers
Function
memoSupports
( callback: () => T, supportsFlag: keyof typeof supportsFlags )
packages/motion-dom/src/utils/supports/memo.ts:4
↓ 3 callers
Method
mount
(instance: SVGElement)
packages/motion-dom/src/render/svg/SVGVisualElement.ts:76
↓ 3 callers
Function
nodeGroup
()
packages/motion-dom/src/projection/node/group.ts:12
↓ 3 callers
Function
normalizeTimes
( times: number[], repeat: number, repeatDelayUnits = 0 )
packages/framer-motion/src/animation/sequence/utils/normalize-times.ts:10
↓ 3 callers
Function
onStart
(name: string)
packages/framer-motion/src/motion/__tests__/variant.test.tsx:1309
↓ 3 callers
Function
onUpdate
(l: { [key: string]: number | string })
packages/framer-motion/src/motion/__tests__/variant.test.tsx:917
↓ 3 callers
Function
parseTestValue
(val: string | number)
packages/framer-motion/src/value/__tests__/use-follow-value.test.tsx:57
↓ 3 callers
Function
parseTestValue
(val: string | number)
packages/framer-motion/src/value/__tests__/use-spring.test.tsx:57
↓ 3 callers
Function
parseValue
(v: AnyResolvedKeyframe, unit?: string)
packages/motion-dom/src/value/follow-value.ts:162
↓ 3 callers
Method
promote
(options?: { needsReset?: boolean transition?: Transition preserveFollowOpacity?: bool
packages/motion-dom/src/projection/node/types.ts:135
↓ 3 callers
Function
rebaseAngle
(angle: number)
packages/motion-dom/src/render/dom/parse-transform.ts:32
↓ 3 callers
Function
rebaseAxisConstraints
( layout: Axis, constraints: Partial<Axis> )
packages/framer-motion/src/gestures/drag/utils/constraints.ts:178
↓ 3 callers
Function
recordAndReset
()
packages/framer-motion/src/motion/__tests__/transition-keyframes.test.tsx:131
↓ 3 callers
Function
relativeTo
(idOrElem: string | HTMLElement)
packages/framer-motion/src/events/__tests__/types.test.tsx:4
↓ 3 callers
Function
releaseViewTransitionNames
( assigned: Element[], classed: Element[] = [], grouped: Element[] = [] )
packages/motion-dom/src/view/utils/assign-names.ts:177
↓ 3 callers
Method
relegate
()
packages/motion-dom/src/projection/node/types.ts:140
↓ 3 callers
Function
resetDistortingTransform
( key: string, visualElement: VisualElement, values: ResolvedValues, sharedAnimationValues?: R
packages/motion-dom/src/projection/node/create-projection-node.ts:93
← previous
next →
301–400 of 1,999, ranked by callers