Components / effect

Shine Card

v1.0.0 · premium

A card with a glossy band of light that sweeps across it as the pointer moves, then slides away when it leaves.

Shine Card demo

Implementation

A card with a glossy band of light that sweeps across it as the pointer moves, then slides away when it leaves.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function ShineCard({ children, ink, paper, className }: {
  children: ReactNode;
  /** Border and text color. */

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A card with a glossy band of light that sweeps across it as the pointer moves, then slides away when it leaves.

Frequently asked questions

How does the band follow the pointer?

Its position is a registered CSS property written from the pointer, so the browser draws it. It glides off to the side when the pointer leaves.

What does the shine card do on touch screens?

The band does not move on touch or pen. The card stays fully usable and nothing is hidden.