Svelte Bits: Official React Bits Port for Svelte Projects

Explore 120+ React Bits animations rebuilt for Svelte projects, from animated text and cursor effects to interactive UI and WebGL backgrounds.

Svelte Bits is a Svelte 5 component library that ports React Bits text animations, interaction effects, UI components, and animated backgrounds to Svelte projects.

Each item installs as editable .svelte source through a direct shadcn registry URL, jsrepo, or manual copy-paste.

Features

  • Official Svelte port of React Bits.
  • 129 items across text animations, animations, UI components, and backgrounds.
  • Original animation dependencies, shaders, physics, spring settings, props, and behavior.
  • Standalone .svelte files with component-specific dependencies.

What’s Included

CategoryComponents
AnimationsAnimated Content, Fade Content, Electric Border, Orbit Images, Pixel Transition, Glare Hover, Antigravity, Logo Loop, Target Cursor, Magic Rings, Laser Flow, Magnet Lines, Ghost Cursor, Gradual Blur, Click Spark, Cursor Grid, Magnet, Sticker Peel, Pixel Trail, Cubes, Metallic Paint, Noise, Shape Blur, Crosshair, Image Trail, Ribbons, Splash Cursor, Meta Balls, Blob Cursor, Star Border
UI ComponentsAnimated List, Scroll Stack, Bubble Menu, Magic Bento, Circular Gallery, Reflective Card, Card Nav, Stack, Pill Nav, Tilted Card, Masonry, Glass Surface, Dome Gallery, Chroma Grid, Folder, Staggered Menu, Model Viewer, Profile Card, Dock, Gooey Nav, Pixel Card, Carousel, Spotlight Card, Border Glow, Flying Posters, Card Swap, Glass Icons, Decay Card, Flowing Menu, Elastic Slider, Counter, Infinite Menu, Stepper, Bounce Cards
BackgroundsLiquid Ether, Prism, Dark Veil, Light Pillar, Silk, Floating Lines, Light Rays, Pixel Blast, Color Bends, Evil Eye, Line Waves, Radar, Soft Aurora, 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, Grid Distortion, Ballpit, Orb, Letter Glitch, Grid Motion, Shape Grid, Liquid Chrome, Balatro

How To Use Svelte Bits

Install a Component with shadcn

Install Animated List with its direct registry URL:

pnpm dlx shadcn@latest add https://sveltebits.xyz/r/animated-list.json

Install Components with jsrepo

Initialize the Svelte Bits registry once, then add individual items:

pnpm dlx jsrepo init https://sveltebits.xyz/r
pnpm dlx jsrepo add aurora

Manual Installation

Copy the required .svelte source into your project and install the dependencies for that component.

Basic Usage: Animated List

The shadcn registry writes Animated List to $lib/components/svelte-bits/AnimatedList.svelte. Import it from that location:

<script lang="ts">
  import AnimatedList from '$lib/components/svelte-bits/AnimatedList.svelte';
  const releases = [
    'Version 3.2',
    'Version 3.1',
    'Version 3.0',
    'Version 2.9',
    'Version 2.8'
  ];
  function handleReleaseSelect(release: string, index: number) {
    console.log(`Selected ${release} at index ${index}`);
  }
</script>
<AnimatedList
  items={releases}
  onItemSelect={handleReleaseSelect}
  showGradients={true}
  enableArrowNavigation={true}
  displayScrollbar={true}
/>

Animated List Props

PropTypeDefaultDescription
itemsstring[]Item 1 through Item 15Values rendered in the scrollable list.
onItemSelect(item: string, index: number) => voidundefinedRuns when an item is clicked or selected with Enter.
showGradientsbooleantrueShows the top and bottom gradient overlays.
enableArrowNavigationbooleantrueActivates keyboard navigation.
classstring""Extra classes for the root container.
itemClassstring""Extra classes for each list item.
displayScrollbarbooleantrueShows or hides the custom scrollbar.
initialSelectedIndexnumber-1Sets the initial selected item index.

Alternatives and Related Resources

DavidHDev

DavidHDev

Web developer and designer

Leave a Reply

Your email address will not be published. Required fields are marked *