/rocketride-design:motion-primitivesfrom rocketride-design
Add polished, pre-built animations to React/Next.js apps using the motion-primitives component library (motion-primitives.com) — animated text reveals, number tickers, morphing dialogs, marquees, scroll reveals, hover effects. Use this whenever a task involves animating UI, making a landing page or hero section feel alive, animating numbers/KPIs on a dashboard, adding entrance/reveal animations, marquee/logo sliders, animated dialogs or popovers, shimmer/loading text states, or when someone says an interface feels "static", "flat", or "needs polish". Also use it to decide when NOT to animate. Always consult references/component-api.md for exact prop names before writing any motion-primitives code — the APIs here are extracted from source and several differ from what you'd guess.
Ships in rocketride-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Motion-primitives is a copy-in-source animation component library (same
philosophy as shadcn/ui) built on Motion for React (motion, the successor
to framer-motion) and Tailwind. 33 components across six categories: core
containers, text effects, number effects, interactive elements, toolbars, and
advanced effects. MIT licensed, by @ibelick.
Why it's good: it occupies the layer shadcn deliberately doesn't — the
expressive/delight layer. shadcn gives you accessible structure; motion-primitives
gives you the animated moments (a headline that reveals, a KPI that rolls, a
thumbnail that morphs into a fullscreen preview). Because components are copied
into your repo, they're editable and there's no runtime dependency beyond
motion itself — no version treadmill, no lock-in.
Prerequisites: Tailwind, then:
npm install motion lucide-react
# lib/utils.ts must exist with the cn() helper (clsx + tailwind-merge)
lucide-react is a dependency of the copied demo components, not an icon
decision — if the project uses another set (see iconography), swap the
imports in the copied file.
Add components one at a time — either CLI works, both copy source into
components/motion-primitives/ (path configurable):
npx motion-primitives@latest add text-effect
# or via shadcn CLI:
npx shadcn@latest add "https://motion-primitives.com/c/text-effect.json"
If CLI/network is unavailable, copy the component file directly from
github.com/ibelick/motion-primitives → components/core/<name>.tsx. Imports
use motion/react (not framer-motion).
Per-component dependencies (verified by compile): the CLI resolves these
automatically, but manual copies must add them: infinite-slider and
sliding-number need react-use-measure; morphing-dialog needs
lucide-react and the repo's hooks/useClickOutside.tsx (copy it to
hooks/). If a copied component fails to resolve an import, check the repo's
hooks/ directory before assuming it's an npm package.
references/component-api.md for that component's exact props —
never write props from memory. Several props are non-obvious (e.g. Tilt's
reverse prop is spelled isRevese in the shipped source; most text
components accept children: string only, not ReactNode).references/recipes.md if the task matches a recipe (hero reveal,
KPI ticker, asset-morph preview, marquee, streaming-text shimmer).| Surface | Verdict | Reach for |
|---|---|---|
| Landing pages, hero sections, App Store listings | Yes — primary habitat | TextEffect, AnimatedGroup, InView, InfiniteSlider, Spotlight |
| Dashboard KPI tiles, stat counters | Yes | AnimatedNumber, SlidingNumber, TextShimmer for loading |
| Empty states, onboarding steps, first-run | Yes | TextEffect, TransitionPanel, AnimatedGroup |
| Asset/media preview (grid → fullscreen) | Yes | MorphingDialog, MorphingPopover, ImageComparison |
| AI streaming / "thinking" states | Yes | TextShimmer, TextShimmerWave, TextLoop |
| Marketing social proof, logo walls | Yes | InfiniteSlider, InView |
| Dense admin tables, review queues | Mostly no — motion taxes throughput. At most: a subtle exit animation on approve/reject. | |
| Forms, settings pages | No — nothing to earn. | |
| High-frequency live data (updates >1/sec) | No — springs never settle; numbers become unreadable. Snap values instead. | |
Anywhere prefers-reduced-motion users land | Respect it: gate decorative motion behind the media query. Number/text content changes may remain. |
The test: motion should either explain a state change (this thing appeared / moved / completed) or reward a moment that matters (first load, launch, success). Motion that does neither is noise.
| You need | Component |
|---|---|
| Headline/paragraph reveal on load or scroll | text-effect (presets: blur, scale, fade, slide; per word/char/line) |
| Rotating word in a headline ("build apps/agents/pipelines") | text-loop |
| Loading/streaming text shimmer | text-shimmer or text-shimmer-wave |
| Hacker-style character scramble | text-scramble |
| Smooth text swap when a label changes | text-morph |
| Per-letter rolling flip | text-roll |
| Animated stat/KPI value | animated-number (spring) or sliding-number (odometer digits) |
| Stagger-in a group of cards/items | animated-group |
| Animate when scrolled into view | in-view |
| Logo/testimonial marquee | infinite-slider |
| Segmented control / tab hover highlight that follows the pointer | animated-background |
| Multi-step panel transitions (wizards, onboarding) | transition-panel |
| Thumbnail that morphs into a fullscreen dialog | morphing-dialog |
| Button that morphs into a form/popover | morphing-popover |
| Standard animated modal | dialog |
| Expand/collapse single section | disclosure; multiple sections: accordion |
| Swipeable/draggable carousel | carousel |
| Before/after image slider | image-comparison |
| macOS-style magnifying dock | dock |
| Animated glow behind an element | glow-effect; running light around a border: border-trail |
| Mouse-following spotlight on cards | spotlight |
| 3D tilt on hover | tilt |
| Element attracted to cursor | magnetic |
| Custom cursor | cursor |
| Circular rotating text badge | spinning-text |
| Reading progress bar | scroll-progress |
| Edge fade/blur on scrollable content | progressive-blur |
Note on toolbars: toolbar-dynamic and toolbar-expandable are page-level
demos (default exports, hard-coded content), not composable primitives. Treat
them as reference implementations to adapt, not components to install and use
as-is.
'use client'. Keep the boundary at the leaf: animate the headline
component, not the whole page.motion/react, never framer-motion, in any code you write
alongside these components.children: string. Passing JSX will type-error —
wrap mixed content by composing multiple instances instead.references/component-api.md before writing props. If a prop you want
isn't listed, it doesn't exist — extend the copied source instead of guessing.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub shashidharbabu/rocketride-design-skills --plugin rocketride-design34 skills in this plugin
/arc-uiInstall and integrate Arc (uiarc.dev, "Arc UI") — Elia Kuratli's agent-oriented React library of 112 free MIT components + 22 free blocks (56 components / 72 blocks more behind Arc Pro, $129/yr or $199 lifetime), distributed as copy-in source through a shadcn registry (`@uiarc/<id>` → https://uiarc.dev/r/{name}.json) and styled with CSS Modules + its own oklch CSS-variable token layer (not Tailwind classes), animated with `motion/react` — into Next.js 14–16, React 18–19, Tailwind v3.4 or v4 repos, alone or beside shadcn/ui. Use this whenever a task mentions uiarc, uiarc.dev, Arc UI, an `@uiarc/` or `@uiarc-pro/` install, `components/arc/foundation.css` or `@/components/arc/...` imports; whenever an app wants a calm, neutral, Linear-like product UI base as an alternative to shadcn; or whenever it needs a finished product-UI interaction piece — confirm-in-place / hold-to-confirm / morphing delete button, sliding segmented control, KPI metric cards with rolling numbers, icon morph, expanding button group, swipe row actions, ridgeline / streamgraph / waffle / slope / treemap charts, or settings / pricing / dashboard / sign-in blocks with motion. Also use it before letting Arc's own vendor skill near a repo (don't — see below). Install pre-flight, the token-collision bridge with shadcn, and every verified fix live in references/integration.md./audiocnInstall and integrate audiocn (audiocn.dev) — a free, MIT-licensed shadcn registry of ~50 audio UI items for React by OrcDev (github.com/audiocn/ui): audio player, file waveform with seek/regions/markers, level meters, bar/spectrum/electric visualizers, live waveform, faders, knobs, pan, mute/solo toggles, channel strips, a full Web Audio mixer, sound pads, mic/device pickers, plus the Web Audio hooks that drive them (shared AudioContext, analyser, gain, microphone, system-audio capture, waveform peaks) — copied in via `npx shadcn@latest add @audiocn/<name>`, built on Base UI and canvas/rAF with no motion/framer-motion dependency. HARD GATE: Tailwind v4 + React 19.2+ only — on Tailwind 3.4 it builds green and renders broken (meters vanish, bars collapse), and on React 18 the hooks fail (`useEffectEvent`). TRAP: `npm i audiocn` installs an unrelated placeholder package — audiocn arrives only through the shadcn registry. Use this whenever a task involves audiocn.dev or an @audiocn/ install, an audio or podcast/episode player, a waveform seek bar or waveform regions/markers, a VU/level/dB meter, an audio visualizer or spectrum, voice-activity bars, a mic check or input-device picker, a mixer/fader/knob/channel strip, a soundboard or sound pads, replacing wavesurfer.js, or deciding whether an audio product repo can take these components at all. Inventory, deps, token remap, the v3 port list, crossOrigin, single-player coordination, and the waveform lint fix live in references/integration.md.Other plugins' skills for the same job