Skip to content

Instantly share code, notes, and snippets.

@hugeuser
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hugeuser/8978988 to your computer and use it in GitHub Desktop.
Save hugeuser/8978988 to your computer and use it in GitHub Desktop.
"Scroll-Jacking" in Full Screen
#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