Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <header>
    <img src="http://nchaconasdesign.com/wp-content/uploads/2018/05/cropped-nick-27.png" alt="logo">
  <h1>CSS Parallax Image Scroll</h1>
  <p>No Javascript</p>
</header>
<div class="main-contain">
  <h2>Work Samples</h2>
  <h3>Wallpapers optimized for Mobile Devices</h3>
            <div class="work">
                  <img class="anim" src="https://uc65feecee7b82ed8a9a6ea0deb6.previews.dropboxusercontent.com/p/thumb/AAKwInTbo0dO_MmXpi1fPzC4hYvuMJK2Uc77CWUVKXOAZ40OKRVCOBB3i6wO2GDjEo84uNRxHpQU9FqDKu-IicNd5AOTIVrkYVkzeK1A0gsS2rCnMloPY_sJ9v9gcaTd-UTiFESt1En3KIPE-uzez-g_gdApR7ARUSR8QF6H_wm9jOcgxX2Txw2-KtcYNF4YoNXj9JnAmOejAL5jb_G3KpbQ_AwjJwxr-UnEuLXhrNugIA/p.jpeg?size=2048x1536&size_mode=3" alt="project img">
                  <img class="anim" src="https://uca1293abbd65a6c8a855f95b949.previews.dropboxusercontent.com/p/thumb/AAJoxkW2tpgmuNvIlxY2blmd0wW87GqnCtbrLVkk7nYHmMlepkfm28OqhKH1W06ayQTb9eXrUaYaItXj5qmRfRmuiN-H4j_WLDQRABg-WS_nJI5heFFBDKksAv53vN8XOVNnxylP4aYoCVdfYdA9zfPdJSpi9QcJiRseCcWpiRTedMQ78AexhBSx1vVjVXqTcUTUrTn2jec6OqMucAYDFyFiY0zu9DZAU-5DQoPnErhAQg/p.jpeg?size=2048x1536&size_mode=3" alt="project img">
                  <img class="anim" src="https://uc4ef80d005ee0b8062ae77ef847.previews.dropboxusercontent.com/p/thumb/AAKlySbbTUKGs8QA7eh33WYNPnRBs1G6uHupTnWoWXOoEsbKirjfUc4y3--ve7lcqumoTWmeBcfUrHlVVjAlRSr-0_HyIRkipgGydcj1L4dfoA_VXPdnIjEbUn89BdHJTl-x2ctIeEajylxGe0fu3MGtx96lZglQEdSUww9m1VeCnvlQWyvguVtq8JRFV74o49Kt-NOsDEModZJ-xTUUTQ6u51iFkgOUxNkUjhAF2dnWmg/p.jpeg?size=2048x1536&size_mode=3" alt="project img">
                  <img class="anim" src="https://ucc8f223380fedf590debcea8c59.previews.dropboxusercontent.com/p/thumb/AAKa62txHrEC1M1emgOmfPVw2zWYSpXV02Kd3BCPytp_fol3_5DTG4Sl4AUGbWX2LaHuhTQN8IciL815Vhv-45uI-EJLBzNTtbMrpqPIFu0tq5S1cMz0fLXRF2JabXKi78e-7uPnSOsosbv2SzyMFwW6Eq1I6F8imjNj5XogCz72QGD9C0pIwHDKAwMwe4o9N8EJhQPvAgVfk4krDPY2fB2-mvUO6FJMrMBbNBUTtHaaDQ/p.jpeg?size=2048x1536&size_mode=3" alt="project img">
            </div>

            <div class="header2">
                  <h1 class="anim">Other Projects</h1>
                  <p class="anim">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus sit necessitatibus, eos minima odio, ea ipsam, dicta nihil praesentium soluta fugit aspernatur nisi enim libero quos omnis? Optio suscipit quibusdam incidunt maiores repudiandae laudantium eaque, obcaecati totam architecto aut ab?</p>
            </div>

            <div class="work2">
                  <img class="anim" src="https://uc1cc2e37529108bebe3f39de342.previews.dropboxusercontent.com/p/thumb/AALWAijMHC3w4qk9KOr65oRojDvPLal6sTIRCsI-ryQH1RwU2aEIEBUJBv83HnC5WZwqoy3ltSulmG1Y0vvtg3sJ26tA35pL06h51dCaJJnzdnebBGDn4h8ODhfjKJ9SF2m8ht5SS3htWy0fjGVcYcW4AtElsOVVQYjYY0ZAhzy1li4cywiTlKlxG4t6U3aPDAIc4druh-714EMUdFpa1kRxXjPGQAqtSB65n2QgvSlUUQ/p.jpeg?size=2048x1536&size_mode=3" alt="project img">
              <p>
                Project 5
              </p>
                  <img class="anim" src="https://uc1cc2e37529108bebe3f39de342.previews.dropboxusercontent.com/p/thumb/AALWAijMHC3w4qk9KOr65oRojDvPLal6sTIRCsI-ryQH1RwU2aEIEBUJBv83HnC5WZwqoy3ltSulmG1Y0vvtg3sJ26tA35pL06h51dCaJJnzdnebBGDn4h8ODhfjKJ9SF2m8ht5SS3htWy0fjGVcYcW4AtElsOVVQYjYY0ZAhzy1li4cywiTlKlxG4t6U3aPDAIc4druh-714EMUdFpa1kRxXjPGQAqtSB65n2QgvSlUUQ/p.jpeg?size=2048x1536&size_mode=3" alt="project img">
              <p>
                Project 6
              </p>
            </div>
