Measured entry

ruixen-scroll-over-hero

herounclassifiedmotion on file

A client-side React hero that pins a centered title while a framed media panel rises over it during scroll. It ships as a shadcn registry component, uses Motion for transforms and reduced-motion detection, and expects Tailwind theme classes plus the usual cn utility alias.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of ruixen-scroll-over-hero at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-scroll-over-hero at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of ruixen-scroll-over-hero at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for ruixen-scroll-over-hero
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor1
Gzip marginal68.3 KB (133.7 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 25.80s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/scroll-over-hero.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A credible fit for product-led landing pages, with responsive behavior and a considerate reduced-motion path. It needs a shadcn-style setup to build because the bare project cannot resolve its cn utility import. Fix the contrast and heading semantics before shipping.

Use it if

  • You want a product screenshot or video to take over the opening message as visitors scroll.
  • Your React site already uses shadcn conventions, Tailwind theme tokens, and Motion.
  • You need a reduced-motion fallback that presents the title and media in a conventional stack.

Skip it if

  • Your hero must remain compact and avoid a long pinned scrolling sequence.
  • You cannot review and fix the supplied text contrast and empty-heading accessibility issues.
  • Your project does not use Tailwind or shadcn-style aliases and you do not want to adapt the styling and imports.
  • You want a lightweight static hero without an animation dependency.

Install

Installation record for ruixen-scroll-over-hero
Declared dependenciesmotion
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add Motion, configure Tailwind with background, foreground, muted, card, and border theme tokens, provide a cn class-merging utility at the expected alias, and preserve the client-component boundary. Replace the alias import if your project uses another module layout.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the hero pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.