Measured entry

cultui-shader-lens-blur

background-effectglassmorphismmotion on file

A client-side React canvas that renders an animated, pointer-reactive lens effect with a custom WebGL shader. It ships as a shadcn registry source file and uses Three.js for rendering, Jotai for shared configuration, Motion for its fade-in, next-themes for color-mode awareness, and utility classes for layout.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of cultui-shader-lens-blur at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of cultui-shader-lens-blur at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of cultui-shader-lens-blur 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 cultui-shader-lens-blur
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal188.8 KB (254.2 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 2.51s
error during build:
[vite]: Rollup failed to resolve import "next-themes" from "<sandbox>re-2b6a07d489d8/src/cut/components/ui/shader-lens-blur.tsx".

Verdict

It builds and mounts cleanly on its own, and the shader interaction is distinctive enough for a focal visual. Adopt it selectively: the graphics stack is costly for a single effect, the render loop runs continuously, and the narrow layout needs correction before production use.

Use it if

  • You need an interactive shader backdrop for a hero, campaign panel, or experimental landing page.
  • Your app already carries Three.js or can justify adding a substantial graphics dependency for one visual.
  • You want the shader colors, shape variation, interaction mode, and canvas sizing controlled through shared React state.

Skip it if

  • You need a lightweight decorative effect and do not otherwise use a WebGL rendering stack.
  • Your target includes narrow mobile layouts unless you can correct the observed horizontal overflow.
  • You need meaningful nonvisual content rather than a canvas-based ambient graphic.
  • You cannot budget continuous animation work or support browsers and devices with reliable WebGL.

Install

Installation record for cultui-shader-lens-blur
Declared dependenciesmotion, three, jotai
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 app, copy the client component, install Motion, Three.js, Jotai, and next-themes, and provide a compatible theme provider. Add Tailwind utility support or replace the layout classes with local CSS, then place the canvas in a width-constrained responsive container and test WebGL fallback behavior.

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 background-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.