The text in this code is white and the background is black. This text automatically has a glitch effect. This effect is small and can attract the audience's attention. Using simple effects reduces both the coding volume and the website out of monotony and simplicity.
HTML
<!-- This script got from www.devanswer.com -->
<h2>devanswer.com</h2><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Developers Answer</a></div>
CSS
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000;
}
h2 {
color: #fff;
font-family: sans-serif;
font-size: 6em;
animation: animate 0.5s linear infinite;
}
@keyframes animate {
0%, 100% {
text-shadow: -1.5px -1.5px 0 #0ff, 1.5px 1.5px 0 #f00;
}
25% {
text-shadow: 1.5px 1.5px 0 #0ff, -1.5px -1.5px 0 #f00;
}
50% {
text-shadow: 1.5px -1.5px 0 #0ff, -1.5px 1.5px 0 #f00;
}
75% {
text-shadow: -1.5px -1.5px 0 #0ff, -1.5px -1.5px 0 #f00;
}
}