React Bits: 215+ Animated React Components & Backgrounds

Description:

React Bits is a React UI component library that adds animated text, interactive navigation, galleries, micro-interactions, and backgrounds to React applications.

It currently has 215+ components that you can install individually and edit inside your project.

Features

  • JavaScript and TypeScript components with plain CSS or Tailwind CSS styles.
  • Adjustable component props and editable source code.
  • Individual installations with shadcn or jsrepo, including component-specific dependencies.
  • Scroll, hover, click, and pointer-driven animations across multiple UI categories.
  • Optional shadcn MCP integration for coding agents such as Claude Code and Codex.

Use Cases

  • Product landing pages with animated hero text and scroll-triggered sections.
  • Portfolios with draggable photo galleries, 3D cards, and animated navigation.
  • Dashboards with button feedback, toggle animations, and status indicators.
  • Promotional pages with particle effects, gradients, and shader backgrounds.

Available React Bits Components

UI Components

ComponentDescription
Holo CardTilting collectible card with holographic highlights.
Circular CarouselDraggable 3D ring of image cards.
Flex CarouselContinuous image carousel with glass-like edges.
Infinite SpiralLooping 3D spiral of images.
Depth CarouselPerspective card carousel with drag and keyboard controls.
Morph SliderImage slider with liquid-style transitions.
Drift WallMoving perspective wall of image tiles.
Accordion GalleryExpanding image panels with captions.
Specular ButtonGlass-effect button with pointer-responsive highlights.
Option WheelCurved selection wheel with drag and keyboard controls.
Curved InputText input arranged along an arc.
Line SidebarSidebar navigation with pointer-proximity highlights.
Animated ListSelectable list with animated rows and arrow-key navigation.
Scroll StackCards that pin and stack on scroll.
Bubble MenuCircular expandable navigation menu.
Magic BentoBento grid with hover lighting and animated cards.
Circular GalleryCurved draggable gallery with full-size image previews.
Reflective CardMetallic card with animated reflections.
Card NavExpandable card-based navigation bar.
StackDraggable and flickable stack of cards.
Fluid GlassRefractive 3D glass effect for text or media.
Pill NavPill-shaped navigation with animated active state.
Tilted CardTilting 3D card with glare and layered content.
MasonryAnimated masonry gallery with image lightbox.
Glass SurfaceRounded translucent glass-style panel.
Dome GalleryImmersive hemispherical 3D image gallery.
Chroma GridImage grid with a cursor-controlled color spotlight.
FolderAnimated folder with interactive pages.
Staggered MenuNavigation panel with staggered entrance transitions.
Model ViewerFloating 3D model viewer.
LanyardDraggable 3D badge attached to an animated strap.
Profile CardTilting profile card with holographic effects.
DockmacOS-style app dock with magnification.
Gooey NavNavigation bar with a fluid active-item indicator.
Pixel CardCard with animated pixel highlights on hover.
CarouselSwipeable cards with multiple transition styles.
Spotlight CardCard with a cursor-following spotlight.
Border GlowCard or panel with an interactive glowing border.
Flying PostersScrolling 3D poster gallery.
Card SwapStack of cards that swaps the active item.
Glass IconsLiquid-glass icon links.
Decay CardImage card with a pointer-driven decay effect.
Flowing MenuFull-height navigation with animated media and marquee.
Elastic SliderStretchable range slider with spring motion.
CounterRolling digit counter with numeric formatting.
Infinite MenuDraggable spherical menu of image tiles.
StepperAnimated horizontal or vertical multi-step UI.
Bounce CardsPhoto cards that bounce and spread on hover.

Text Animations

  • Tech Text, Text Loop, Masked Heading, Particle Text, Split Flap Text, Warp Text, Stroke Text.
  • Depth Text, Fold Text, Echo Text, Split Text, Blur Text, Circular Text, Text Type.
  • Shuffle, Shiny Text, Text Pressure, Curved Loop, Fuzzy Text, Gradient Text, Falling Text.
  • Text Cursor, Decrypted Text, True Focus, Scroll Float, Scroll Reveal, ASCII Text, Scrambled Text.
  • Rotating Text, Glitch Text, Scroll Velocity, Variable Proximity, Count Up.

Animations

  • Crystalized Ball, Electric Logo, Dither Veil, Glow Cursor, Scroll Expand, Ripple Distortion, Elastic Mesh.
  • Swarm Cursor, Halftone Reveal, Pixel Swap, Cursor Grid, Animated Content, Fade Content, Electric Border.
  • Orbit Images, Pixel Transition, Glare Hover, Logo Loop, Target Cursor, Laser Flow, Ghost Cursor.
  • Gradual Blur, Click Spark, Magnet, Strands, Sticker Peel, Pixel Trail, Cubes.
  • Metallic Paint, Noise, Shape Blur, Crosshair, Image Trail, Ribbons, Splash Cursor.
  • Meta Balls, Blob Cursor, Star Border.

