"parallax"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/samdbeckham/pen/OPXPNp?q=parallax&limit=all&order=popularity&depth=everything&show_forks=false" /> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'> <style class="cp-pen-styles">* { box-sizing: border-box; } html, body { background-color: #FEDCC8; } .parallax { -webkit-perspective: 100px; perspective: 100px; height: 100vh; overflow-x: hidden; overflow-y: auto; position: absolute; top: 0; left: 50%; right: 0; bottom: 0; margin-left: -1500px; } .parallax__layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .parallax__layer img { display: block; position: absolute; bottom: 0; } .parallax__cover { background: #2D112B; display: block; position: absolute; top: 100%; left: 0; right: 0; height: 2000px; z-index: 2; } .parallax__layer__0 { -webkit-transform: translateZ(-300px) scale(4); transform: translateZ(-300px) scale(4); } .parallax__layer__1 { -webkit-transform: translateZ(-250px) scale(3.5); transform: translateZ(-250px) scale(3.5); } .parallax__layer__2 { -webkit-transform: translateZ(-200px) scale(3); transform: translateZ(-200px) scale(3); } .parallax__layer__3 { -webkit-transform: translateZ(-150px) scale(2.5); transform: translateZ(-150px) scale(2.5); } .parallax__layer__4 { -webkit-transform: translateZ(-100px) scale(2); transform: translateZ(-100px) scale(2); } .parallax__layer__5 { -webkit-transform: translateZ(-50px) scale(1.5); transform: translateZ(-50px) scale(1.5); } .parallax__layer__6 { -webkit-transform: translateZ(0px) scale(1); transform: translateZ(0px) scale(1); } </style></head><body> <div class="parallax"> <div class="parallax__layer parallax__layer__0"> <img src="https://sam.beckham.io/images/articles/firewatch/layer_0.png" /> </div> <div class="parallax__layer parallax__layer__1"> <img src="https://sam.beckham.io/images/articles/firewatch/layer_1.png" /> </div> <div class="parallax__layer parallax__layer__2"> <img src="https://sam.beckham.io/images/articles/firewatch/layer_2.png" /> </div> <div class="parallax__layer parallax__layer__3"> <img src="https://sam.beckham.io/images/articles/firewatch/layer_3.png" /> </div> <div class="parallax__layer parallax__layer__4"> <img src="https://sam.beckham.io/images/articles/firewatch/layer_4.png" /> </div> <div class="parallax__layer parallax__layer__5"> <img src="https://sam.beckham.io/images/articles/firewatch/layer_5.png" /> </div> <div class="parallax__layer parallax__layer__6"> <img src="https://sam.beckham.io/images/articles/firewatch/layer_6.png" /> </div> <div class="parallax__cover"></div> </div> <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> </body></html>

Related: See More


Questions / Comments: