MCPcopy Index your code

hub / github.com/motiondivision/motion / functions

Functions1,999 in github.com/motiondivision/motion

↓ 1,368 callersMethodget
* Returns the latest state of `MotionValue` * * @returns - The latest state of `MotionValue` * * @public
packages/motion-dom/src/value/index.ts:384
↓ 853 callersFunctiontest
()
packages/motion-utils/src/__tests__/memo.test.ts:7
↓ 562 callersFunctionrender
(children: any, isStrict = true)
packages/framer-motion/src/jest.setup.tsx:102
↓ 401 callersFunctionmotionValue
(init: V, options?: MotionValueOptions)
packages/motion-dom/src/value/index.ts:509
↓ 327 callersFunctiontest
(v: any)
packages/motion-dom/src/value/types/complex/index.ts:9
↓ 318 callersFunctionnextFrame
()
packages/framer-motion/src/gestures/__tests__/utils.ts:3
↓ 234 callersMethodset
* Sets the state of the `MotionValue`. * * @remarks * * ```jsx * const x = useMotionValue(0) * x.set(10) * ```
packages/motion-dom/src/value/index.ts:305
↓ 168 callersFunctioncreateMotionComponent
( Component: TagName | string | React.ComponentType<Props>, { forwardMotionProps = false, type }: Moti
packages/framer-motion/src/motion/index.tsx:71
↓ 165 callersFunctionuseMotionValue
(initial: T)
packages/framer-motion/src/value/use-motion-value.ts:25
↓ 164 callersFunctioncreateMinimalMotionComponent
( Component: TagName | string | React.ComponentType<Props>, options?: MotionComponentOptions )
packages/framer-motion/src/render/components/m/create.ts:4
↓ 130 callersMethodthen
(resolve: () => void, reject?: () => void)
packages/motion-dom/src/view/index.ts:226
↓ 125 callersFunctionanimate
()
dev/react/src/examples/Animation-stagger-custom.tsx:54
↓ 105 callersMethodforEach
(callback: (child: WithDepth) => void)
packages/motion-dom/src/projection/utils/flat-tree.ts:19
↓ 81 callersMethodset
( name: string, value: MotionValue, render?: VoidFunction, computed?: MotionVa
packages/motion-dom/src/effects/MotionValueState.ts:15
↓ 81 callersFunctionuseTransform
( input: | MotionValue<I> | MotionValue<string>[] | MotionValue<number>[]
packages/framer-motion/src/value/use-transform.ts:172
↓ 78 callersFunctionparseValueFromTransform
( transform: string | undefined, name: string )
packages/motion-dom/src/render/dom/parse-transform.ts:66
↓ 77 callersFunctionexpectBbox
(element: HTMLElement, expectedBbox: BoundingBox)
packages/framer-motion/cypress/integration/layout-shared.ts:8
↓ 60 callersFunctionanimateValue
( options: ValueAnimationOptions<T> )
packages/motion-dom/src/animation/JSAnimation.ts:553
↓ 59 callersMethodon
( eventName: EventName, callback: MotionValueEventCallbacks<V>[EventName] )
packages/motion-dom/src/value/index.ts:247
↓ 55 callersMethodend
()
packages/framer-motion/src/gestures/pan/PanSession.ts:347
↓ 55 callersFunctiongetComputedStyle
( element: HTMLElement | SVGElement, name: string )
packages/motion-dom/src/render/dom/style-computed.ts:3
↓ 53 callersFunctiondrag
(element: any, triggerElement?: any)
packages/framer-motion/src/gestures/drag/__tests__/utils.tsx:33
↓ 53 callersMethodupdate
()
packages/framer-motion/src/gestures/pan/index.ts:56
↓ 52 callersMethodadd
(name: string)
packages/motion-dom/src/value/will-change/types.ts:4
↓ 47 callersFunctionsyncDriver
(interval = 10)
packages/motion-dom/src/animation/__tests__/utils.ts:4
↓ 45 callersFunctioncreateAnimationsFromSequence
( sequence: AnimationSequence, { defaultTransition = {}, ...sequenceTransition }: SequenceOptions = {}
packages/framer-motion/src/animation/sequence/create.ts:43
↓ 44 callersFunctionresolveEdge
(edge: Edge, length: number, inset = 0)
packages/framer-motion/src/render/dom/scroll/offsets/edge.ts:9
↓ 44 callersFunctionwaitForAnimation
(url: string, page: Page, customTimeout = 500)
tests/animate/animate.spec.ts:18
↓ 41 callersFunctioneachBox
( page: Page, callback: (box: Locator, index: number) => Promise<void> )
tests/animate/animate.spec.ts:3
↓ 40 callersFunctionf
(b, c, e)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:50
↓ 40 callersFunctionmockAnimate
(state: AnimationState)
packages/framer-motion/src/render/utils/__tests__/animation-state.test.ts:42
↓ 38 callersMethodaddEventListener
(name: LayoutEvents, handler: any)
packages/motion-dom/src/projection/node/types.ts:145
↓ 38 callersFunctionexpectBbox
(element: HTMLElement, expectedBbox: Partial<BoundingBox>)
packages/framer-motion/cypress/integration/drag-nested.ts:8
↓ 38 callersFunctionpointerDown
(element: Element)
packages/framer-motion/src/jest.setup.tsx:65
↓ 36 callersFunctionresolveOffset
( offset: Edge | Intersection | ProgressIntersection, containerLength: number, targetLength: numbe
packages/framer-motion/src/render/dom/scroll/offsets/offset.ts:6
↓ 35 callersFunctioncreateMockMeasurement
(element: Element | null, name: string)
packages/framer-motion/src/render/dom/scroll/__tests__/index.test.ts:27
↓ 35 callersFunctionmixNumber
(from: number, to: number, progress: number)
packages/motion-dom/src/utils/mix/number.ts:22
↓ 35 callersFunctionpointerUp
(element: Element)
packages/framer-motion/src/jest.setup.tsx:72
↓ 33 callersFunctionlogOpacity
()
packages/framer-motion/src/gestures/__tests__/press.test.tsx:392
↓ 32 callersFunctionc
(a)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:24
↓ 30 callersFunctiona
(a, b)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:1151
↓ 30 callersMethodgetProps
()
packages/framer-motion/src/gestures/drag/VisualElementDragControls.ts:770
↓ 30 callersFunctionreadResult
(page: import("@playwright/test").Page)
tests/view/view-targets.spec.ts:49
↓ 29 callersFunctionisMotionValue
(value: any)
packages/motion-dom/src/value/utils/is-motion-value.ts:3
↓ 28 callersFunctioncreateBox
()
packages/motion-dom/src/projection/geometry/models.ts:17
↓ 28 callersFunctioncreateTest
( props: MotionProps = {}, parent: VisualElement<any> | undefined = undefined )
packages/framer-motion/src/render/utils/__tests__/animation-state.test.ts:6
↓ 28 callersMethodsample
(sampleTime: number)
packages/motion-dom/src/animation/JSAnimation.ts:535
↓ 28 callersFunctionscroll
( onScroll: OnScroll | AnimationPlaybackControls, { axis = "y", container = document.s
packages/framer-motion/src/render/dom/scroll/index.ts:7
↓ 28 callersFunctionspring
( optionsOrVisualDuration: | ValueAnimationOptions<number> | number = springDefaults.visua
packages/motion-dom/src/animation/generators/spring.ts:221
↓ 27 callersFunctioninterpolate
( input: number[], output: T[], { clamp: isClamp = true, ease, mixer }: InterpolateOptions<T> = {}
packages/motion-dom/src/utils/interpolate.ts:62
↓ 27 callersFunctionnextFrame
()
packages/motion-dom/src/effects/__tests__/style-effect.test.ts:5
↓ 26 callersFunctionmixColor
(from: Color | string, to: Color | string)
packages/motion-dom/src/utils/mix/color.ts:44
↓ 26 callersFunctionuseScroll
({ container, target, ...options }: UseScrollOptions = {})
packages/framer-motion/src/value/use-scroll.ts:87
↓ 25 callersFunctioncreateArcPath
({ strength = 0.5, peak = 0.5, direction, rotate = false, }: ArcOptions = {})
packages/motion-dom/src/animation/utils/arc.ts:91
↓ 25 callersFunctioncreateTestAnimationControls
( partialControls?: Partial<AnimationPlaybackControlsWithThen> )
packages/motion-dom/src/animation/__tests__/GroupAnimation.test.ts:5
↓ 25 callersFunctionexpectBbox
(element: HTMLElement, expectedBbox: BoundingBox)
packages/framer-motion/cypress/integration/layout.ts:8
↓ 25 callersFunctionmix
(from: T, to: T, p?: T)
packages/motion-dom/src/utils/mix/index.ts:7
↓ 25 callersFunctionsecondsToMilliseconds
(seconds: number)
packages/motion-utils/src/time-conversion.ts:9
↓ 24 callersFunctioncallback
()
packages/motion-dom/src/view/start.ts:446
↓ 24 callersFunctioncreateValue
(num: number)
packages/motion-dom/src/value/__tests__/spring-value.test.ts:31
↓ 24 callersFunctionuseCycle
(...items: T[])
packages/framer-motion/src/utils/use-cycle.ts:36
↓ 23 callersFunctionstagger
( duration: number = 0.1, { startDelay = 0, from = 0, ease }: StaggerOptions = {} )
packages/motion-dom/src/utils/stagger.ts:21
↓ 22 callersMethodrender
()
packages/framer-motion/src/components/AnimatePresence/PopChild.tsx:69
↓ 21 callersFunctioninvariant
()
packages/motion-utils/src/errors.ts:10
↓ 21 callersMethodupdate
()
packages/motion-dom/src/projection/node/create-projection-node.ts:724
↓ 21 callersFunctionuseConstant
(init: Init<T>)
packages/framer-motion/src/utils/use-constant.ts:14
↓ 20 callersFunctione
()
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:42
↓ 20 callersFunctionuseSpring
( source: MotionValue<string> | MotionValue<number> | string | number, options: UseSpringOptions = {}
packages/framer-motion/src/value/use-spring.ts:44
↓ 19 callersFunctiongetFinalKeyframe
( keyframes: T[], { repeat, repeatType = "loop" }: AnimationPlaybackOptions, finalKeyframe?: T,
packages/motion-dom/src/animation/keyframes/get-final.ts:5
↓ 19 callersFunctionnextFrame
()
packages/framer-motion/src/render/dom/scroll/__tests__/index.test.ts:20
↓ 19 callersMethodstop
* Stop the currently active animation. * * @public
packages/motion-dom/src/value/index.ts:465
↓ 18 callersFunctionexpectBbox
(element: HTMLElement, expectedBbox: Partial<BoundingBox>)
packages/framer-motion/cypress/integration/animate-presence-pop.ts:8
↓ 18 callersMethodnotify
()
packages/motion-dom/src/resize/__tests__/mock-resize-observer.ts:35
↓ 18 callersFunctionpointerEnter
(element: Element, options?: any)
packages/framer-motion/src/jest.setup.tsx:42
↓ 18 callersFunctionuseAnimate
()
packages/framer-motion/src/animation/hooks/use-animate.ts:11
↓ 17 callersFunctioncalcNextTime
( current: number, next: SequenceTime, prev: number, labels: Map<string, number> )
packages/framer-motion/src/animation/sequence/utils/calc-time.ts:7
↓ 17 callersFunctionnextMicrotask
()
packages/framer-motion/src/gestures/__tests__/utils.ts:9
↓ 16 callersFunctionassignViewTransitionNames
( definition: ElementOrSelector, registry: Map<Element, string>, assigned: Element[], forcedNa
packages/motion-dom/src/view/utils/assign-names.ts:78
↓ 16 callersFunctionclamp
(min: number, max: number, v: number)
packages/motion-utils/src/clamp.ts:1
↓ 16 callersFunctiongetValueTransition
(transition: any, key: string)
packages/motion-dom/src/animation/utils/get-value-transition.ts:3
↓ 16 callersFunctionnextFrame
()
packages/motion-dom/src/effects/__tests__/svg-effect.test.ts:5
↓ 16 callersFunctionoffsetToViewTimelineRange
( offset?: ScrollOffset )
packages/framer-motion/src/render/dom/scroll/utils/offset-to-range.ts:69
↓ 16 callersFunctiontestAnimate
( options: ValueAnimationOptions<V>, expected: V[], resolve: () => void )
packages/motion-dom/src/animation/__tests__/JSAnimation.test.ts:15
↓ 16 callersMethodthen
* Allows the animation to be awaited. * * @deprecated Use `finished` instead.
packages/motion-dom/src/animation/utils/WithPromise.ts:29
↓ 16 callersFunctionuseFollowValue
( source: MotionValue<string> | MotionValue<number> | AnyResolvedKeyframe, options: FollowValueOptions
packages/framer-motion/src/value/use-follow-value.ts:63
↓ 16 callersFunctionuseMotionValueEvent
( value: MotionValue<V>, event: EventName, callback: MotionValueEventCallbacks<V>[EventName] )
packages/framer-motion/src/utils/use-motion-value-event.ts:6
↓ 15 callersFunctionbuildTransform
(state: MotionValueState)
packages/motion-dom/src/effects/style/transform.ts:11
↓ 15 callersFunctioncalcLength
(axis: Axis)
packages/motion-dom/src/projection/geometry/delta-calc.ts:12
↓ 15 callersFunctioncontainsCSSVariable
( value?: AnyResolvedKeyframe | null )
packages/motion-dom/src/animation/utils/is-css-variable.ts:36
↓ 15 callersFunctioncreateValue
(num: number)
packages/framer-motion/src/value/__tests__/use-follow-value.test.tsx:50
↓ 15 callersFunctioncreateValue
(num: number)
packages/framer-motion/src/value/__tests__/use-spring.test.tsx:50
↓ 15 callersFunctioninertia
({ keyframes, velocity = 0.0, power = 0.8, timeConstant = 325, bounceDamping = 10, bou
packages/motion-dom/src/animation/generators/inertia.ts:9
↓ 15 callersMethodwillUpdate
(notifyListeners?: boolean)
packages/motion-dom/src/projection/node/types.ts:85
↓ 14 callersMethodcancel
()
packages/motion-dom/src/animation/JSAnimation.ts:515
↓ 14 callersFunctionfireElementScroll
(distance: number = 0)
packages/framer-motion/src/render/dom/scroll/__tests__/index.test.ts:148
↓ 14 callersMethodgetSize
()
packages/motion-utils/src/subscription-manager.ts:39
↓ 14 callersMethodgetVelocity
* 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 callersFunctionhasBrowserOnlyColors
(keyframes: any[])
packages/motion-dom/src/animation/waapi/utils/is-browser-color.ts:4
↓ 14 callersFunctioni
(a, b, c, d)
packages/framer-motion/src/animation/animators/waapi/__tests__/polyfill.js:94
↓ 14 callersFunctionisAnimatable
( value: ValueKeyframesDefinition, name?: string )
packages/motion-dom/src/animation/utils/is-animatable.ts:13
next →1–100 of 1,999, ranked by callers