Micro Interactions

  • Shredder, Paper Crumple, Tear Ticket, Flip Card, Branched Menu, Folder Float, Refine Frame.
  • Thought Line, Voice Pill, Slosh Gauge, Prompt Bar, Swipe Toast, Sling Button, Bell Toggle.
  • Call Chip, Status Mark, Glide Select, Swipe Row, Jelly Radio, Comet Dial, Wake Slider.
  • Code Slots, Dodge Field, Lattice Loader, Scrub Field, Fuse Button, Warm Tooltip, Slide Commit.
  • Rubber Segment, Pulse Heart, Spring Check, Peek Rating, Hold Button, Squish Switch.

Backgrounds

  • Gradient ASCII, Flux Lines, Pattern Waves, Micro Slats, Shape Waves, Aero Shards, Ghost Fibers.
  • CRT Warp, Molten Metal, Gradient Waves, Web Threads, Topography, Light Tunnel, Sliced Waves.
  • Acid Squares, Scanner, Ferrofluid, Lightfall, Liquid Ether, Prism, Dark Veil.
  • Light Pillar, Antigravity, Silk, Floating Lines, Side Rays, Light Rays, Pixel Blast.
  • Color Bends, Line Waves, Radar, Soft Aurora, Magic Rings, Aurora, Plasma.
  • Plasma Wave, Particles, Gradient Blinds, Grainient, Grid Scan, Beams, Pixel Snow.
  • Lightning, Prismatic Burst, Galaxy, Dither, Faulty Terminal, Ripple Grid, Dot Field.
  • Dot Grid, Threads, Hyperspeed, Iridescence, Waves, Magnet Lines, Grid Distortion.
  • Ballpit, Orb, Letter Glitch, Grid Motion, Shape Grid, Liquid Chrome, Balatro.

How to Use React Bits

Install with shadcn

Initialize shadcn in your React project:

npx shadcn@latest init

Choose a language and styling variant: JS-CSS, JS-TW, TS-CSS, or TS-TW. To install the TypeScript and Tailwind version of Split Text:

npx shadcn@latest add @react-bits/SplitText-TS-TW

Install with jsrepo

npx jsrepo@latest add https://reactbits.dev/r/SplitText-TS-TW

Manual Installation

  1. Open Split Text or another component and choose the JavaScript/TypeScript and CSS/Tailwind variant.
  2. Copy the component source into a local .jsx or .tsx file. Copy the companion stylesheet for CSS variants.
  3. Install the dependencies listed on that component’s Code tab.

Split Text imports GSAP and its React integration:

npm install gsap @gsap/react

Basic Usage: Animated Hero Heading

Save the TypeScript and Tailwind version as components/SplitText.tsx, then add this component alongside it:

// components/HeroHeading.tsx
'use client';
import SplitText from './SplitText';
export default function HeroHeading() {
  return (
    <SplitText
      tag="h2"
      text="Analytics for growing teams"
      splitType="words"
      effect="rise"
      trigger="view"
      delay={80}
      duration={0.9}
      className="text-4xl font-semibold"
    />
  );
}

Advanced Example: Scroll-Triggered Content

Add the TypeScript and Tailwind version of Fade Content:

npx shadcn@latest add @react-bits/FadeContent-TS-TW

Save the installed component as components/FadeContent.tsx and create:

// components/FeatureReveal.tsx
'use client';
import FadeContent from './FadeContent';
export default function FeatureReveal() {
  return (
    <FadeContent effect="focus" trigger="scroll" duration={0.8} once>
      <section className="rounded-xl border p-8">
        <h2 className="text-2xl font-semibold">Activity overview</h2>
        <p>Review trends across accounts and events.</p>
      </section>
    </FadeContent>
  );
}

Split Text Props and Customization

Set className for Tailwind styling. For a plain CSS installation, edit the component’s companion stylesheet. The following props control the text reveal:

PropDescription
textText to animate.
tagRendered element: h1–h6, p, or span.
splitTypechars, words, lines, or words, chars.
effectrise, fade, blur, flip, pop, skew, or wave.
triggerview, load, hover, or click.
delayDelay between text pieces, in milliseconds.
durationAnimation length in seconds.
easeGSAP easing name or easing function.
staggerFromstart, center, end, edges, or random.
hoverEffectnone, lift, or wave.
maskApply a clipping mask during the reveal.
loop / loopDelayRepeat the effect and set the delay between runs.
color / accentColorText and accent colors.
classNameAdditional classes for styling.
onLetterAnimationCompleteCallback after the reveal finishes.

Use React Bits with AI Coding Agents

Add the @react-bits registry to the existing registries object in components.json:

{
  "registries": {
    "@react-bits": "https://reactbits.dev/r/{name}.json"
  }
}

For Claude Code, initialize the shadcn MCP server:

npx shadcn@latest mcp init --client claude

For Codex, add this configuration to ~/.codex/config.toml:

[mcp_servers.shadcn]
command = "npx"
args = ["shadcn@latest", "mcp"]

Alternatives and Related Resources

FAQs

Can React Bits be used on commercial websites?
Yes. The MIT + Commons Clause license permits commercial use inside websites and products. Selling, sublicensing, or redistributing the components themselves as individual assets, bundles, or ports is prohibited.

Can React Bits components run in the Next.js App Router?
Yes. Interactive components such as Split Text and Fade Content use browser-side animation. Render them from a client component marked with 'use client', as in the examples above.

Add Comment