Created
July 10, 2012 16:54
-
-
Save ninadingole/3084662 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
margin:3em; | |
} | |
.box{ | |
width:880px; | |
height:330px; | |
border-radius:.5em; | |
} | |
.slider{ | |
width:520px; | |
overflow:hidden; | |
display:inline-block; | |
transform:skewX(-20deg); | |
margin-left:-76px; | |
border-right:10px solid ghostwhite; | |
pointer-events:none; | |
transition:width 1.2s ease-in-out; | |
} | |
.box a{ | |
display:block; | |
width:100%; | |
height:100%; | |
} | |
.sunrise{ | |
background: url(https://dl.dropbox.com/u/444684/splitfeature/sunrise.jpg) no-repeat; | |
position:absolute; | |
box-shadow:0 0 10px rgba(0,0,0,.7); | |
} | |
.sunset{ | |
margin-left:76px; | |
pointer-events:auto; | |
transform:skewX(20deg); | |
background: url(https://dl.dropbox.com/u/444684/splitfeature/sunset-elephant.jpg) no-repeat; | |
} | |
.slider:hover{ | |
width:760px; | |
} | |
.sunrise:hover + .slider{ | |
width:250px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div class="box sunrise"> | |
<a href="#box1"></a> | |
</div> | |
<div class="slider"> | |
<div class="box sunset"> | |
<a href="#box2"></a> | |
</div> | |
</div> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","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