Measured entry
ruixen-glass-image-compare
feature-gridliquid-glassmotion on file
A client-side React before-and-after image slider distributed as a single shadcn registry TSX file. It embeds its own light and dark glass styling, uses Motion for clipping and drag animation, and calls browser file, pointer, and audio APIs for local image loading and optional feedback.



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 | 1 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 63.4 KB (128.8 KB build, 65.4 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A credible drop-in for visual demos and editing tools: it builds, mounts without framework scaffolding, and stays contained across the tested layouts. Adopt it only with an accessibility pass for contrast, slider semantics, focus, and keyboard control.
Use it if
- You need an interactive before-and-after comparison that accepts image URLs or local uploads.
- Your interface already permits client-side Motion components and pointer-driven interactions.
- You want a compact comparison card with editable labels, position callbacks, and optional sound.
Skip it if
- You require a keyboard-operable comparison control without modifying the component.
- Your release gate rejects the current low-contrast empty-state text.
- You cannot justify adding Motion for one comparison widget.
- Your product forbids local file input or browser audio behavior.
Install
| Declared dependencies | motion |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
In a non-shadcn React project, add Motion, copy the client TSX file into your component tree, and import the named component. No utility CSS package or provider is required because the styles are embedded. Supply both image sources for the comparison view, and disable sound if browser audio is not appropriate.
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/ruixenui/ruixen.comAlternatives
Other published entries for the feature-grid pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- hyperui-feature-grids-3editorial
- Renders
- YES
- A11y
- 0
- Gzip
- 17.7KB
- Bare
- pass
- Prov
- NO
- hyperui-feature-grids-1editorial
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- hyperui-feature-grids-4editorial
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- hyperui-feature-grids-2editorial
- Renders
- YES
- A11y
- 0
- Gzip
- 18.3KB
- Bare
- pass
- Prov
- NO
- meraki-feature-grid-list-with-imageminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 18.5KB
- Bare
- pass
- Prov
- NO
- meraki-feature-simpleminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 20.2KB
- Bare
- pass
- Prov
- NO