Patrick Dunn

parallax-star

Backgrounds

About

Move your mouse to see the parallax effect Three layers of stars moving at different speeds

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

Code

How parallax-star is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { StarsBackground } from '../components/ui/parallax-star';

export const StarsBackgroundDemo = () => {
  return (
    <div className="w-full h-screen">
      <StarsBackground className="absolute inset-0 flex items-center justify-center">
        <div className="z-10 text-white text-center px-4">
          <h1 className="text-4xl font-bold mb-4">✨ Stars Background Demo</h1>
          <p className="text-lg opacity-80 mb-2">Move your mouse to see the parallax effect</p>
          <p className="text-sm opacity-60">Three layers of stars moving at different speeds</p>
        </div>
      </StarsBackground>
    </div>
  );
};

export default StarsBackgroundDemo;

Dependencies

More by Patrick Dunn

View all
  • Wilderness

    Wilderness

    994
  • sneak

    sneak

    480
  • Robot Flyby

    Robot Flyby

    254
  • Desert Drift

    Desert Drift

    178
  • Tidal Cursor

    Tidal Cursor

    150
  • Bloodline

    Bloodline

    120
  • Ribbed

    Ribbed

    11
  • Cool ribs

    Cool ribs

    9

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    944
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    259
  • Honey Ember Background

    Honey Ember Background

    100
  • Gradient Backgrounds

    Gradient Backgrounds

    33
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    623
  • Gradient Blur Bg

    Gradient Blur Bg

    23
  • Background snippets

    Background snippets

    117
  • Dark Gradient Background

    Dark Gradient Background

    164