.text {
    position: relative;
    text-transform: uppercase;
    font-size: 60px;
    text-align: center;
    letter-spacing: 14px;
    overflow: hidden;
}

.text::before, .text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.text::before {
    color: rgba(255, 0, 193);
    left: 1px;
    text-shadow: -1px 0 #000;
    animation: glitch-effect 3s infinite;
}

.text::after {
    color: rgba(52, 152, 219);
    left: -1px;
    text-shadow: -1px 0 #000;
    animation: glitch-effect2 2s infinite;
}

@keyframes glitch-effect {
    0% { transform: skew(5deg); }
    5%{clip:rect(44px,9999px,56px,1px)}
    10%{clip:rect(55px,9999px,60px,1px)}
    20%{clip:rect(20px,9999px,30px,1px)}
    30%{clip:rect(50px,9999px,60px,1px)}
    40%{clip:rect(10px,9999px,20px,1px)}
    50%{clip:rect(60px,9999px,70px,1px)}
    60%{clip:rect(30px,9999px,40px,1px)}
    70%{clip:rect(70px,9999px,80px,1px)}
    80%{clip:rect(40px,9999px,50px,1px)}
    90%{clip:rect(80px,9999px,90px,1px)}
    100%{clip:rect(50px,9999px,60px,1px)}
}

@keyframes glitch-effect2 {
    0% { transform: skew(-10deg); }
    5%{clip:rect(48px,9999px,58px,-1px)}
    10%{clip:rect(60px,9999px,70px,-1px)}
    20%{clip:rect(25px,9999px,35px,-1px)}
    30%{clip:rect(55px,9999px,65px,-1px)}
    40%{clip:rect(15px,9999px,25px,-1px)}
    50%{clip:rect(65px,9999px,75px,-1px)}
    60%{clip:rect(35px,9999px,45px,-1px)}
    70%{clip:rect(75px,9999px,85px,-1px)}
    80%{clip:rect(45px,9999px,55px,-1px)}
    90%{clip:rect(85px,9999px,95px,-1px)}
    100%{clip:rect(55px,9999px,65px,-1px)}
}
