SmokeFlow
Cursor-driven smoke that lingers, swirls, and dissipates with fluid dynamics
Props
Prop
Details
colorAstringDefault:
#e29c8bColor of fresh smoke
colorAstringDefault: #e29c8bColor of fresh smoke
colorBstringDefault:
#d517f9Color smoke transitions to as it ages
colorBstringDefault: #d517f9Color smoke transitions to as it ages
stopsobjectDefault:
nullMulti-stop gradient colors (overrides Color A / Color B when set)
stopsobjectDefault: nullMulti-stop gradient colors (overrides Color A / Color B when set)
intensitynumberDefault:
1How much smoke is emitted as you move the cursor
intensitynumberDefault: 1How much smoke is emitted as you move the cursor
emitRadiusnumberDefault:
0.07Size of smoke puff emitted at cursor
emitRadiusnumberDefault: 0.07Size of smoke puff emitted at cursor
momentumnumberDefault:
20How much cursor velocity is transferred into the smoke (higher = more directed flow)
momentumnumberDefault: 20How much cursor velocity is transferred into the smoke (higher = more directed flow)
dissipationnumberDefault:
0.5How fast smoke fades over time
dissipationnumberDefault: 0.5How fast smoke fades over time
detailnumberDefault:
10Fine-scale swirling detail driven by vorticity confinement
detailnumberDefault: 10Fine-scale swirling detail driven by vorticity confinement
gravitynumberDefault:
2Vertical drift — negative floats up, positive sinks down
gravitynumberDefault: 2Vertical drift — negative floats up, positive sinks down
colorDecaynumberDefault:
0.5How quickly smoke shifts from fresh to aged color
colorDecaynumberDefault: 0.5How quickly smoke shifts from fresh to aged color
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
OKLABColor space for color interpolation
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: OKLABColor space for color interpolation