nexus-ui

Interactive Dot Grid Hero

Heroes 55

About

Cinematic hero section with a Canvas-rendered dot grid that reacts to cursor proximity, with particles that scale, brighten, and spring back to rest.

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

Code

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

Usage.tsx

import { DotGridHero } from "@/components/ui/dot-grid-hero";

const settings = {
  interactionRadius: 120,
  repulsionStrength: 7,
  springK: 0.065,
  damping: 0.8,
  dotGap: 72,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      <DotGridHero
        interactionRadius={s.interactionRadius}
        repulsionStrength={s.repulsionStrength}
        springK={s.springK}
        damping={s.damping}
        dotGap={s.dotGap}
      />
    </div>
  );
}

Dependencies

More by nexus-ui

View all
  • Circular Carousel

    Circular Carousel

    1.2K
  • Images Badge

    Images Badge

    965
  • Chat Messages

    Chat Messages

    302
  • Shooting Stars Grid

    Shooting Stars Grid

    156
  • Infinite Moving Cards

    Infinite Moving Cards

    148
  • Cinematic Logo Cloud

    Cinematic Logo Cloud

    145
  • Logo Clouds

    Logo Clouds

    103
  • Interactive Starfield Hero

    Interactive Starfield Hero

    86

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero

    Hero

    1.2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    932
  • Editorial Collage Hero

    Editorial Collage Hero

    431
  • Glass Fold

    Glass Fold

    213
  • HeroSectionWithGradient

    HeroSectionWithGradient

    336
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    285