[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 Image — RGB split and torn strips on hover, pure CSS.
Works on any picture: set --gi-img to your file.
The red, green and blue channels of the photo are real: the picture is
split into three layers and added back with screen, so at rest it looks
exactly like the original.
Settings: change the variables below. */
.gi-photo {
--gi-img: url(photo.jpg);
--gi-width: 240px; /* picture width; the height follows --gi-ratio */
--gi-ratio: 1; /* width / height: 1 = square, 0.8 = 4:5 portrait, 1.5 = landscape */
--gi-shift: 20px; /* how far the red and blue channels swing */
--gi-tear: 72px; /* how far the strips jump sideways */
--gi-glitch: 0.6; /* seconds one glitch lasts */
--gi-pause: 1.9; /* seconds of calm while the cursor stays on */
--gi-red: #ff0000;
--gi-green: #00ff00;
--gi-blue: #0000ff;
position: relative;
isolation: isolate;
width: var(--gi-width);
max-width: 100%;
aspect-ratio: var(--gi-ratio);
margin: 0; /* margin: space around the picture on your page */
/* The picture itself is only its green channel */
background: var(--gi-img) center / cover, var(--gi-green);
background-blend-mode: multiply;
}
/* Hover starts a clock: --gi-t runs 0 → 1 once per glitch + pause */
.gi-photo:hover {
animation: gi-clock calc((var(--gi-glitch) + var(--gi-pause)) * 1s) linear infinite;
}
/* --gi-p: progress of the glitch, 0 → 1, then it stays 1 for the pause */
.gi-photo::before,
.gi-photo::after,
.gi-photo i {
--gi-p: clamp(0, var(--gi-t) * (var(--gi-glitch) + var(--gi-pause)) / var(--gi-glitch), 1);
}
/* Red and blue copies of the picture. Screen adds light:
red + green + blue = the original photo. */
.gi-photo::before,
.gi-photo::after {
content: "";
position: absolute;
inset: 0;
background: inherit;
background-blend-mode: multiply;
mix-blend-mode: screen;
/* A damped swing: two back-and-forths that lose strength */
transform: translateX(calc(
var(--gi-dir) * var(--gi-shift) * 1.14 * (1 - var(--gi-p)) * sin(var(--gi-p) * 720deg)
));
}
.gi-photo::before { --gi-dir: 1; background-color: var(--gi-red); }
.gi-photo::after { --gi-dir: -1; background-color: var(--gi-blue); }
/* Strips: full copies of the photo, cut to thin bands, on top.
Each one starts a little later (--gi-d) and swings on its own. */
.gi-photo i {
position: absolute;
inset: 0;
z-index: 1;
background: var(--gi-img) center / cover;
clip-path: inset(var(--gi-y) 0 var(--gi-b) 0);
--gi-q: clamp(0, (var(--gi-p) - var(--gi-d)) / (1 - var(--gi-d)), 1);
transform: translateX(calc(
var(--gi-k) * var(--gi-tear) * (1 - var(--gi-q)) * sin(var(--gi-q) * 540deg)
));
}
@property --gi-t {
syntax: "<number>";
inherits: true;
initial-value: 0;
}
@keyframes gi-clock {
to { --gi-t: 1; }
}
/* Less motion: the picture stays still. */
@media (prefers-reduced-motion: reduce) {
.gi-photo:hover { 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