"Text Glitch Animation Example"
Bootstrap 4.1.1 Snippet by techadmin

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div title="GoSnippets">GoSnippets</div> <a target="_blank" href="https://gosnippets.com" class="white-mode">MORE</a>
@import url('https://fonts.googleapis.com/css?family=Fira+Mono:400'); body { display: flex; width: 100vw; height: 100vh; align-items: center; justify-content: center; margin: 0; background-image: linear-gradient(to right, #1B1FA2, #E11E63) } div { color: #fff; font-size: 96px; font-family: 'Fira Mono', monospace; letter-spacing: -7px; animation: glitch 1s linear infinite } @keyframes glitch { 2%, 64% { transform: translate(2px, 0) skew(0deg) } 4%, 60% { transform: translate(-2px, 0) skew(0deg) } 62% { transform: translate(0, 0) skew(5deg) } } div:before, div:after { content: attr(title); position: absolute; left: 0 } div:before { animation: glitchTop 1s linear infinite; clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%) } @keyframes glitchTop { 2%, 64% { transform: translate(2px, -2px) } 4%, 60% { transform: translate(-2px, 2px) } 62% { transform: translate(13px, -1px) skew(-13deg) } } div:after { animation: glitchBotom 1.5s linear infinite; clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%) } @keyframes glitchBotom { 2%, 64% { transform: translate(-2px, 0) } 4%, 60% { transform: translate(-2px, 0) } 62% { transform: translate(-22px, 5px) skew(21deg) } } .white-mode { text-decoration: none; padding: 7px 10px; background-color: #122; border-radius: 3px; color: #FFF; transition: .35s ease-in-out; position: absolute; left: 15px; bottom: 15px } .white-mode:hover { background-color: #FFF; color: #122 }

Related: See More


Questions / Comments: