npx skills add ...
npx skills add freshtechbro/claudedesignskills --skill animated-component-libraries
Pre-built animated React component collections combining Magic UI (150+ TypeScript/Tailwind/Motion components) and React Bits (90+ minimal-dependency animated components). Use this skill when building landing pages, marketing sites, dashboards, or interactive UIs requiring pre-made animated components instead of hand-crafting animations. Triggers on tasks involving animated UI components, Magic UI, React Bits, shadcn/ui integration, Tailwind CSS components, or component library selection. Alternative to manually implementing animations with Framer Motion or GSAP.
npx skills add freshtechbro/claudedesignskills --skill animated-component-libraries
This skill provides expertise in pre-built animated React component libraries, specifically Magic UI and React Bits. These libraries offer production-ready, animated components that significantly accelerate development of modern, interactive web applications.
Magic UI provides 150+ TypeScript components built on Tailwind CSS and Framer Motion, designed for seamless integration with shadcn/ui. Components are copy-paste ready and highly customizable.
React Bits offers 90+ animated React components with minimal dependencies, focusing on visual effects, backgrounds, and micro-interactions. Components emphasize performance and ease of customization.
Both libraries follow modern React patterns, support TypeScript, and integrate with popular design systems.
Magic UI components are built on three foundational technologies:
tailwind.config.jsInstallation Methods:
Component Structure:
React Bits emphasizes lightweight, standalone components with minimal dependencies:
Installation:
Component Categories:
Create dynamic background effects with SVG-based patterns:
Implement scroll-triggered text reveals with BlurText:
Create interactive buttons with shimmer and border beam effects:
Implement macOS-style dock with magnification effects:
Display animated numbers for dashboards and landing pages:
Create infinite scrolling content displays:
Add high-performance animated backgrounds:
Magic UI components are designed to work seamlessly with shadcn/ui:
Utility Function Required (lib/utils.ts):
Both libraries leverage Framer Motion for animations:
Combine animated components with routing:
Leverage strengths of both libraries in a single project:
numSquares for AnimatedGridPattern on mobileProblem: Component breaks due to missing motion or utility functions.
Solution: Always install required dependencies and utilities:
Problem: Magic UI animations don't work after manual installation.
Solution: Add required CSS animations to globals.css:
Problem: Background patterns or effects cover foreground content.
Solution: Use proper z-index layering:
Problem: Page lags when multiple heavy animations run simultaneously.
Solution: Implement progressive enhancement and conditional rendering:
Problem: TypeScript complains about component props.
Solution: Extend proper base types:
Problem: Custom Tailwind classes in Magic UI components don't work.
Solution: Ensure content paths include component directory:
scripts/component_importer.py - Import and customize components from both librariesscripts/props_generator.py - Generate component prop configurationsreferences/magic_ui_components.md - Complete Magic UI component catalog with usage examplesreferences/react_bits_components.md - React Bits component library referencereferences/customization_guide.md - Prop-based customization patterns for both librariesassets/component_showcase/ - Interactive demo of all componentsassets/examples/ - Landing page sections, dashboard widgets, micro-interactions