1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month๐Ÿšจ Slop police๐Ÿšจ Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. sunui
  3. Depth Hero

Depth Hero

block

A layered hero where a giant headline sits behind the product: a background layer, the headline, a front subject (a transparent image or any node) and readable content on top. Moving a mouse over the section shifts each layer by a different depth through spring-smoothed motion values, and the optional scroll prop also moves the layers at different speeds as the section scrolls past. The content layer never moves. Pointer depth only runs on fine pointers; with reduced motion or depth 0 every layer stays still.

pnpm dlx shadcn@latest add "https://sunui.synvize.com/r/depth-hero.json"
Premium blocks for shadcn/uiShadcnblocks.com ยท AffiliateExplore
  • framer-motion
  • utils
components/depth-hero.tsx