Created
November 1, 2020 09:30
-
-
Save motsu0/633c7aa73277db7e04e3afa72993f544 to your computer and use it in GitHub Desktop.
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
.page-outer{ | |
position: sticky; | |
bottom: 0; | |
box-shadow: 0 10px 5px -5px rgba(0,0,0,.5); | |
} | |
.page-outer.z1{ | |
z-index: 10; | |
} | |
.page-outer.z2{ | |
z-index: 9; | |
} | |
.page-outer.z3{ | |
z-index: 8; | |
} | |
.page-outer.z4{ | |
z-index: 7; | |
} | |
.page-outer.z5{ | |
z-index: 6; | |
} | |
.page-outer.z6{ | |
z-index: 5; | |
} | |
.page-outer.z7{ | |
z-index: 4; | |
} | |
.page-outer.z8{ | |
z-index: 3; | |
} | |
.page{ | |
display: block; | |
width: 100%; | |
height: 100vh; | |
object-fit: cover; | |
} |
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
<div class="page-outer z1"><img src="path/to/img" alt="alt" class="page"></div> | |
<div class="page-outer z2"><img src="path/to/img" alt="alt" class="page"></div> | |
<div class="page-outer z3"><img src="path/to/img" alt="alt" class="page"></div> | |
<div class="page-outer z4"><img src="path/to/img" alt="alt" class="page"></div> | |
<div class="page-outer z5"><img src="path/to/img" alt="alt" class="page"></div> | |
<div class="page-outer z6"><img src="path/to/img" alt="alt" class="page"></div> | |
<div class="page-outer z7"><img src="path/to/img" alt="alt" class="page"></div> | |
<div class="page-outer z8"><img src="path/to/img" alt="alt" class="page"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment