Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created July 19, 2017 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeMyUI/051a02779b03c8542e768d6edab792eb to your computer and use it in GitHub Desktop.
Save CodeMyUI/051a02779b03c8542e768d6edab792eb to your computer and use it in GitHub Desktop.
Looking through Dirty Glass
<div class="wasteland"></div>
<div class="glass"></div>
body {
margin:0;
}
.wasteland {
animation:zoomIn 10s linear infinite alternate;
background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/71829/wasteland.jpg);
background-size:cover;
height:100vh;
position:fixed;
width:100vw;
}
.glass {
animation:zoomIn 10s linear infinite alternate-reverse;
background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/71829/5791996587_7b192ffbf7_o.jpg);
background-size:cover;
height:100vh;
opacity:.3;
position:fixed;
width:100vw;
}
@keyframes zoomIn {
0% {
transform:scale(1);
}
100% {
transform:scale(1.5);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment