Online CSS Text Glitch Effect Generator
Generate a CSS snippet for a text glitch effect. Enter your text and get HTML + CSS you can copy. Client-side only.
<!-- HTML -->
<span class="glitch-text" data-text="GLITCH">GLITCH</span>
/* CSS */
.glitch-text {
position: relative;
display: inline-block;
color: #fff;
font-weight: 700;
}
.glitch-text::before,
.glitch-text::after {
content: attr(data-text);
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.glitch-text::before {
color: #0ff;
animation: glitch-1 0.3s infinite;
clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
transform: translate(-2px, 2px);
}
.glitch-text::after {
color: #f0f;
animation: glitch-2 0.3s infinite;
clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
transform: translate(2px, -2px);
}
@keyframes glitch-1 {
0% { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
25% { clip-path: polygon(0 15%, 100% 15%, 100% 55%, 0 55%); }
50% { clip-path: polygon(0 60%, 100% 60%, 100% 90%, 0 90%); }
75% { clip-path: polygon(0 25%, 100% 25%, 100% 75%, 0 75%); }
100% { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
}
@keyframes glitch-2 {
0% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }
25% { clip-path: polygon(0 45%, 100% 45%, 100% 85%, 0 85%); }
50% { clip-path: polygon(0 10%, 100% 10%, 100% 40%, 0 40%); }
75% { clip-path: polygon(0 35%, 100% 35%, 100% 95%, 0 95%); }
100% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }
}Frequently Asked Questions
- What is a CSS glitch effect?
- A visual effect that makes text look like it's glitching—often using pseudo-elements, clip-path, and animation with offset shadows or duplicates.
- Do I need to copy both HTML and CSS?
- Yes. The tool outputs a small HTML snippet and the CSS. Paste the CSS into your stylesheet and use the HTML structure where you want the glitch text.
- Can I customize colors and speed?
- The generated snippet uses CSS variables or simple values you can edit (e.g. color, animation-duration) after copying.
Related Text Tools
Word Counter
Count words, characters, sentences, and paragraphs. Perfect for writers and students.
Case Converter
Convert text between uppercase, lowercase, title case, and sentence case instantly.
Morse Code Translator
Translate text to Morse code and Morse code to text. Supports letters, numbers, and punctuation.
Lorem Ipsum Generator
Generate placeholder text for designs and mockups. Choose paragraphs, sentences, or words.
Diff Checker
Compare two texts side by side. Highlight differences between documents, code, or strings.
Character Counter
Count characters with and without spaces. Real-time counts for tweets, meta descriptions, and forms.