[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
/* Broken Neon Sign — flickering neon text.
Works on any text element (h1, a, span, button...):
give it class="ns-sign" and data-text with the same text.
A | in the text starts a new line: data-text="SEND|MONEY".
The small script splits the word into letters ("tubes")
and makes one of them flicker now and then.
Settings: change the variables below. */
.ns-sign {
--ns-color: #ffe600; /* tube colour */
--ns-halo: #ff9e00; /* outer, warmer glow */
--ns-glow: 1; /* glow strength, 0.5 – 2 */
--ns-pause: 4; /* seconds between flickers (on average) */
--ns-size: 120px;
margin: 0;
font: 700 var(--ns-size)/1.15 "Space Grotesk", system-ui, sans-serif;
letter-spacing: 0.1em;
text-align: center;
white-space: nowrap;
}
/* Every letter is a glass tube: a pale hot core + glow.
Lit from the very first frame: no dark start. */
.ns-sign i {
--ns-lit: color-mix(in srgb, var(--ns-color) 25%, #fff);
--ns-shadow:
0 0 calc(4px * var(--ns-glow)) var(--ns-color),
0 0 calc(14px * var(--ns-glow)) var(--ns-color),
0 0 calc(34px * var(--ns-glow)) var(--ns-color),
0 0 calc(80px * var(--ns-glow)) var(--ns-halo);
--ns-dead: color-mix(in srgb, var(--ns-color) 14%, transparent);
font-style: normal;
color: var(--ns-lit);
text-shadow: var(--ns-shadow);
}
/* Added by the script for a moment: a spark right after the start,
a short stutter or a full die-and-catch. ns-flare: when a letter catches
again, the gas swells 10% brighter for 0.2 s */
.ns-sign i.ns-spark { animation: ns-spark 1.1s steps(1) 0.25s, ns-flare 0.2s ease-in-out 0.82s; } /* lit again at 52% */
.ns-sign i.ns-blink { animation: ns-blink 0.5s steps(1), ns-flare 0.2s ease-in-out 0.3s; } /* lit again at 60% */
.ns-sign i.ns-die { animation: ns-die 1.4s steps(1), ns-flare 0.2s ease-in-out 1.19s; } /* lit again at 85% */
/* on → off → bright flash → off → on: the tired tube sparks as the sign starts */
@keyframes ns-spark {
0%, 52%, 100% { color: var(--ns-lit); text-shadow: var(--ns-shadow); filter: none; }
14%, 34% { color: var(--ns-dead); text-shadow: none; filter: none; }
26% { color: var(--ns-lit); text-shadow: var(--ns-shadow); filter: brightness(1.4); }
}
@keyframes ns-blink {
0%, 40% { color: var(--ns-dead); text-shadow: none; }
20%, 60%, 100% { color: var(--ns-lit); text-shadow: var(--ns-shadow); }
}
/* Caught again: a short, smooth swell of brightness, then back to normal */
@keyframes ns-flare {
50% { filter: brightness(1.1); }
}
@keyframes ns-die {
0%, 12%, 30%, 75% { color: var(--ns-dead); text-shadow: none; }
8%, 22%, 68%, 85%, 100% { color: var(--ns-lit); text-shadow: var(--ns-shadow); }
}
/* Less motion: the sign simply burns. */
@media (prefers-reduced-motion: reduce) {
.ns-sign i { animation: none !important; }
}
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 →
Neon Border
Light
/* 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 →
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