mirukullacode

Tweenly Hero Background

Component 12

About

Interactive canvas backgrounds for hero sections: dot grids, warping grids, constellations, waves, flow fields and pixel mosaics that react to the cursor.

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

Code

How Tweenly Hero Background is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import {ThemeProvider as LibraryDemoThemeProvider} from "next-themes";
import { HeroBackground } from "@/components/ui/tweenly-hero-background"

export function Demo() {
  return (
    <HeroBackground
      mask="radial"
      className="min-h-[480px]"
    >
      <div className="relative z-10 grid min-h-[480px] place-items-center text-center">
        <h1 className="text-5xl font-semibold tracking-tight">Build something beautiful</h1>
      </div>
    </HeroBackground>
  )
}

function SourceSpecimen(){return <Demo/>}
export default function LibraryRegistryPreview(){return <LibraryDemoThemeProvider defaultTheme="dark" enableSystem={false}><div data-component-demo data-demo-theme="dark" data-theme="dark" className="dark" style={{background:"var(--background)",color:"var(--foreground)"}}><div className="relative w-full min-w-0 max-w-5xl min-h-[400px] flex items-center justify-center"><SourceSpecimen/></div></div></LibraryDemoThemeProvider>}

Dependencies

More by mirukullacode

View all
  • Chart Line

    Chart Line

    32
  • Tweenly AI Recorder

    Tweenly AI Recorder

    29
  • Animated Bar Chart

    Animated Bar Chart

    28
  • Tweenly Chart KPI

    Tweenly Chart KPI

    18
  • Tweenly Chart Radial

    Tweenly Chart Radial

    16
  • Tweenly Image Arc

    Tweenly Image Arc

    15
  • Tweenly Curved Carousel

    Tweenly Curved Carousel

    12
  • Tweenly Elastic Switch

    Tweenly Elastic Switch

    6