motion

Warn

Audited by Runlayer on Feb 21, 2026

Risk Level: MEDIUM
Scan Summary
Max Score
78%
Files
55
Flagged
25
Chunks
55
Flagged Files (25)
references/advanced-use-animate.mdHIGH
78.3%

Malicious tool definition detected

const sequence = async () => { await animate(scope.current, { x: 100 }) await animate(scope.current, { y: 100 }) await animate(scope.current, { x: 0, y: 0 }) } ``` ### Animate with Options ```jsx animate(scope.current, { scale: 1.5 }, { duration: 0.5, ease: "easeOut" }) ``` ### Keyframes ```jsx animate(scope.current, { x: [0, 100, 200, 0], scale: [1, 1.5, 1] }) ``` ## Key Points - `useAnimate` returns `[scope, animate]` - `scope` is a ref to attach to elements - `animate` function animates eleme

references/best-practices-bundle.mdHIGH
78.3%

Malicious tool definition detected

## Key Points - Prefer `m` over `motion` for components - Use LazyMotion with the smallest feature set you need - Import from `motion/client` in Next.js Client Components - Use `motion/mini` when only imperative animations are needed <!-- Source references: - packages/motion/src/ - advanced-lazy-motion.md -->

references/core-animation.mdHIGH
78.3%

Malicious tool definition detected

### Style Properties Standard CSS properties: - `opacity` - Opacity (0-1) - `backgroundColor` - Color values - `borderRadius` - Border radius - `width`, `height` - Dimensions - Any CSS property ### SVG Properties SVG-specific properties: - `pathLength` - Path drawing animation - `pathOffset` - Path offset - `pathSpacing` - Path spacing ## Keyframe Animations Use arrays for keyframe animations: ```jsx <motion.div animate={{ x: [0, 100, 200, 0], scale: [1, 1.5, 1], rotate: [0, 90, 180, 0] }} trans

references/core-frameloop.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/core-frameloop.md Description: --- name: core-frameloop description: frame, cancelFrame for Motion's animation loop --- # frame & cancelFrame Motion uses a batched animation loop.

references/core-javascript-animate.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/core-javascript-animate.md Description: --- name: core-javascript-animate description: Vanilla animate() API and animation sequences for elements, motion values, and objects --- # JavaScript animate() and Sequences Motion exposes an imperative `animate()` function for JavaScript (and React).

references/core-motion-mini.mdHIGH
78.3%

Malicious tool definition detected

const [scope, animate] = useAnimate() const runAnimation = () => { animate(scope.current, { x: 100 }, { duration: 0.5 }) } return <div ref={scope} onClick={runAnimation}>Animate</div> } ``` ## What's Included - `useAnimate` (mini) — imperative animation with WAAPI - No motion components, gestures, layout, or MotionValues - Smallest possible Motion footprint ## Key Points - Use `motion/mini` for minimal bundle when you only need imperative animations - WAAPI (Web Animations API) only — no JavaScr

references/core-vanilla-motion-value.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/core-vanilla-motion-value.md Description: --- name: core-vanilla-motion-value description: motionValue() for creating MotionValues without React --- # motionValue (Vanilla) `motionValue` creates a `MotionValue` without React.

references/core-variants.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/core-variants.md Description: --- name: core-variants description: Declarative animation variants for reusable animation states --- # Variants Variants are named animation states that can be reused across components.

references/features-optimized-appear.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/features-optimized-appear.md Description: --- name: features-optimized-appear description: Optimized appear animations for SSR and first paint --- # Optimized Appear Motion supports “optimized appear” animations: animations that are defined in HTML/CSS (e.g.

references/features-react-client.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/features-react-client.md Description: --- name: features-react-client description: motion/client for Next.js App Router and "use client" --- # motion/client For Next.js App Router and other React 18+ setups using `"use client"`, import from `motion/client` to get individual components.

references/gestures-hover-focus.mdHIGH
78.3%

Malicious tool definition detected

### Focus Handlers ```jsx <motion.input onFocus={(event) => { console.log("Focused") }} onBlur={(event) => { console.log("Blurred") }} /> ``` ### Combined States ```jsx <motion.button whileHover={{ scale: 1.05 }} whileFocus={{ scale: 1.05, boxShadow: "0 0 0 2px blue" }} whileTap={{ scale: 0.95 }} /> ``` ## Key Points - `whileHover` animates on hover - `whileFocus` animates on focus - Use for interactive element feedback - Handlers provide event objects - Works with all interactive elements - Com

references/layout-animate-presence.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/layout-animate-presence.md Description: --- name: layout-animate-presence description: Animate components entering and exiting --- # AnimatePresence `AnimatePresence` enables exit animations for components that are removed from the React tree.

references/layout-animations.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/layout-animations.md Description: --- name: layout-animations description: Automatic layout animations with layoutId --- # Layout Animations Layout animations automatically animate components when their layout changes.

references/layout-group.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/layout-group.md Description: --- name: layout-group description: Coordinate layout animations across components --- # LayoutGroup `LayoutGroup` coordinates layout animations across multiple components.

references/layout-instant-transition.mdHIGH
78.3%

Malicious tool definition detected

<!-- Source references: - packages/framer-motion/src/projection/use-instant-layout-transition.ts - motion-dom rootProjectionNode -->

references/layout-reorder.mdHIGH
78.3%

Malicious tool definition detected

```jsx <Reorder.Item value={item} layout initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} > {item.name} </Reorder.Item> ``` ### Drag Constraints ```jsx <Reorder.Item value={item} dragConstraints={{ top: 0, bottom: 0 }} > {item.name} </Reorder.Item> ``` ## Key Points - `Reorder.Group` wraps reorderable items - `Reorder.Item` represents each item - `axis` controls drag direction - `values` and `onReorder` manage state - Automatic layout animations - Works with AnimatePresenc

references/layout-use-presence.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/layout-use-presence.md Description: --- name: layout-use-presence description: usePresence and useIsPresent for AnimatePresence children --- # usePresence & useIsPresent When a component is a child of `AnimatePresence`, use `usePresence` or `useIsPresent` to access presence state.

references/utils-cycle.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/utils-cycle.md Description: --- name: utils-cycle description: useCycle to cycle through a list of states --- # useCycle `useCycle` returns the current item from a list and a function to advance to the next (or jump to an index).

references/utils-motion-value-event.mdHIGH
78.3%

Malicious tool definition detected

Sync MotionValue to React state or external systems: ```jsx const scrollProgress = useScroll().scrollYProgress const [label, setLabel] = useState("") useMotionValueEvent(scrollProgress, "change", (latest) => { setLabel(latest > 0.5 ?

references/utils-path-geometry.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/utils-path-geometry.md Description: --- name: utils-path-geometry description: calcLength, createBox, distance for projection and geometry --- # calcLength, createBox & distance Geometry utilities for layout projection and distance calculations.

references/values-motion-value.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/values-motion-value.md Description: --- name: values-motion-value description: Create and use motion values for reactive animations --- # useMotionValue `useMotionValue` creates a `MotionValue` that tracks the state and velocity of a value.

references/values-spring.mdHIGH
78.3%

Malicious tool definition detected

```jsx function MouseFollower() { const mouseX = useMotionValue(0) const mouseY = useMotionValue(0) const springX = useSpring(mouseX) const springY = useSpring(mouseY) return ( <motion.div style={{ x: springX, y: springY }} onMouseMove={(e) => { mouseX.set(e.clientX) mouseY.set(e.clientY) }} /> ) } ``` ### Smooth Value Transitions ```jsx function Component() { const target = useMotionValue(0) const smooth = useSpring(target, { stiffness: 200, damping: 20 }) const toggle = () => { target.set(targ

references/values-transform.mdHIGH
78.3%

Malicious tool definition detected

x, [0, 100], [0, 1], { clamp: true } ) ``` ## Common Patterns ### Scroll-Linked Opacity ```jsx function Component() { const { scrollYProgress } = useScroll() const opacity = useTransform(scrollYProgress, [0, 0.5], [1, 0]) return <motion.div style={{ opacity }} /> } ``` ### Color Interpolation ```jsx const color = useTransform( progress, [0, 1], ["#000", "#fff"] ) ``` ### Rotation from Position ```jsx const rotate = useTransform( x, [0, window.innerWidth], [0, 360] ) ``` ## Key Points - Transform

references/values-velocity.mdHIGH
78.3%

Malicious tool definition detected

Tool: references/values-velocity.md Description: --- name: values-velocity description: Access velocity of motion values --- # useVelocity `useVelocity` creates a MotionValue that tracks the velocity of another MotionValue.

GENERATION.mdMEDIUM
52.2%

Tool passed security scan

Passed Files (30)Click to expand
SKILL.mdOK
24.2%

Tool passed security scan

references/advanced-motion-config.mdOK
14.8%

Tool passed security scan

references/values-will-change.mdOK
14.6%

Tool passed security scan

references/values-motion-template.mdOK
14.5%

Tool passed security scan

references/utils-interpolate.mdOK
11.8%

Tool passed security scan

references/utils-reduced-motion.mdOK
11.4%

Tool passed security scan

references/layout-reset-projection.mdOK
11.0%

Tool passed security scan

references/advanced-scale-corrector.mdOK
10.5%

Tool passed security scan

references/core-stagger.mdOK
10.0%

Tool passed security scan

references/utils-animation-frame.mdOK
9.7%

Tool passed security scan

references/features-svg-path.mdOK
9.0%

Tool passed security scan

references/utils-delay.mdOK
8.8%

Tool passed security scan

references/values-time.mdOK
8.6%

Tool passed security scan

references/values-follow.mdOK
8.3%

Tool passed security scan

references/utils-instant-transition.mdOK
8.2%

Tool passed security scan

references/advanced-transform-template.mdOK
6.6%

Tool passed security scan

references/core-transitions.mdOK
6.3%

Tool passed security scan

references/advanced-lazy-motion.mdOK
5.9%

Tool passed security scan

references/advanced-scroll-animations.mdOK
4.7%

Tool passed security scan

references/values-scroll.mdOK
4.2%

Tool passed security scan

references/layout-presence-data.mdOK
2.9%

Tool passed security scan

references/utils-dom-event.mdOK
2.9%

Tool passed security scan

references/gestures-pan.mdOK
2.4%

Tool passed security scan

references/core-vanilla-scroll.mdOK
2.2%

Tool passed security scan

references/features-resize.mdOK
2.0%

Tool passed security scan

references/core-components.mdOK
2.0%

Tool passed security scan

references/features-in-view.mdOK
1.9%

Tool passed security scan

references/advanced-animation-controls.mdOK
1.9%

Tool passed security scan

references/gestures-drag.mdOK
1.4%

Tool passed security scan

references/gestures-tap-press.mdOK
1.1%

Tool passed security scan

Audit Metadata
Max File Score
78%
Classification
UNKNOWN_SERVER
Files Scanned
55
Files Flagged
25
Chunks Analyzed
55
Analyzed
Feb 21, 2026, 11:12 AM
Security Audit — runlayer — motion