ham7a311

Star Trails

Backgrounds

About

An animated canvas background that simulates a long-exposure night sky photo, with stars smearing into concentric arcs around a pole that follows the pointer.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Star Trails to your project and fits it to your theme.

Code

How Star Trails is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import StarTrails from "@/components/ui/star-trails";

export default function StarTrailsVioletDemo() {
  return (
    <div className="relative h-screen w-full">
      <StarTrails hue={285} />
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    251
  • Route Globe

    Route Globe

    195
  • Glass Tiles

    Glass Tiles

    183
  • Orbit Ring Stats

    Orbit Ring Stats

    82
  • Glyph Swell

    Glyph Swell

    76
  • Fan Deck Card

    Fan Deck Card

    75
  • Ask Bar

    Ask Bar

    63
  • Glass Ribbons

    Glass Ribbons

    53

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    975
  • Dark Gradient Background

    Dark Gradient Background

    169
  • Background snippets

    Background snippets

    25
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    643
  • Background Components

    Background Components

    254
  • Honey Ember Background

    Honey Ember Background

    104
  • Gradient Backgrounds

    Gradient Backgrounds

    28
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    263