v0.0.1

Caustics

WebGL 实时渲染的水下焦散:流动的光网带轻微色散,顶部斜射光束,指针处荡开水波并聚光。

Elyri
WebGL · Real-time

Components that come alive

A React library of living backgrounds, motion and text effects — built to make your interface feel alive.

Customize

水体色
#0a6fa8
光纹色
#c8fbff

Props

属性类型默认值说明
childrenReactNode—叠加在背景之上的内容
colorstring'#0a6fa8'水体颜色(hex)
highlightColorstring'#c8fbff'焦散光色(hex)
densitynumber1光纹密度倍率
speednumber1动画速度倍率
interactivebooleantrue指针处是否荡开水波并聚光
classNamestring—自定义类名

依赖

WebGL