Components
An interactive background component with animated objects that respond to hover interactions and customizable colors.
npx shadcn@latest add https://21st.dev/r/sean0205/hover-velocity-heroLoading preview...
import { HoverBackground } from '@/components/ui/hover-velocity-hero';
export default function HoverBackgroundDefault() {
return (
<div className="max-w-[800px] mx-10 w-full h-96 rounded-lg overflow-hidden">
<HoverBackground>
<div className="flex items-center justify-center h-full">
<div className="text-center space-y-4">
<h2 className="text-4xl font-bold text-white/90">Hover Me!</h2>
<p className="text-lg text-white/70 max-w-md">
Watch the animated objects come to life when you hover over this area.
</p>
</div>
</div>
</HoverBackground>
</div>
);
}