Capítulo 3 de 11

Chapter 3: Hero & Scroll Sections

Core Idea

Above-the-fold hero layouts and scroll-driven reveal effects — the components that set the first impression of a marketing page and react to scroll position.

Reference Table

NamePurposeInstall
Hero HighlightBackground effect with a text-highlight accent, built for hero copynpx shadcn@latest add @aceternity/hero-highlight
Hero SectionsA set of ready hero layouts, simple to complexnpx shadcn@latest add @aceternity/hero-sections-free
Hero ParallaxScroll-driven rotation/translation/opacity effectnpx shadcn@latest add @aceternity/hero-parallax
Parallax Hero ImagesMouse-driven parallax with depth-blurred image layersnpx shadcn@latest add @aceternity/parallax-hero-images
Sticky Scroll RevealSticky container with text that reveals as the user scrollsnpx shadcn@latest add @aceternity/sticky-scroll-reveal
Container Scroll Animation3D-rotate-on-scroll container, built for hero/marketing sectionsnpx shadcn@latest add @aceternity/container-scroll-animation
Fey.com Macbook ScrollImage "pops out" of a MacBook screen mockup on scroll (as seen on Fey.com)npx shadcn@latest add @aceternity/macbook-scroll
Lamp Section HeaderLamp-glow effect for section headers (as seen on Linear)npx shadcn@latest add @aceternity/lamp-effect
SpotlightTailwind CSS spotlight effect to draw attention to an elementnpx shadcn@latest add @aceternity/spotlight
Spotlight NewConfigurable dual-side (left/right) spotlight variantnpx shadcn@latest add @aceternity/spotlight-new
Tracing BeamSVG beam that follows scroll position/speed down a pagenpx shadcn@latest add @aceternity/tracing-beam
Sticky BannerTop banner that sticks and hides on scroll-downnpx shadcn@latest add @aceternity/sticky-banner

Key Takeaways

  1. Scroll-linked components (Hero Parallax, Sticky Scroll Reveal, Container Scroll Animation, Tracing Beam) generally read scroll progress via Motion's useScroll — check each one's anatomy before combining two on the same page, since competing scroll listeners can hurt performance.
  2. Spotlight vs Spotlight New: prefer Spotlight New for a configurable two-sided spotlight; plain Spotlight is the simpler single-effect original.
  3. Fey.com Macbook Scroll is a specific, recognizable device-mockup effect — use deliberately when a product screenshot reveal is the goal, not as a generic hero background.

Connects To

  • ch002 (Backgrounds & Ambient Effects): the backdrop layer these hero sections often sit on top of.
  • ch008 (Carousels & Testimonials): Feature Sections, a sibling free-form marketing-section bundle.