Documentation

  • 312 sections
  • Solid
  • Tailwind or StyleX

Gradient text

An animated gradient clipped to the text. The colour band drifts across the glyphs forever. Respects reduced motion.

colors
Typestring[] (hex) Default['#358ff3', '#7CFF67', '#358ff3']
speed
Typenumber Default1
class
Typestring Defaultundefined
children
Typetext Defaultnone
Add it to your project
One line copies DitherGradientText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherGradientText

Shiny text

A bright highlight sweeps across dim text on a loop: a subtle sheen for headlines and labels.

speed
Typenumber Default1
disabled
Typeboolean Defaultfalse
class
Typestring Defaultundefined
children
Typetext Defaultnone
Add it to your project
One line copies DitherShinyText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherShinyText

Glitch text

Two RGB-split copies jitter and clip over the base text for a broken-signal effect. The base stays readable; the glitch layers hide under reduced motion.

text
Typestring Default"GLITCH"
speed
Typenumber Default1
class
Typestring Defaultundefined
Add it to your project
One line copies DitherGlitchText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherGlitchText

Split text

Each character rises and settles on a stagger. Bump replayToken to run it again; the whole word is still one labelled node for screen readers.

text
Typestring Default"Split text"
stagger
Typenumber (ms/char) Default40
duration
Typenumber (ms) Default600
replayToken
Typenumber Default0
class
Typestring Defaultundefined
Add it to your project
One line copies DitherSplitText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSplitText

Rotating text

Cycles through a list of words for a headline that says several things, each sliding out as the next slides in.

texts
Typestring[] Default['Solid', 'canvas', 'dither']
interval
Typenumber (ms) Default2000
class
Typestring Defaultundefined
Add it to your project
One line copies DitherRotatingText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherRotatingText

Count up

Eases a number from from to to when it scrolls into view. Locale-formatted, tabular figures. Reduced motion jumps to the final value.

to
Typenumber Defaultrequired
from
Typenumber Default0
duration
Typenumber (ms) Default1500
decimals
Typenumber Default0
class
Typestring Defaultundefined
Add it to your project
One line copies DitherCountUp and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCountUp

Number flow

An odometer for live values: every digit rides a 0-9 column that rolls to the new figure whenever value changes. Count up plays once; this one never stops. Reduced motion snaps.

value
Typenumber Defaultrequired
decimals
Typenumber Default0
duration
Typenumber (ms): roll time per change Defaultthe pill's 300ms
class
Typestring Defaultundefined
Add it to your project
One line copies DitherNumberFlow and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherNumberFlow

Text type

A typewriter with a blinking caret: it types each string, pauses, deletes and moves to the next. Reduced motion shows the first line, no typing.

texts
Typestring[] Default['Type this out.', 'Then this.']
typingSpeed
Typenumber (ms) Default60
deletingSpeed
Typenumber (ms) Default35
pause
Typenumber (ms) Default1400
loop
Typeboolean Defaulttrue
cursor
Typeboolean Defaulttrue
class
Typestring Defaultnone
Add it to your project
One line copies DitherTextType and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTextType

Blur text

Words (or characters) blur into focus on a stagger the first time they enter the viewport. Still one labelled node for screen readers.

text
Typestring Default"Blur into focus"
by
Type"words" | "chars" Default"words"
stagger
Typenumber (ms) Default90
duration
Typenumber (ms) Default600
class
Typestring Defaultnone
Add it to your project
One line copies DitherBlurText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherBlurText

Decrypted text

Scrambled cipher characters resolve left-to-right into the real text when it scrolls into view. Monospace keeps the width steady.

text
Typestring Default"DECRYPTED"
speed
Typenumber Default1
trigger
Type"view" | "hover" Default"view"
chars
Typestring: the glyphs a letter runs through DefaultCHARS
class
Typestring Defaultnone
Add it to your project
One line copies DitherDecryptedText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherDecryptedText

Scramble text

Hover to burst-scramble the characters, which then settle back to the real text. Repeatable on every hover.

text
Typestring Default"Hover to scramble"
speed
Typenumber Default1
class
Typestring Defaultnone
Add it to your project
One line copies DitherScrambleText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherScrambleText

Shuffle

Characters fly in from scattered offsets and rotations, settling into place on a stagger. Bump replayToken to run it again.

text
Typestring Default"Shuffle in"
stagger
Typenumber (ms) Default55
duration
Typenumber (ms) Default650
replayToken
Typenumber Default0
class
Typestring Defaultnone
Add it to your project
One line copies DitherShuffle and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherShuffle

Falling text

Characters drop in from above with a little overshoot bounce, staggered across the line.

text
Typestring Default"Falling text"
stagger
Typenumber (ms) Default45
duration
Typenumber (ms) Default700
replayToken
Typenumber Default0
class
Typestring Defaultnone
Add it to your project
One line copies DitherFallingText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherFallingText

Scroll reveal

The words fade and de-blur word-by-word as the block travels up through the viewport. The reveal is tied to scroll position, not a one-shot. Scroll the page.

text
Typestring Defaultrequired
class
Typestring Defaultundefined
Add it to your project
One line copies DitherScrollReveal and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherScrollReveal

Scroll float

Characters float up from an offset as the scroll progress reaches each one: a gentle parallax settle. Scroll the page.

text
Typestring Defaultrequired
amount
Typenumber Default1
class
Typestring Defaultnone
Add it to your project
One line copies DitherScrollFloat and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherScrollFloat

Scroll velocity

A seamless marquee band that drifts on its own and speeds up (or reverses) with your scroll velocity, easing back to base speed. Scroll the page.

text
Typestring Default"DITHER · UI · TOOLKIT ·"
baseSpeed
Typenumber (px/s) Default60
class
Typestring Defaultnone
Add it to your project
One line copies DitherScrollVelocity and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherScrollVelocity

Text cursor

The characters of the word trail the pointer inside the box, each lagging a little further behind for a ribbon of type. Move your cursor over the preview.

text
Typestring Default"dither"
class
Typestring Defaultundefined
Add it to your project
One line copies DitherTextCursor and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTextCursor

Text pressure

Characters bulge (scaling up and gaining weight) near the cursor, like the word is being pressed. Move your cursor near the text.

text
Typestring Default"Pressure"
radius
Typenumber (px) Default140
strength
Typenumber Default1
class
Typestring Defaultnone
Add it to your project
One line copies DitherTextPressure and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTextPressure

Variable proximity

Each character's weight and opacity ramps with its distance to the pointer. No scaling, so a whole sentence stays put while the cursor lights a path through it.

text
Typestring Defaultrequired
radius
Typenumber (px) Default120
class
Typestring Defaultnone
Add it to your project
One line copies DitherVariableProximity and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherVariableProximity

True focus

One word stays sharp while the rest blur, and the focus steps through the phrase on a timer, pulling the eye word by word.

text
Typestring Default"True focus mode"
interval
Typenumber (ms) Default1400
blur
Typenumber (px) Default5
class
Typestring Defaultnone
Add it to your project
One line copies DitherTrueFocus and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTrueFocus

Circular text

Text set around a full circle on an SVG path, rotating forever: a badge or seal. Uses currentColor so it inherits type colour.

text
Typestring Default"DITHER · UI · TOOLKIT ·"
duration
Typenumber (s) Default12
size
Typenumber (px) Default170
class
Typestring Defaultnone
Add it to your project
One line copies DitherCircularText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCircularText

Curved loop

Text flows along a wavy SVG path as a seamless loop. The copy length is measured so the scroll wraps without a visible seam.

text
Typestring Default"DITHER UI · CANVAS + BAYER ·"
speed
Typenumber (units/s) Default60
class
Typestring Defaultnone
Add it to your project
One line copies DitherCurvedLoop and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCurvedLoop

Fuzzy text

An SVG turbulence + displacement filter wobbles the glyph edges into an analog fuzz. Native filters, no canvas. Reduced motion drops the filter.

text
Typestring Default"FUZZY"
intensity
Typenumber Default4
class
Typestring Defaultnone
Add it to your project
One line copies DitherFuzzyText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherFuzzyText

ASCII text

The word is rasterised to an offscreen canvas and mapped onto an ASCII density ramp: an on-brand ASCII render of any string.

text
Typestring Default"DITHER"
cols
Typenumber Default64
class
Typestring Defaultnone
Add it to your project
One line copies DitherAsciiText and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherAsciiText