[CH-01 // OSC_ACTIVE]
/
FX online: 09
/
Signal locked
Pure HTML • CSS • JS
|
Zero deps • copy & paste
Instrument archive··· 9 effects calibrated
Pure webglitches
Glitch effects in pure HTML, CSS & JS — watch, tweak, copy
Effects Lab
Glitch, neon and retro text effects in pure HTML, CSS and JS. Tweak every parameter, copy clean code.
Browse effects → Track 02Motion Makers
Animated scenes you configure once and export twice: a seamless GIF or MP4 for chats and stories, or the same animation as HTML/CSS/JS for your site.
Open the makers →All effects
/* Typewriter — terminal typing in CSS: letters appear one by one,
the fresh one is hot white and cools to green, then the line
is erased and typed again.
Works on any text element: class="tw-type" + data-text.
A tiny script splits the text into letters (<i>).
Font: JetBrains Mono (Google Fonts), falls back to monospace.
Settings: change the variables below. */
.tw-type {
--tw-speed: 0.12; /* seconds per letter */
--tw-hold: 2.2; /* seconds the typed line stays */
--tw-pause: 0.5; /* seconds of empty screen before retyping */
--tw-size: 48px;
--tw-color: #9be89a; /* letters */
--tw-glow: #39ff14; /* glow and cursor */
--tw-len: 10; /* number of letters, set by the script */
/* One cycle: type, hold, erase (a bit faster), pause */
--tw-typing: calc(var(--tw-len) * var(--tw-speed));
--tw-erase: calc(var(--tw-speed) * 0.55);
--tw-cycle: calc(var(--tw-typing) + var(--tw-hold)
+ var(--tw-len) * var(--tw-erase) + var(--tw-pause));
/* --tw-s: seconds into the cycle (--tw-t is a 0 → 1 clock) */
--tw-s: calc(var(--tw-t) * var(--tw-cycle));
/* --tw-n: how many letters are typed right now, smoothly */
--tw-n: clamp(0, min(
var(--tw-s) / var(--tw-speed),
var(--tw-len) - max(0, var(--tw-s) - var(--tw-typing) - var(--tw-hold)) / var(--tw-erase)
), var(--tw-len));
/* a fixed box, so the line grows to the right, not from the centre */
width: calc(var(--tw-len) * 1ch + 0.6ch);
max-width: 100%;
margin: 0;
font: 700 var(--tw-size)/1.2 "JetBrains Mono", ui-monospace, monospace;
white-space: pre;
color: var(--tw-color);
filter: drop-shadow(0 0 6px var(--tw-glow)) drop-shadow(0 0 20px var(--tw-glow));
animation: tw-clock calc(var(--tw-cycle) * 1s) linear infinite;
}
/* A letter grows and fades in when --tw-n reaches it */
.tw-type i {
--k: clamp(0, (var(--tw-n) - var(--tw-i)) * 1.5, 1);
/* seconds since this letter was typed; hot for 0.07 s,
cool by 0.2 s (squared = fast at first, like ease-out) */
--d: calc(var(--tw-s) - var(--tw-i) * var(--tw-speed));
--h: clamp(0, (0.2 - var(--d)) / 0.13, 1);
--heat: calc(var(--h) * var(--h) * 100%);
display: inline-block;
width: calc(var(--k) * 1ch);
font-style: normal;
opacity: var(--k);
color: color-mix(in srgb, #fff var(--heat), var(--tw-color));
text-shadow:
0 0 10px color-mix(in srgb, #fff var(--heat), transparent),
0 0 30px color-mix(in srgb,
color-mix(in srgb, var(--tw-glow) 40%, #fff) var(--heat), transparent);
}
/* Block cursor right after the last letter */
.tw-type::after {
content: "";
display: inline-block;
width: 0.6ch;
height: 1em;
vertical-align: -0.15em;
background: var(--tw-glow);
animation: tw-blink 1s steps(1) infinite;
}
@property --tw-t {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@keyframes tw-clock {
to { --tw-t: 1; }
}
@keyframes tw-blink {
50% { opacity: 0; }
}
/* Less motion: the whole line is typed, the cursor is still */
@media (prefers-reduced-motion: reduce) {
.tw-type { animation: none; }
.tw-type i { --k: 1; --heat: 0%; }
.tw-type::after { animation: none; }
}
Tweak →
Scramble Text
Light
/* Scramble Text — a word dissolves into random glyphs and decodes back,
letter by letter, left to right. A short script swaps the glyphs;
all timing lives in the variables below, the script reads them live.
Works on any text element: class="st-scramble" + data-text.
Font: JetBrains Mono (Google Fonts), falls back to monospace. */
.st-scramble {
--st-decode: 1.8; /* seconds until the last letter locks */
--st-pause: 2.6; /* seconds the word stays readable before it scrambles again */
--st-rate: 25; /* how many times a second the glyphs change */
--st-echo: 30px; /* how far the echo copies fly before the noise; 0 = no echo */
--st-size: 64px;
--st-color: #9be89a;
--st-glow: #39ff14;
margin: 0; /* margin: space around the text on your page */
font: 700 var(--st-size)/1.2 "JetBrains Mono", ui-monospace, monospace;
font-variant-ligatures: none; /* "/=" must stay two glyphs, not "≠" */
white-space: pre;
color: var(--st-color);
filter: drop-shadow(0 0 6px var(--st-glow));
}
/* Every cell is exactly one letter wide: glyphs from other fonts
(like ₾) can't make the word jump */
.st-scramble i {
display: inline-block;
width: 1ch;
text-align: center;
font-style: normal;
}
Tweak →
CRT Screen
Light
/* CRT Screen — text glowing on an old tube monitor. Pure CSS.
Neon phosphor with red and blue fringes, curved dark glass with a
reflection, scanlines and an RGB phosphor mask, a bright band rolling
down, a breathing flicker with a sync wobble — and now and then the
power goes off: the picture collapses into a line, the line into a
hot dot, the dot slowly fades, and the screen comes back on.
The screen is the wrapper (class="cr-crt"); everything is sized in em
from --cr-size, so the screen grows with your text.
Font: Space Grotesk (Google Fonts), falls back to system-ui.
Settings: change the variables below. */
.cr-crt {
--cr-pause: 5.6; /* seconds the screen stays on between power-offs */
--cr-lines: 0.3; /* scanline darkness, 0 = no scanlines */
--cr-mask: 0.06; /* RGB phosphor stripes, 0 = smooth glass */
--cr-fringe: 2px; /* how far the red and blue fringes stick out */
--cr-size: 120px; /* text size; the screen follows it */
--cr-core: #fff8c2; /* the hot centre of the letters */
--cr-glow: #ffe600; /* glow around them */
--cr-halo: #ff9e00; /* outer, warmer glow */
position: relative;
overflow: hidden;
margin: 0; /* margin: space around the screen on your page */
padding: 1.15em 0.55em; /* padding: glass around the text (em = text size) */
/* a tube is wider than it is tall; collapsed, the line and the dot are round */
border-radius:
calc(0.4em * var(--cr-on) + 50% * (1 - var(--cr-on))) /
calc(0.6em * var(--cr-on) + 50% * (1 - var(--cr-on)));
font-size: var(--cr-size);
background:
/* reflection of the room on the curved glass, top left */
radial-gradient(ellipse 60% 45% at 28% 18%, rgb(255 255 255 / 0.07), transparent 70%),
/* the phosphor glows a little even between the letters */
radial-gradient(color-mix(in srgb, var(--cr-glow) 15%, #030405), #030405 80%);
box-shadow:
/* curved glass: the edges fall into shadow */
inset 0 0 0.5em 0.12em rgb(0 0 0 / calc(0.9 * var(--cr-on))),
/* a thin dark bezel (hidden while the picture is collapsed) */
0 0 0 0.05em rgb(11 11 12 / var(--cr-on)),
0 0 0 0.065em rgb(29 30 33 / var(--cr-on)),
/* the screen lights up the room around it */
0 0 1.2em color-mix(in srgb, var(--cr-glow) 14%, transparent);
/* A clock: --cr-t runs 0 → 1 once per cycle (screen on + 2.6 s power-off) */
animation: cr-clock calc((var(--cr-pause) + 2.6) * 1s) linear infinite;
/* --cr-s: seconds into the power-off (negative while the screen is on) */
--cr-s: calc(var(--cr-t) * (var(--cr-pause) + 2.6) - var(--cr-pause));
/* Five stages of the power-off, each 0 → 1 */
--cr-a: clamp(0, var(--cr-s) / 0.4, 1); /* picture squashes into a line */
--cr-b: clamp(0, (var(--cr-s) - 0.4) / 0.3, 1); /* line pulls into a hot dot */
--cr-c: clamp(0, (var(--cr-s) - 0.7) / 0.9, 1); /* the dot fades slowly (afterglow) */
--cr-d: clamp(0, (var(--cr-s) - 1.9) / 0.3, 1); /* power on: a line stretches out */
--cr-e: clamp(0, (var(--cr-s) - 2.2) / 0.4, 1); /* the line opens into the picture */
/* Smooth start and stop for each stage: x²(3 − 2x), like ease-in-out */
--cr-ea: calc(var(--cr-a) * var(--cr-a) * (3 - 2 * var(--cr-a)));
--cr-eb: calc(var(--cr-b) * var(--cr-b) * (3 - 2 * var(--cr-b)));
--cr-ec: calc(var(--cr-c) * var(--cr-c) * (3 - 2 * var(--cr-c)));
--cr-ed: calc(var(--cr-d) * var(--cr-d) * (3 - 2 * var(--cr-d)));
--cr-ee: calc(var(--cr-e) * var(--cr-e) * (3 - 2 * var(--cr-e)));
--cr-on: calc(1 - var(--cr-ea) + var(--cr-ee)); /* 1 = full picture, 0 = collapsed */
--cr-dot: calc(var(--cr-eb) - var(--cr-ed)); /* the hot dot: lights up, then goes */
transform: scale(
calc(1 - 0.989 * var(--cr-eb) + 0.989 * var(--cr-ed)),
calc(1 - 0.994 * var(--cr-ea) + 0.023 * var(--cr-eb)
- 0.023 * var(--cr-ed) + 0.994 * var(--cr-ee)));
/* the line burns at 3×, the dot at 5×, then fades out; back on at 3× */
filter: brightness(calc(1 + 2 * var(--cr-ea) + 2 * var(--cr-eb) - 4 * var(--cr-ec)
+ 2 * var(--cr-ed) - 2 * var(--cr-ee)));
opacity: calc(1 - var(--cr-ec) + var(--cr-ed));
}
/* Neon phosphor: hot core, red and blue fringes, glow in three layers */
.cr-crt > * {
margin: 0;
font: 700 1em/1.2 "Space Grotesk", system-ui, sans-serif;
white-space: nowrap;
color: var(--cr-core);
text-shadow:
calc(var(--cr-fringe) * -1) 0 rgb(255 0 0 / 0.7),
var(--cr-fringe) 0 rgb(0 0 255 / 0.7),
0 0 0.12em var(--cr-glow),
0 0 0.28em color-mix(in srgb, var(--cr-glow), var(--cr-halo) 30%),
0 0 0.67em var(--cr-halo);
/* The tube breathes, dips, and the picture slips sideways for a moment */
animation: cr-flicker 3s ease-in-out infinite;
}
/* Scanlines and the phosphor mask (thin R, G, B stripes) over everything.
multiply only darkens: each stripe lets mostly its own colour through. */
.cr-crt::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
mix-blend-mode: multiply;
background:
repeating-linear-gradient(
rgb(255 255 255) 0 2px, rgb(255 255 255 / calc(1 - var(--cr-lines))) 2px 4px),
repeating-linear-gradient(90deg,
rgb(255 calc(255 * (1 - var(--cr-mask) * 4)) calc(255 * (1 - var(--cr-mask) * 4))) 0 1px,
rgb(calc(255 * (1 - var(--cr-mask) * 4)) 255 calc(255 * (1 - var(--cr-mask) * 4))) 1px 2px,
rgb(calc(255 * (1 - var(--cr-mask) * 4)) calc(255 * (1 - var(--cr-mask) * 4)) 255) 2px 3px);
}
/* A soft bright band rolls down the glass. On top of it, the hot dot:
it lights up as the line pulls together and goes when the power is back. */
.cr-crt::after {
content: "";
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
background:
radial-gradient(closest-side,
rgb(255 255 245 / var(--cr-dot)) 40%,
color-mix(in srgb, var(--cr-glow) calc(var(--cr-dot) * 100%), transparent) 75%,
transparent),
linear-gradient(transparent, rgb(255 255 255 / 0.06), transparent)
0 -43% / 100% 30% no-repeat;
animation: cr-roll 6s linear infinite;
}
/* the band is 30% tall: -43% puts it just above the glass, 143% just below */
@keyframes cr-roll {
to { background-position: 0 0, 0 143%; }
}
/* A dip in brightness with a sync slip: a jerk sideways and a fading sway */
@keyframes cr-flicker {
0%, 100% { opacity: 1; transform: none; }
50% { opacity: 0.92; transform: none; }
53% { opacity: 0.75; transform: translateX(0.03em); }
55% { transform: translateX(-0.015em); }
57% { opacity: 0.95; transform: translateX(0.006em); }
59% { transform: none; }
}
@property --cr-t {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@keyframes cr-clock {
to { --cr-t: 1; }
}
/* Less motion: the screen just glows behind its glass — no flicker, no power-off. */
@media (prefers-reduced-motion: reduce) {
.cr-crt,
.cr-crt > *,
.cr-crt::after { animation: none; }
}
Tweak →
Direct code access
Seen it on TikTok or Shorts?
Every effect from the videos lives here: the exact code from the video, a customizable version and a playground. No frameworks, no npm — copy, paste, done.
Effects online
09
New every week
External libs
0pkgs
Vanilla browser APIs
Code versions
×2
As in video + customizable
License
FREE
Copy · use · ship