Skip to content
PixiKit

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
NameTypeDefaultDescription
preset"mist" | "steam" | "dust" | "bloom" | "frost" | "ink"NoneA named look that sets several props at once. A prop you pass yourself wins over it.
wordsstring[]["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.
colorstring"currentColor"The colour of the settled word.
vaporColorstring"#B19EEF"The colour the particles take as they drift.
densitynumber1How many particles a word breaks into.
particleSizenumber1.2The size of a particle, in pixels.
spreadnumber1.2How far the vapour spreads sideways.
risenumber1How strongly the vapour rises. Negative values sink.
turbulencenumber0.8How much the vapour swirls.
diffusionnumber0.35How much each particle jitters.
grainnumber1How uneven the particles are in size and opacity.
sweep"left" | "right" | "center" | "top" | "scatter""left"The side a word condenses from and dissolves toward.
staggernumber0.8How much the sweep spreads the particles out in time.
condensenumber1.8How long a word takes to condense, in seconds.
holdnumber2.4How long a word stays, in seconds.
dissolvenumber2How long a word takes to dissolve, in seconds.
overlapnumber0.6How much the next word overlaps the one leaving, 0 to 1.
loopbooleantrueKeeps cycling after the last word.
startOnViewbooleantrueWaits until the text is in view before the first word condenses.
interactivebooleantrueLets the pointer blow the letters into vapour as it passes.
breathnumber1How strongly the pointer evaporates the letters. Faster movement blows harder.
breathRadiusnumber0.8The reach of the pointer, in multiples of the font size.
recoverynumber1.2How long blown letters take to come back, in seconds.
clickAdvancebooleantrueClicking evaporates the word outward from the click and brings in the next one.
pauseOnHoverbooleantrueKeeps 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.
pausedbooleanfalseFreezes the text as it is.
dprnumber2The highest device pixel ratio drawn.
fontSizestring | number"clamp(3rem, 10vw, 7rem)"The font size.
fontWeightnumber700The font weight.
uppercasebooleanfalseSets the words in capitals.
onWordChange(index: number) => voidNoneCalled with the index of each word as it starts to condense.
refRef<MistWordsHandle>NoneGives next and replay.
classNamestringNone
styleCSSPropertiesNone

Related