Skip to content

Instantly share code, notes, and snippets.

@NdYAG
Created March 27, 2013 06:29
Show Gist options
  • Save NdYAG/5252175 to your computer and use it in GitHub Desktop.
Save NdYAG/5252175 to your computer and use it in GitHub Desktop.
Untitled
.wrapper {
background: url('http://daix.me/demo/img/reese.jpg') no-repeat fixed;
width: 900px;
height: 600px;
}
.lens {
position: relative;
width: 100px;
height: 100px;
top: 10%;
left: 50%;
cursor: move;
z-index: 1;
}
.lens:after {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
border-radius: 100px;
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.2);
-moz-box-shadow: 0 0 5px rgba(0,0,0,.2);
box-shadow: 0 0 5px rgba(0,0,0,.2);
background: url('http://daix.me/demo/img/reese.jpg') no-repeat fixed;
-webkit-transform: scale(1.2);
-moz-transform: scale(1.2);
transform: scale(1.2);
z-index: -1;
}
<div class="wrapper">
<div class="lens">
</div>
</div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment