Measured entry
uilayouts-scroll-animation-default
scroll-effectspatialmotion on file
A client-side React wrapper that reveals any child as it enters the viewport, with configurable direction, delay, variants, viewport behavior, and semantic element. It ships as a shadcn registry item with a gallery demo, uses Motion for animation, and imports the usual aliased cn utility.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 66.9 KB (132.3 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 30.83s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/scroll-animation.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A practical, flexible reveal primitive that built and mounted cleanly in the prepared harness. The bare check fails because the aliased cn utility is absent, so it needs a shadcn-style setup or a small import rewrite. Worth using when Motion is already part of the app.
Use it if
- You want a reusable reveal wrapper for editorial sections, cards, or gallery items.
- Your app already uses Motion and shadcn-style aliases and utilities.
- You need per-instance control over direction, delay, viewport thresholds, or custom variants.
Skip it if
- You only need a basic fade-in and do not want to add Motion for one effect.
- Your accessibility policy requires an explicit reduced-motion path before animated content ships.
- You need a strongly typed polymorphic primitive; this component accepts broad props and a fixed element list.
Install
| Declared dependencies | motion |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, install Motion, replace the aliased cn import with your own class-name helper or remove it, and configure the path alias if you keep that import. Preserve the client-component boundary in frameworks that distinguish server and client components.
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.
Author repository
github.com/ui-layouts/uilayoutsAlternatives
Other published entries for the scroll-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- reui-scrollspyminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 21.5KB
- Bare
- pass
- Prov
- NO
- kibo-marqueeminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 31.3KB
- Bare
- pass
- Prov
- NO
- motion-primitives-in-viewspatial
- Renders
- YES
- A11y
- 0
- Gzip
- 58.1KB
- Bare
- pass
- Prov
- NO
- tripled-interactive-timeline-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.7KB
- Bare
- pass
- Prov
- NO
- ruixen-container-text-scrollspatial
- Renders
- YES
- A11y
- 0
- Gzip
- 61.5KB
- Bare
- pass
- Prov
- NO
- fancy-parallax-floating3d
- Renders
- YES
- A11y
- 0
- Gzip
- 27.5KB
- Bare
- fail
- Prov
- NO