Skip to content
TrademarkTrademark
Docs
Effects

HoloFx

Updated: May 11, 2025
View on GitHub

HoloFx simulates a holographic light sheen by layering interactive visual effects like shine, burn, and texture over any content block. It uses radial masks and mouse tracking to shift light and create movement. Not supported on touch-screens.

Performance

HoloFx automatically detects low-end devices and the prefers-reduced-motion system setting. When either is detected, the mouse-tracking effect is paused. The effect also pauses when the element is outside the viewport. You can override this with the reducedMotion prop.

See useReducedMotion for details.

API reference

HoloFx Props

Type
Default
children
React.ReactNode—
reducedMotion
booleanauto
auto
shine
The specular highlight layer. See Shine Props below.
{ opacity?: number; filter?: string; blending?: CSSProperties["mixBlendMode"]; mask?: MaskOptions; }—
burn
The blown-out highlight layer. See Burn Props below.
{ opacity?: number; filter?: string; blending?: CSSProperties["mixBlendMode"]; mask?: MaskOptions; }—
texture
The overlaid texture layer. See Texture Props below.
{ opacity?: number; filter?: string; blending?: CSSProperties["mixBlendMode"]; image?: string; mask?: MaskOptions; }—
…and every FlexProps propinherited—
className
string—
style
React.CSSProperties—

Shine Props

Type
Default
opacity
number30
filter
string—
blending
mixBlendModecolor-dodge
mask
MaskOptions—

Burn Props

Type
Default
opacity
number30
filter
stringbrightness(0.2) contrast(2)
blending
mixBlendModecolor-dodge
mask
MaskOptions—

Texture Props

Type
Default
opacity
number10
filter
string—
blending
mixBlendModecolor-dodge
image
stringrepeating-linear-gradient(...)
mask
MaskOptions—

Mask Options

Type
Default
maskPosition
string100 200
Edit this page on GitHub