</div>
              
            
!

CSS

              
                html{
  overflow: hidden;
  height: 100%;
}

body{
  font-family: "Ubuntu";
  color: black;
  margin: 0;
  padding: 0;
  perspective: 1px;
  transform-style: preserve-3d;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  
}

header {
  box-sizing: border-box;
  min-height: 100vh;
  width: 100vw;
  padding: 30vw 0 5vw;
  position: relative;
  transform-style: inherit;
 
}

header img {
  width: 12vw;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: -50px;
  
}

header h1 {
  font-size: 36px;
}

header, header:before {
  background: 50% 50% / cover;
  
}

header::before {
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  content: "";
  position: absolute;
  display: block;
  background-image: url(https://images.unsplash.com/photo-1536530719072-4cf7d4d7018e?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=82059643ae34f6a5cd23f601641a14cc&auto=format&fit=crop&w=667&q=80);
  background-size: cover;
  transform-origin: center center 0;
  transform: translateZ(-1px) scale(2);
  z-index: -1;
  min-height: 100vh;
}

header * {
  font-weight: normal;
  letter-spacing: 0.3em;
  text-align: center;
  color: white;
}

.main-contain {
  margin-top: 500px;
  background-color: white;
}

h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 300;
  padding-top: 50px;
}

h3 {
  text-align: center;
  font-weight: 300;
}

h1.anim{
      text-align: center;
      margin-bottom: 60px;
}
 
p {
      font-size: 16px;
      font-weight: 300;
}

p.anim{
      width: 60%;
      margin-bottom: 60px;
      margin-left: auto;
      margin-right: auto;
}



 
/* .work */
 
.work {
      text-align: center;
      width: 100%;
}
 
.work img {
      margin: 1%;
      width: 45%;
      transition: .4s ease;
}

.work img:hover{
  cursor: pointer;
  box-shadow: 0px 0px 4px red;
  -webkit-box-shadow: 0px 0px 4px #111111;
}

/* header2 */
 
.header2 {
      margin: 100px 200px auto;
}
 
/* .work2 */
.work2 {
      width: 100%;
      text-align: center;
}
 
.work2 img {
      margin: 1%;
      width: 94%;
}
 
@media only screen and (max-width: 991px) {
  
  header img{
    width: 30%;
  }
  
  header p {
            
            width: 90%;
            margin: auto;
      }
 
      .work img {
            margin: 2%;
            width: 90%;
      }
 
      .header2 {
            margin: 130px 0 40px 12px;
      }
 
      .header2 h1 {
            font-size: 36px;
      }
 
      .header2 p {
            width: 90%;
      }
 
      .work2 img {
            margin: 2%;
      }
  
}
              
            
!

JS

              
                
              
            
!
999px

Console