-
-
Save hugeuser/8978988 to your computer and use it in GitHub Desktop.
"Scroll-Jacking" in Full Screen
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
#projects { | |
height:100%; | |
} | |
.slide { | |
position: absolute; | |
top:0; | |
left:0; | |
height: 0; | |
width: 100%; | |
// this would be vendor prefixed: | |
transition: height 0.9s ease-in-out; | |
} | |
// so that slides can transition from bottom-up | |
.slide:nth-child(1) { z-index:10 } | |
.slide:nth-child(2) { z-index:9 } | |
.slide:nth-child(3) { z-index:8 } | |
.active.slide { | |
height: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment