Motion Primitives
A curated library of animated, customizable React components and layout primitives built with Framer Motion and Tailwind CSS by ibelick.

Overview
Motion Primitives (motion-primitives.com) by ibelick is an open-source React animation library with over 6,100+ GitHub Stars. Built upon Framer Motion and Tailwind CSS, it bridges the gap between raw motion math and production-ready interface primitives—including cursor follow effects, accordion physics, floating dock docks, and morphing dialogues.
Key Features
- Micro-Interaction Primitives: Pre-built motion building blocks for expandable cards, animated tooltips, spotlight borders, and magnetic buttons.
- Framer Motion Native: Leverages modern layout animations (
layoutId), gesture tracking, and presence exits out-of-the-box. - Copy & Paste Simplicity: Direct source-code copy-paste model designed to pair seamlessly with shadcn/ui design tokens.
- Accessible & Responsive: Keyboard navigable, respects
prefers-reduced-motion, and fully typed with TypeScript.
Installation & Quick Start
# Install animation and helper dependencies
npm install framer-motion clsx tailwind-mergeimport React from 'react';
import { Spotlight } from '@/components/core/spotlight';
export function SpotlightSurface() {
return (
<div className="relative overflow-hidden rounded-2xl bg-card border border-border p-8 shadow-xs">
<Spotlight className="-top-40 left-0 md:left-60 md:-top-20" fill="white" />
<h3 className="text-lg font-bold text-foreground">Dynamic Spotlight Surface</h3>
<p className="text-xs text-muted-foreground mt-2">Illuminates on pointer trajectory.</p>
</div>
);
}Why Choose Motion Primitives?
- Design-Led Motion: Infuses products with subtle Apple / Linear-grade interaction polish.
- Zero Maintenance Overhead: Direct code ownership without upstream package breaking change risks.
Comments & Discussion
No comments yet. Be the first to share your experience or thoughts!
Related libraries
Curated by category & stack23rd
An open-source shadcn/ui registry of opinionated, tasteful components by radiumcoders — WebGL shaders, playful 404s, and interactive showpieces you copy, paste, and own.
Great UI
A curated collection of beautiful, copy-paste React components built with TypeScript, Tailwind CSS v4, and Motion for crafting premium interfaces instantly.
Rewamp UI
A copy-paste React component library featuring highly interactive, physics-driven Framer Motion and Three.js WebGL components built with Tailwind CSS 4.