Glint Hover
A glossy light streak that sweeps across any element on hover, follows the pointer, shines on a timer or sweeps on click, with an edge that catches the light.
pixikit.com/docs/effects/glint-hover
Customize
Mode
Variant
Glare color
Glare opacity0.50
Glare size30%
Softness0.60
Glare angle-45deg
Blend mode
Rim glint
Transition duration650ms
Interval3.0s
Play once
Intro
Border color
Props
21| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | None | The content the glare passes over. |
mode | "hover" | "follow" | "loop" | "click" | "hover" | Sweep on hover, follow the pointer, shine on a timer, or sweep on click. |
variant | "streak" | "twin" | "sheen" | "streak" | The shape of the light: one bright streak, a twin streak like glass, or a soft wide sheen. |
glareColor | string | "#ffffff" | The glare's colour; any CSS colour, variables included. |
glareOpacity | number | 0.5 | How bright the glare is, 0 to 1. |
glareSize | number | 30 | The width of the glare, as a percent of the box's diagonal. |
softness | number | 0.6 | How soft the core of the glare is, 0 to 1. |
glareAngle | number | -45 | The direction the glare travels, in degrees. |
blendMode | "screen" | "normal" | "overlay" | "soft-light" | "screen" | How the glare mixes with the content. |
rimGlint | boolean | true | Lets the edge catch the light where the glare crosses it. |
transitionDuration | number | 650 | Milliseconds one sweep takes. |
interval | number | 3 | Seconds between shines in loop mode. |
playOnce | boolean | false | In hover mode, sweeps only on the way in instead of again on the way out. |
intro | boolean | false | Sweeps once when the box first scrolls into view. |
width | string | "auto" | The box's width, any CSS length. |
height | string | "auto" | The box's height, any CSS length. |
background | string | "transparent" | The box's background, any CSS background. |
borderRadius | string | "10px" | The box's corner radius, any CSS length. |
borderColor | string | "transparent" | The box's border colour. |
className | string | None | |
style | CSSProperties | None |