Skip to content

Instantly share code, notes, and snippets.

@viktorViktor
Created July 31, 2014 15:57
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 viktorViktor/e44a2f39f97945d99bef to your computer and use it in GitHub Desktop.
Save viktorViktor/e44a2f39f97945d99bef to your computer and use it in GitHub Desktop.
A Pen by Viktor.
<div class="icon">
<div class="layer one"></div>
<div class="layer two"></div>
<div class="layer three"></div>
<div class="layer four"></div>
</div>
.icon {
width: 120px;
height: 120px;
position: relative;
}
.layer {
position: absolute;
width: 100%;
height: 100%;
background-repeat: no-repeat;
top: 0px;
left: 0px;
}
.one {background: url(http://dev.viktort.se/one.png);}
.two {background: url(http://dev.viktort.se/two.png);}
.three {background: url(http://dev.viktort.se/three.png);}
.four {background: url(http://dev.viktort.se/four.png);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment