RemotionUI
Vectors

Cursor Path

Animated cursor movement along points.

Primitivevectors

Install
npx remotion-ui@latest add cursor-path

Pointer motion primitive for product demos and tutorials.

Live preview

AI usage

Install first, then import the copied source component locally.

AI guide

Install

npx remotion-ui@latest add cursor-path

Import after install

@/remotion/primitives/cursor-path
  • Use when: frame-level motion primitives and reusable animation wrappers.
  • Customize: points, durationInFrames, size, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

import { CursorPath } from "@/remotion/primitives/cursor-path";

<CursorPath points={[{ x: 80, y: 120 }, { x: 320, y: 80 }]} />

API Reference

PropTypeDescription
points*{ x: number; y: number }[]Cursor route points.
durationInFramesnumberTravel duration.
sizenumberCursor size.

Related