[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
/* Neon Border — a button framed by a neon tube. Pure CSS.
Two highlights run around the tube towards each other; now and then
the tube dies with a flicker, stays dark for a moment and ignites
again with a flash, like a real neon tube.
Works on <button> and <a>: class="nb-btn" + data-text.
Everything is sized in em from --nb-size, so the button grows with
its text. Font: Space Grotesk (Google Fonts), falls back to system-ui.
Settings: change the variables below. */
.nb-btn {
--nb-pause: 6; /* seconds the tube stays lit between flicker-outs */
--nb-lap: 6; /* seconds for the highlights to go round */
--nb-glow: 1; /* glow strength, 0.2 – 2 */
--nb-size: 72px; /* text size; the button follows it */
--nb-color: #d4ff00; /* tube and word */
--nb-flash: #ffffff; /* hot centre of the highlights */
position: relative;
margin: 0; /* margin: space around the button on your page */
padding: 0.35em 0.8em; /* padding: space between the word and the tube */
border: 0;
border-radius: 0.25em;
background: #0e1012;
font: 700 var(--nb-size) "Space Grotesk", system-ui, sans-serif;
color: var(--nb-color);
text-shadow: 0 0 calc(0.17em * var(--nb-glow))
color-mix(in srgb, var(--nb-color) 60%, transparent);
text-decoration: none;
cursor: pointer;
/* A clock: --nb-t runs 0 → 1 once per cycle (lit + 2.1 s off and on) */
animation: nb-clock calc((var(--nb-pause) + 2.1) * 1s) linear infinite;
/* --nb-s: seconds since the tube started to die (negative while lit) */
--nb-s: calc(var(--nb-t) * (var(--nb-pause) + 2.1) - var(--nb-pause));
/* Tube brightness: dies in 0.3 s with four flickers, dark until 1.6 s,
ignites with four flickers. Each line is one jump: amount × ramp. */
--nb-o: calc(1
- 0.8 * clamp(0, var(--nb-s) / 0.064, 1)
+ 0.6 * clamp(0, (var(--nb-s) - 0.064) / 0.04, 1)
- 0.7 * clamp(0, (var(--nb-s) - 0.104) / 0.056, 1)
+ 0.5 * clamp(0, (var(--nb-s) - 0.16) / 0.04, 1)
- 0.6 * clamp(0, (var(--nb-s) - 0.2) / 0.08, 1)
+ 0.5 * clamp(0, (var(--nb-s) - 1.6) / 0.08, 1)
- 0.45 * clamp(0, (var(--nb-s) - 1.68) / 0.04, 1)
+ 0.65 * clamp(0, (var(--nb-s) - 1.72) / 0.08, 1)
- 0.6 * clamp(0, (var(--nb-s) - 1.8) / 0.04, 1)
+ 0.9 * clamp(0, (var(--nb-s) - 1.84) / 0.08, 1));
/* ...and when it's fully on, a flash that settles */
--nb-b: calc(1
+ clamp(0, (var(--nb-s) - 1.84) / 0.08, 1)
- clamp(0, (var(--nb-s) - 1.92) / 0.18, 1));
}
/* The tube: a line and its glow, inside and out */
.nb-btn::after {
content: "";
position: absolute;
inset: -1px;
border-radius: inherit;
border: 2px solid color-mix(in srgb, var(--nb-color) 85%, transparent);
box-shadow:
0 0 0 1px color-mix(in srgb, var(--nb-color) 25%, transparent),
0 0 calc(0.25em * var(--nb-glow)) 2px color-mix(in srgb, var(--nb-color) 50%, transparent),
0 0 calc(0.83em * var(--nb-glow)) color-mix(in srgb, var(--nb-color) 20%, transparent),
inset 0 0 calc(0.25em * var(--nb-glow)) color-mix(in srgb, var(--nb-color) 20%, transparent);
opacity: var(--nb-o);
filter: brightness(var(--nb-b));
pointer-events: none;
}
/* Two highlights run towards each other. A conic gradient spins
(--nb-a); the mask keeps only a 4px ring along the edge. */
.nb-btn::before {
content: "";
position: absolute;
inset: -2px;
z-index: 1;
padding: 4px;
border-radius: inherit;
background:
conic-gradient(from var(--nb-a), transparent 78%,
var(--nb-color) 86%, var(--nb-flash) 91%, var(--nb-color) 95%, transparent),
conic-gradient(from calc(180deg - var(--nb-a)),
transparent 86%, var(--nb-color) 93%, transparent);
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
mask-composite: exclude;
opacity: var(--nb-o);
filter: brightness(var(--nb-b));
pointer-events: none;
animation: nb-spin calc(var(--nb-lap) * 1s) linear infinite;
}
/* Keyboard focus: a quiet ring outside the tube */
.nb-btn:focus-visible {
outline: 2px solid color-mix(in srgb, var(--nb-color) 50%, transparent);
outline-offset: 0.2em;
}
@property --nb-a {
syntax: "<angle>";
inherits: false;
initial-value: 0deg;
}
@keyframes nb-spin {
to { --nb-a: 360deg; }
}
@property --nb-t {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@keyframes nb-clock {
to { --nb-t: 1; }
}
/* Less motion: the tube just glows — no highlights, no flicker. */
@media (prefers-reduced-motion: reduce) {
.nb-btn,
.nb-btn::before { 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