Measured entry

magicui-shine-border

hover-effectgradient-glowmotion on file

A client-side React overlay that paints an animated radial-gradient border around a positioned parent. It ships as a shadcn registry component, uses utility classes plus registry-supplied animation CSS, and imports the local cn helper through the standard shadcn path alias.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of magicui-shine-border at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-shine-border at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-shine-border 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 magicui-shine-border
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal29.5 KB (95.0 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

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

Verdict

A focused effect with a clean API that built, mounted, and stayed clear of the tested accessibility and overflow issues. It needs a shadcn-style setup because the bare project cannot resolve its local utility import, so adoption is easiest in an existing shadcn codebase.

Use it if

  • You want a decorative animated outline on cards, calls to action, or featured panels.
  • Your React app already has shadcn-style aliases, a cn helper, and Tailwind utilities.
  • You need configurable border color and animation timing without adding a runtime package.

Skip it if

  • Your design system avoids continuous decorative motion or requires the effect to be static.
  • You need a self-contained component that works without project CSS or path aliases.
  • Your target browsers cannot reliably render composite CSS masks.
  • You need the border itself to accept pointer interaction.

Install

Installation record for magicui-shine-border
Declared dependenciesclsx, tailwind-merge
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 or replace the cn helper import, configure the matching path alias, provide the shine keyframes and animation utility, and translate the Tailwind layout and masking classes if Tailwind is unavailable. Place it inside a positioned container with the desired inherited corner radius.

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.

License
MIT
Record published
2026-08-17

Alternatives

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