Mist Words
Words that condense out of a cloud of fine particles, hold as crisp text, then drift away as coloured vapour while the next word forms. The pointer blows letters apart and a click sends the word off from that point.
pixikit.com/docs/effects/mist-words
Customize
Preset
Align
Color
Vapor color
Density1.00
Particle size1.20px
Spread1.20
Rise1.00
Turbulence0.80
Diffusion0.35
Grain1.00
Sweep
Stagger0.80
Condense1.8s
Hold2.4s
Dissolve2.0s
Overlap0.60
Loop
Start on view
Interactive
Breath1.00
Breath radius0.80
Recovery1.2s
Click advance
Pause on hover
Area
Paused
Dpr2.0
Font size112px
Font weight
Uppercase
Props
37| Name | Type | Default | Description |
|---|---|---|---|
preset | "mist" | "steam" | "dust" | "bloom" | "frost" | "ink" | None | A named look that sets several props at once. A prop you pass yourself wins over it. |
words | string[] | ["Imagine", "Create", "Inspire"] | The words to cycle through. |
as | "span" | "div" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | The element the text renders as. |
align | "start" | "center" | "end" | "center" | Where each word sits in the box of the longest one. |
color | string | "currentColor" | The colour of the settled word. |
vaporColor | string | "#B19EEF" | The colour the particles take as they drift. |
density | number | 1 | How many particles a word breaks into. |
particleSize | number | 1.2 | The size of a particle, in pixels. |
spread | number | 1.2 | How far the vapour spreads sideways. |
rise | number | 1 | How strongly the vapour rises. Negative values sink. |
turbulence | number | 0.8 | How much the vapour swirls. |
diffusion | number | 0.35 | How much each particle jitters. |
grain | number | 1 | How uneven the particles are in size and opacity. |
sweep | "left" | "right" | "center" | "top" | "scatter" | "left" | The side a word condenses from and dissolves toward. |
stagger | number | 0.8 | How much the sweep spreads the particles out in time. |
condense | number | 1.8 | How long a word takes to condense, in seconds. |
hold | number | 2.4 | How long a word stays, in seconds. |
dissolve | number | 2 | How long a word takes to dissolve, in seconds. |
overlap | number | 0.6 | How much the next word overlaps the one leaving, 0 to 1. |
loop | boolean | true | Keeps cycling after the last word. |
startOnView | boolean | true | Waits until the text is in view before the first word condenses. |
interactive | boolean | true | Lets the pointer blow the letters into vapour as it passes. |
breath | number | 1 | How strongly the pointer evaporates the letters. Faster movement blows harder. |
breathRadius | number | 0.8 | The reach of the pointer, in multiples of the font size. |
recovery | number | 1.2 | How long blown letters take to come back, in seconds. |
clickAdvance | boolean | true | Clicking evaporates the word outward from the click and brings in the next one. |
pauseOnHover | boolean | true | Keeps the current word in place while the pointer rests on it. |
area | "parent" | "self" | "window" | "parent" | Where the pointer is followed: over the parent, only over the text, or anywhere. |
paused | boolean | false | Freezes the text as it is. |
dpr | number | 2 | The highest device pixel ratio drawn. |
fontSize | string | number | "clamp(3rem, 10vw, 7rem)" | The font size. |
fontWeight | number | 700 | The font weight. |
uppercase | boolean | false | Sets the words in capitals. |
onWordChange | (index: number) => void | None | Called with the index of each word as it starts to condense. |
ref | Ref<MistWordsHandle> | None | Gives next and replay. |
className | string | None | |
style | CSSProperties | None |