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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherGradientTextShiny 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherShinyTextGlitch 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherGlitchTextSplit 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSplitTextRotating 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherRotatingTextCount 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCountUpNumber 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherNumberFlowText 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTextTypeBlur 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherBlurTextDecrypted 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherDecryptedTextScramble 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherScrambleTextShuffle
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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherShuffleFalling 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherFallingTextScroll 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherScrollRevealScroll 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherScrollFloatScroll 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherScrollVelocityText 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTextCursorText 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTextPressureVariable 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherVariableProximityTrue 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTrueFocusCircular 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCircularTextCurved 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCurvedLoopFuzzy 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherFuzzyTextASCII 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
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherAsciiText