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
↓ 7 callers
Function
progress
(from: number, to: number, value: number)
packages/motion-utils/src/progress.ts:9
↓ 7 callers
Function
radToDeg
(rad: number)
packages/motion-dom/src/render/dom/parse-transform.ts:3
↓ 7 callers
Method
remove
(node: IProjectionNode)
packages/motion-dom/src/projection/shared/stack.ts:25
↓ 7 callers
Function
resolveVariant
( visualElement: any, definition?: AnimationDefinition, custom?: any )
packages/motion-dom/src/render/utils/resolve-dynamic-variants.ts:22
↓ 7 callers
Function
reverseEasing
(easing)
packages/motion-utils/src/easing/modifiers/reverse.ts:7
↓ 7 callers
Function
setTarget
( visualElement: VisualElement, definition: AnimationDefinition )
packages/motion-dom/src/render/utils/setters.ts:35
↓ 7 callers
Function
syncDriver
(interval = 10)
packages/framer-motion/src/animation/animators/__tests__/utils.ts:3
↓ 7 callers
Function
transformBox
( box: Box, transform: ResolvedValues, sourceBox?: Box )
packages/motion-dom/src/projection/geometry/delta-apply.ts:186
↓ 7 callers
Function
transformValue
(transform: () => O)
packages/motion-dom/src/value/transform-value.ts:28
↓ 7 callers
Function
useWillChange
()
packages/framer-motion/src/value/use-will-change/index.ts:7
↓ 6 callers
Function
addDomEvent
( target: EventTarget, eventName: string, handler: EventListener, options: AddEventListenerOpt
packages/motion-dom/src/events/add-dom-event.ts:1
↓ 6 callers
Function
analyseComplexValue
( value: AnyResolvedKeyframe )
packages/motion-dom/src/value/types/complex/index.ts:46
↓ 6 callers
Function
animateView
( update: () => void | Promise<void>, options: ViewTransitionOptions = {} )
packages/motion-dom/src/view/index.ts:231
↓ 6 callers
Function
applyPointDelta
( point: number, translate: number, scale: number, originPoint: number, boxScale?: number
packages/motion-dom/src/projection/geometry/delta-apply.ts:18
↓ 6 callers
Function
canAnimate
( keyframes: ResolvedKeyframes<any>, name?: string, type?: AnimationGeneratorType, velocity?:
packages/motion-dom/src/animation/utils/can-animate.ts:15
↓ 6 callers
Function
defaultOffset
(arr: any[])
packages/motion-dom/src/animation/keyframes/offsets/default.ts:3
↓ 6 callers
Function
expectBbox
(element: HTMLElement, expectedBbox: BoundingBox)
packages/framer-motion/cypress/integration/layout-viewport-jump.ts:8
↓ 6 callers
Function
expectBbox
(element: HTMLElement, expectedBbox: BoundingBox)
packages/framer-motion/cypress/integration/layout-resize.ts:8
↓ 6 callers
Function
fillWildcards
( keyframes: ValueKeyframe[] | UnresolvedValueKeyframe[] )
packages/motion-dom/src/animation/keyframes/utils/fill-wildcards.ts:3
↓ 6 callers
Function
followValue
( source: T | MotionValue<T>, options?: FollowValueOptions )
packages/motion-dom/src/value/follow-value.ts:43
↓ 6 callers
Function
isObject
(value: unknown)
packages/motion-utils/src/is-object.ts:1
↓ 6 callers
Function
isRefPending
(ref?: RefObject<HTMLElement | null>)
packages/framer-motion/src/value/use-scroll.ts:32
↓ 6 callers
Method
mount
()
packages/framer-motion/src/gestures/hover.ts:23
↓ 6 callers
Function
nextFrame
()
packages/motion-dom/src/effects/__tests__/prop-effect.test.ts:5
↓ 6 callers
Function
parseCSSVariable
(current: string)
packages/motion-dom/src/animation/utils/css-variables-conversion.ts:18
↓ 6 callers
Method
render
()
dev/react/src/examples/Shared-layout-motion-value-continuity.tsx:33
↓ 6 callers
Function
replaceSettings
(env)
packages/framer-motion/rollup.config.mjs:17
↓ 6 callers
Function
resolveDragElastic
( dragElastic: DragElastic = defaultElastic )
packages/framer-motion/src/gestures/drag/utils/constraints.ts:199
↓ 6 callers
Method
resolveTargetDelta
(force?: boolean)
packages/motion-dom/src/projection/node/types.ts:109
↓ 6 callers
Function
resolveVariantFromProps
( props: MotionNodeOptions, definition?: AnimationDefinition, custom?: any, visualElement?: an
packages/motion-dom/src/render/utils/resolve-variants.ts:32
↓ 6 callers
Function
tagProxy
( createComponent: CreateComponent<ComponentProps> )
packages/framer-motion/src/components/utils/tag-proxy.ts:16
↓ 6 callers
Function
transformPoint
( info: EventInfo, transformPagePoint?: (point: Point) => Point )
packages/framer-motion/src/gestures/pan/PanSession.ts:355
↓ 6 callers
Function
useHTMLProps
( props: MotionProps & HTMLProps<HTMLElement>, visualState: ResolvedValues )
packages/framer-motion/src/render/html/use-props.ts:51
↓ 6 callers
Function
useMotionTemplate
( fragments: TemplateStringsArray, ...values: Array<MotionValue | number | string> )
packages/framer-motion/src/value/use-motion-template.ts:28
↓ 5 callers
Function
addPointerEvent
( target: EventTarget, eventName: string, handler: EventListenerWithPointInfo, options?: AddEv
packages/framer-motion/src/events/add-pointer-event.ts:4
↓ 5 callers
Function
addUniqueItem
(arr: T[], item: T)
packages/motion-utils/src/array.ts:1
↓ 5 callers
Function
calcBoxDelta
( delta: Delta, source: Box, target: Box, origin?: ResolvedValues )
packages/motion-dom/src/projection/geometry/delta-calc.ts:52
↓ 5 callers
Function
calcGeneratorDuration
( generator: KeyframeGenerator<unknown> )
packages/motion-dom/src/animation/generators/utils/calc-duration.ts:8
↓ 5 callers
Method
calcProjection
()
packages/motion-dom/src/projection/node/types.ts:110
↓ 5 callers
Function
calcRelativeAxis
( target: Axis, relative: Axis, parent: Axis, anchor: number = 0 )
packages/motion-dom/src/projection/geometry/delta-calc.ts:72
↓ 5 callers
Function
calcRelativeAxisPosition
( target: Axis, layout: Axis, parent: Axis, anchor: number = 0 )
packages/motion-dom/src/projection/geometry/delta-calc.ts:95
↓ 5 callers
Function
calcRelativeBox
( target: Box, relative: Box, parent: Box, anchor?: Point )
packages/motion-dom/src/projection/geometry/delta-calc.ts:85
↓ 5 callers
Function
calcViewportAxisConstraints
( layoutAxis: Axis, constraintsAxis: Axis )
packages/framer-motion/src/gestures/drag/utils/constraints.ts:93
↓ 5 callers
Function
camelToDash
(str: string)
packages/motion-dom/src/render/dom/utils/camel-to-dash.ts:1
↓ 5 callers
Function
createSizeBundle
(input, output)
packages/framer-motion/rollup.size.config.mjs:14
↓ 5 callers
Function
createUnitType
(unit: string)
packages/motion-dom/src/value/types/numbers/units.ts:4
↓ 5 callers
Function
deferred
()
packages/framer-motion/src/gestures/drag/__tests__/utils.tsx:25
↓ 5 callers
Function
delay
(callback: DelayedFunction, timeout: number)
packages/motion-dom/src/utils/delay.ts:11
↓ 5 callers
Function
easing
(v: number)
packages/framer-motion/src/motion/__tests__/animate-prop.test.tsx:373
↓ 5 callers
Function
escapeCsvField
* Escape CSV field - handle quotes and commas
scripts/generate-changelog.js:54
↓ 5 callers
Function
extractEventInfo
(event: PointerEvent)
packages/framer-motion/src/events/event-info.ts:8
↓ 5 callers
Function
focus
(element: HTMLElement, testId: string)
packages/framer-motion/src/jest.setup.tsx:93
↓ 5 callers
Function
generateLinearEasing
( easing: EasingFunction, duration: number, // as milliseconds resolution: number = 10 // as milli
packages/motion-dom/src/animation/waapi/utils/linear.ts:3
↓ 5 callers
Function
getOriginIndex
(from: StaggerOrigin, total: number)
packages/motion-dom/src/utils/stagger.ts:12
↓ 5 callers
Method
isLead
()
packages/motion-dom/src/projection/node/types.ts:134
↓ 5 callers
Function
isMotionComponent
(component: React.ComponentType | string)
packages/framer-motion/src/motion/utils/is-motion-component.ts:6
↓ 5 callers
Function
isNear
( value: number, target: number, maxDistance: number )
packages/motion-dom/src/projection/geometry/delta-calc.ts:16
↓ 5 callers
Function
isNodeOrChild
( parent: Element | null, child?: Element | null )
packages/motion-dom/src/gestures/utils/is-node-or-child.ts:8
↓ 5 callers
Function
isVariantLabel
(v: unknown)
packages/motion-dom/src/render/utils/is-variant-label.ts:4
↓ 5 callers
Function
isWillChangeMotionValue
(value: any)
packages/motion-dom/src/value/will-change/is.ts:4
↓ 5 callers
Function
mirrorEasing
(easing)
packages/motion-utils/src/easing/modifiers/mirror.ts:7
↓ 5 callers
Function
nextFrame
()
packages/motion-dom/src/projection/node/__tests__/utils.ts:4
↓ 5 callers
Method
notifyListeners
(name: LayoutEvents, ...args: any)
packages/motion-dom/src/projection/node/create-projection-node.ts:427
↓ 5 callers
Function
parseTestValue
(val: string | number)
packages/motion-dom/src/value/__tests__/spring-value.test.ts:38
↓ 5 callers
Function
remove
(item: Ingredient)
dev/react/src/tests/drag-tabs.tsx:14
↓ 5 callers
Function
replaceSettings
(env)
packages/motion-dom/rollup.config.mjs:14
↓ 5 callers
Method
runAll
( methodName: keyof Omit< AnimationPlaybackControls, PropNames | "then" | "fin
packages/motion-dom/src/animation/GroupAnimation.ts:86
↓ 5 callers
Method
safeToRemove
()
packages/framer-motion/src/motion/features/layout/MeasureLayout.tsx:159
↓ 5 callers
Function
sanitize
(v: number)
packages/motion-dom/src/value/types/utils/sanitize.ts:3
↓ 5 callers
Method
setTargetDelta
(delta: Delta)
packages/motion-dom/src/projection/node/types.ts:105
↓ 5 callers
Method
tick
(timestamp: number, sample = false)
packages/motion-dom/src/animation/JSAnimation.ts:189
↓ 5 callers
Function
update
()
packages/framer-motion/src/value/scroll/utils.ts:39
↓ 5 callers
Function
update
()
packages/motion-dom/src/value/subscribe-value.ts:9
↓ 5 callers
Method
updateScroll
(phase?: Phase)
packages/motion-dom/src/projection/node/types.ts:92
↓ 5 callers
Method
updateTarget
( target: "enter" | "exit" | "layout" | "new" | "old", keyframes: DOMKeyframesDefinition,
packages/motion-dom/src/view/index.ts:210
↓ 5 callers
Function
useInView
( ref: RefObject<Element | null>, { root, margin, amount, once = false
packages/framer-motion/src/utils/use-in-view.ts:14
↓ 5 callers
Function
useSVGProps
( props: MotionProps, visualState: ResolvedValues, _isStatic: boolean, Component: string | Rea
packages/framer-motion/src/render/svg/use-props.ts:10
↓ 5 callers
Function
velocityPerSecond
(velocity: number, frameDuration: number)
packages/motion-utils/src/velocity-per-second.ts:5
↓ 4 callers
Function
animateMotionValue
( name: string, value: MotionValue<V>, target: V | UnresolvedKeyframes<V>, tra
packages/motion-dom/src/animation/interfaces/motion-value.ts:20
↓ 4 callers
Function
animateSync
( animation: KeyframeGenerator<AnyResolvedKeyframe>, timeStep = 200, round = true )
packages/motion-dom/src/animation/generators/__tests__/keyframes.test.ts:7
↓ 4 callers
Function
appearStoreId
(elementId: string, valueName: string)
packages/framer-motion/src/animation/optimized-appear/store-id.ts:3
↓ 4 callers
Function
attachSpring
( value: MotionValue<T>, source: T | MotionValue<T>, options?: SpringOptions )
packages/motion-dom/src/value/spring-value.ts:37
↓ 4 callers
Function
buildHTMLStyles
( state: HTMLRenderState, latestValues: ResolvedValues, transformTemplate?: MotionNodeOptions["tra
packages/motion-dom/src/render/html/utils/build-styles.ts:10
↓ 4 callers
Function
calcAxisDelta
( delta: AxisDelta, source: Axis, target: Axis, origin: number = 0.5 )
packages/motion-dom/src/projection/geometry/delta-calc.ts:24
↓ 4 callers
Function
canUseNativeTimeline
(target?: Element)
packages/framer-motion/src/render/dom/scroll/utils/can-use-native-timeline.ts:3
↓ 4 callers
Method
cancel
* Cancels a drag gesture. * * ```jsx * dragControls.cancel() * ``` * * @public
packages/framer-motion/src/gestures/drag/use-drag-controls.ts:78
↓ 4 callers
Function
checkVariantsDidChange
(prev: any, next: any)
packages/motion-dom/src/render/utils/animation-state.ts:487
↓ 4 callers
Function
cleanDirtyNodes
(node: IProjectionNode)
packages/motion-dom/src/projection/node/create-projection-node.ts:2323
↓ 4 callers
Function
click
(element: Element)
packages/framer-motion/src/jest.setup.tsx:38
↓ 4 callers
Method
complete
(isForcedComplete = false)
packages/motion-dom/src/animation/keyframes/KeyframesResolver.ts:199
↓ 4 callers
Function
correctParentTransform
( parentRef: RefObject<HTMLElement | null> )
packages/framer-motion/src/utils/transform-rotated-parent.ts:34
↓ 4 callers
Function
createEffect
( addValue: ( subject: Subject, state: MotionValueState, key: string, valu
packages/motion-dom/src/effects/utils/create-effect.ts:4
↓ 4 callers
Function
createProjectionNode
({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform,
packages/motion-dom/src/projection/node/create-projection-node.ts:139
↓ 4 callers
Function
defaultEasing
( values: any[], easing?: EasingFunction )
packages/motion-dom/src/animation/generators/keyframes.ts:17
↓ 4 callers
Function
distance
(a: number, b: number)
packages/framer-motion/src/utils/distance.ts:3
↓ 4 callers
Function
expectBbox
(element: HTMLElement, expectedBbox: BoundingBox)
packages/framer-motion/cypress/integration/layout-relative-delay.ts:8
↓ 4 callers
Function
formatOutput
(num: number)
packages/motion-dom/src/value/__tests__/spring-value.test.ts:41
↓ 4 callers
Method
getAll
* TODO: Filter out cancelled or stopped animations before returning
packages/motion-dom/src/animation/GroupAnimation.ts:31
↓ 4 callers
Method
getLead
()
packages/motion-dom/src/projection/node/create-projection-node.ts:1872
↓ 4 callers
Function
isAnimationControls
(v?: unknown)
packages/motion-dom/src/render/utils/is-animation-controls.ts:3
← previous
next →
201–300 of 1,999, ranked by callers