Siber-punk tarzı glitch metin animasyonu
<style>
.glitch-wrapper {
display: flex;
justify-content: center;
align-items: center;
height: 200px;
background-color: #000;
padding: 20px;
}
.glitch {
position: relative;
font-size: 50px;
font-weight: bold;
color: #fff;
letter-spacing: 3px;
z-index: 1;
}
.glitch::before,
.glitch::after {
content: attr(data-text);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.glitch::before {
color: #ff00ff;
animation: glitch-effect 3s infinite;
}
.glitch::after {
color: #00ffff;
animation: glitch-effect 2s infinite reverse;
}
@keyframes glitch-effect {
0% {
transform: translate(0);
}
20% {
transform: translate(-5px, 5px);
}
40% {
transform: translate(-5px, -5px);
}
60% {
transform: translate(5px, 5px);
}
80% {
transform: translate(5px, -5px);
}
100% {
transform: translate(0);
}
}
</style>
<div class="glitch-wrapper">
<div class="glitch" data-text="GLITCH EFEKT">GLITCH EFEKT</div>
</div>
<head>
bölümüne CSS kodlarını ekleyin</body>
etiketinden önce ekleyin