Rokkit 1.0.3

Shine

Animated light sweep effect on hover

Shine creates a specular lighting effect that follows the cursor, giving elements a dynamic glossy appearance. Built on SVG filters, it simulates a point light source moving over a surface. Hover any element below to see it in action.

Live Demo

Hover over the cards — the specular highlight follows your cursor.

Primary surface
Secondary tint

Props

PropTypeDefaultDescription
colorstringrgb(var(--primary-500))Light color
radiusnumber300Light source height — controls spread
depthnumber1Gaussian blur depth
surfaceScalenumber2Surface height for the light filter
specularConstantnumber0.75Reflection intensity
specularExponentnumber120Focus of the light source (higher = brighter)
classstringCSS class forwarded to the wrapper element

Open in Playground

Adjust all lighting parameters interactively in the Shine playground.