2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search 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. 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.
Prop
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
Prop
Type
Default
opacity
number30
filter
string
blending
mixBlendModecolor-dodge
mask
MaskOptions
Prop
Type
Default
opacity
number30
filter
stringbrightness(0.2) contrast(2)
blending
mixBlendModecolor-dodge
mask
MaskOptions
Prop
Type
Default
opacity
number10
filter
string
blending
mixBlendModecolor-dodge
image
stringrepeating-linear-gradient(...)
mask
MaskOptions
Prop
Type
Default
maskPosition
string100 200
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club