Created
July 31, 2012 20:59
-
-
Save zerolab/3220492 to your computer and use it in GitHub Desktop.
Scrolling stack effect
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
/* | |
Stack effect a la http://googleventures.com | |
<div id="layer_base"></div> | |
<div id="layer_one"></div> | |
*/ | |
#layer_base { | |
height: 100px; | |
width :100%; | |
position: static; | |
top: 0; | |
z-index: -2; | |
} | |
#layer_one { | |
margin-top: 100px; | |
position: relative; | |
z-index: 2; | |
/* box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2); */ /* fancy */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment