syaivoalpha

Glyphs

Characters emerge from the void, drift, flicker, and dissolve. A living texture of code and language.

Preview

Usage

import { createGlyphs } from 'syaivo';

const effect = createGlyphs({
  color: ['rgba(0,255,65,0.5)', 'rgba(255,176,0,0.4)'],
  count: 50,
  fontSize: 14,
});

effect.mount(document.getElementById('hero')!);

Options

OptionTypeDefaultDescription
charsetstring`"01/\-.:#@*+=><%$"`
colorstring | string[]"rgba(255,255,255,0.12)"Glyph color(s)
backgroundColorstring"transparent"Canvas background
countnumber40Number of floating glyphs
minSpeednumber0.5Min drift speed (px/s)
maxSpeednumber1.5Max drift speed (px/s)
minOpacitynumber0.04Min glyph opacity
maxOpacitynumber0.18Max glyph opacity
fontSizenumber14Font size (px)
fontFamilystring"monospace"Font family
minFlickerIntervalnumber40Min frames between character changes
maxFlickerIntervalnumber120Max frames between character changes
animatedbooleantrueEnable animation
respectReducedMotionbooleantrueHonor prefers-reduced-motion

Dynamic Updates

effect.update({ count: 80, fontSize: 18 });

Example

Introducing your product

Build something
people remember

A polished experience starts with the details. Ship interfaces that feel considered from the first pixel.

Get startedDocumentation

On this page