Created
February 18, 2020 17:24
-
-
Save syncsynchalt/7dbddc4a2adb781b3e7b1e3eab245d05 to your computer and use it in GitHub Desktop.
glitch css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.glitch:after { | |
animation: glitch-animation 5s infinite linear alternate-reverse; | |
background: #fff; | |
clip: rect(0, 900px, 0, 0); | |
color: #222323; | |
content: attr(data-text); | |
left: 50%; | |
transform: translateX(-49%); | |
overflow: hidden; | |
position: absolute; | |
text-shadow: -1px 0 red; | |
top: 0; | |
text-align: center; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment