Glitch image


glitch

Glitch effect.


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Pure CSS Glith Effects</title>
<link rel="stylesheet" href="glitch.css">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: "ca-pub-9378326636860315",
          enable_page_level_ads: true
     });
</script>
<style type="text/css">
body
{
margin: 0;
padding: 0;
}
section
{
position: relative;
width: 100%;
height: 100vh;
background: url(bg.jpg);
}
section:before
{
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url(bg.jpg);
opacity: .5;
mix-blend-mode: hard-light;
}
section:hover:before
{
animation: animate .2s linear infinite;
}
@keyframes animate
{
0%
{
background-position: 0 0;
filter: hue-rotate(0deg);
}
10%
{
background-position: 5px 0;
}
20%
{
background-position: -5px 0;
}
30%
{
background-position: 15px 0;
}
40%
{
background-position: -5px 0;
}
50%
{
background-position: -25px 0;
}
60%
{
background-position: -50px 0;
}
70%
{
background-position: 0 -20px;
}
80%
{
background-position: -60px -20px;
}
81%
{
background-position: 0 0;
}
100%
{
background-position: 0 0;
filter: hue-rotate(360deg);
}
}
</style>
</head>
<body>
<section></section>
</body>
</html>