[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
/* Glitch Text — strips tear sideways top to bottom,
RGB channels swing apart. Pure CSS.
Six identical copies of the word, each with data-text:
the first stays put (with holes), the others are strips.
Font: Space Grotesk (Google Fonts), falls back to system-ui.
Settings: change the variables below. */
.gt-glitch {
--gt-tear: 24px; /* how far a strip jumps */
--gt-split: 12px; /* how far red and blue swing */
--gt-pause: 2.2; /* seconds between glitches */
--gt-size: 50px;
--gt-red: #ff0000;
--gt-green: #00ff00;
--gt-blue: #0000ff;
display: grid;
margin: 0;
font: 700 var(--gt-size) "Space Grotesk", system-ui, sans-serif;
letter-spacing: 0.06em;
white-space: nowrap;
/* A clock: --gt-t runs 0 → 1 once per glitch (1.8 s) + pause */
animation: gt-clock calc((1.8 + var(--gt-pause)) * 1s) linear infinite;
/* --gt-ms: milliseconds into the glitch, 0 → 1800, then held */
--gt-ms: calc(clamp(0, var(--gt-t) * (1.8 + var(--gt-pause)) / 1.8, 1) * 1800);
/* Channels: a damped wave (0–960 ms), then flashes (1120–1720 ms) */
--gt-w: calc(var(--gt-split) * (
max(0, 1 - var(--gt-ms) / 960) * 1.14 * sin(var(--gt-ms) * 0.75deg)
+ clamp(0, (var(--gt-ms) - 1120) / 60, 1) * max(0, 1 - (var(--gt-ms) - 1120) / 600)
* 0.45 * sin((var(--gt-ms) - 1180) * 1.5deg)
));
}
/* The copies are stacked in one grid cell. A strip's move:
jump (48 ms), hold, overshoot −25% (at 180 ms), back (220 ms) */
.gt-glitch span {
--l: calc(var(--gt-tear) * -4);
--r: calc(100% + var(--gt-tear) * 4);
--t: 0;
--gt-m: calc(var(--gt-ms) - var(--t));
grid-area: 1 / 1;
position: relative;
isolation: isolate;
color: var(--gt-green);
transform: translateX(calc(var(--s, 0) * var(--gt-tear) * (
clamp(0, var(--gt-m) / 48, 1)
- clamp(0, (var(--gt-m) - 140) / 40, 1) * 1.25
+ clamp(0, (var(--gt-m) - 180) / 40, 1) * 0.25
)));
}
/* First copy stays put; the strips are cut out of it */
.gt-glitch span:nth-child(1) {
--s: 0;
clip-path: polygon(
var(--l) 0, var(--r) 0, var(--r) 28%, var(--l) 28%,
var(--l) 33%, var(--r) 33%, var(--r) 40%, var(--l) 40%,
var(--l) 43%, var(--r) 43%, var(--r) 46%, var(--l) 46%,
var(--l) 54%, var(--r) 54%, var(--r) 60%, var(--l) 60%,
var(--l) 63%, var(--r) 63%, var(--r) 66%, var(--l) 66%,
var(--l) 72%, var(--r) 72%, var(--r) 100%, var(--l) 100%
);
}
/* The strips, top to bottom: --s = side and strength,
--t = when it jumps (ms), so they go like a wave */
.gt-glitch span:nth-child(2) {
--s: -1.5; --t: 1200;
clip-path: inset(28% var(--l) 67% var(--l));
}
.gt-glitch span:nth-child(3) {
--s: -1; --t: 1240;
clip-path: inset(40% var(--l) 57% var(--l));
}
.gt-glitch span:nth-child(4) {
--s: 1.2; --t: 1300;
clip-path: inset(46% var(--l) 46% var(--l));
}
.gt-glitch span:nth-child(5) {
--s: 1.7; --t: 1340;
clip-path: inset(60% var(--l) 37% var(--l));
}
.gt-glitch span:nth-child(6) {
--s: -1.2; --t: 1450;
clip-path: inset(66% var(--l) 28% var(--l));
}
/* Red and blue channels over the green word; screen adds light */
.gt-glitch span::before,
.gt-glitch span::after {
content: attr(data-text);
position: absolute;
inset: 0;
mix-blend-mode: screen;
transform: translateX(calc(var(--d) * var(--gt-w)));
}
.gt-glitch span::before { --d: 1; color: var(--gt-red); }
.gt-glitch span::after { --d: -1; color: var(--gt-blue); }
@property --gt-t {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@keyframes gt-clock {
to { --gt-t: 1; }
}
/* Less motion: no glitch, the word just stands still. */
@media (prefers-reduced-motion: reduce) {
.gt-glitch { animation: none; }
}
Tweak →
Glitch Button
Light
/* Glitch Button — on hover the button falls apart into bigger and
bigger pixels (3 → 5 → 8 → 12 px) and gathers back, while bright
R, G, B specks of noise flash over it. Pure CSS + SVG filters.
Works on <button> and <a>: class="gb-btn" + data-text; the SVG with
the filters (#gb-px3 … #gb-px12) must be on the page once.
noise.svg goes next to your CSS file.
Font: Space Grotesk (Google Fonts), falls back to system-ui.
Settings: change the variables below. */
.gb-btn {
--gb-glitch: 0.75; /* seconds one glitch takes */
--gb-repeat: 1; /* glitches per hover (whole number) */
--gb-noise: 1; /* colour noise strength, 0 = none */
--gb-size: 80px; /* text size; padding and corners follow it */
--gb-color: #e8ecef; /* text and border */
--gb-bg: #0e1012;
position: relative;
isolation: isolate;
margin: 0; /* margin: space around the button on your page */
padding: 0.35em 0.8em; /* padding: space between the word and the border */
border: 3px solid var(--gb-color);
border-radius: 0.125em;
background: var(--gb-bg);
font: 700 var(--gb-size) "Space Grotesk", system-ui, sans-serif;
color: var(--gb-color);
text-decoration: none;
cursor: pointer;
}
/* Colour noise: bright R, G, B specks on a transparent background.
They sit on top of the word and get pixelated with it. */
.gb-btn::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: url(noise.svg);
opacity: 0;
pointer-events: none;
}
/* Hover or keyboard focus: the glitch plays --gb-repeat times */
.gb-btn:hover,
.gb-btn:focus-visible {
animation: gb-pixel calc(var(--gb-glitch) * 1s) var(--gb-repeat);
}
.gb-btn:hover::after,
.gb-btn:focus-visible::after {
animation: gb-noise calc(var(--gb-glitch) * 1s) var(--gb-repeat);
}
/* Cells grow fast and gather back a little slower */
@keyframes gb-pixel {
0%, 100% { filter: none; }
10% { filter: url(#gb-px3); }
20% { filter: url(#gb-px5); }
30% { filter: url(#gb-px8); }
43% { filter: url(#gb-px12); }
60% { filter: url(#gb-px8); }
73% { filter: url(#gb-px5); }
87% { filter: url(#gb-px3); }
}
/* The noise jumps to a new spot every few frames and fades out */
@keyframes gb-noise {
0%, 100% { opacity: 0; background-position: 0 0; }
13% { opacity: calc(0.9 * var(--gb-noise)); background-position: 37px 11px; }
30% { opacity: calc(0.5 * var(--gb-noise)); background-position: -23px 41px; }
47% { opacity: var(--gb-noise); background-position: 61px -17px; }
67% { opacity: calc(0.4 * var(--gb-noise)); background-position: -9px 29px; }
87% { opacity: calc(0.15 * var(--gb-noise)); background-position: 47px 5px; }
}
/* Keyboard focus: a quiet ring around the button */
.gb-btn:focus-visible {
outline: 2px solid color-mix(in srgb, var(--gb-color) 50%, transparent);
outline-offset: 0.15em;
}
/* Less motion: no pixels, no noise — the button just reacts with a soft outline. */
@media (prefers-reduced-motion: reduce) {
.gb-btn:hover,
.gb-btn:hover::after,
.gb-btn:focus-visible,
.gb-btn:focus-visible::after { animation: none; }
.gb-btn:hover { outline: 2px solid color-mix(in srgb, var(--gb-color) 50%, transparent); }
}
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