Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <div class="section animate animate--section">
  <h1 class="number animate animate--heading" style="visibility: hidden" data-wow-offset="10">1</h1>
  <div style="padding-left: 30px;padding-right: 30px">
    <h2 class="animate animate--heading" style="visibility: hidden;margin-bottom: 30px" data-wow-offset="10" data-wow-delay="0.5s">Section Title</h2>
  <p class="animate animate--paragraph" style="visibility: hidden" data-wow-offset="10" data-wow-delay="1s">Cillum Lorem ea laboris proident do sit cillum duis sint laboris officia non sunt. Labore pariatur eiusmod dolore velit non in id id ea exercitation laboris aliqua sint irure. Dolor tempor amet adipisicing anim ex incididunt aliqua nisi est quis. Est sit esse quis voluptate ea adipisicing qui. Excepteur voluptate ullamco elit sit ea cupidatat consectetur. Deserunt ea esse minim proident duis.</p>
  </div>
  <div>
    <div class="animate animate--img" data-wow-offset="10" data-wow-delay="1s">
      <img src="https://images.pexels.com/photos/838696/pexels-photo-838696.jpeg?auto=compress&cs=tinysrgb&h=500&w=500" alt="">
    </div>
  </div>
  
</div>
<div class="section animate animate--section" style="background-image: url(https://images.pexels.com/photos/1301903/pexels-photo-1301903.jpeg?auto=compress&cs=tinysrgb&h=1000&w=2040);">
  <h1 class="number animate animate--heading" style="visibility: hidden" data-wow-offset="10">2</h1>
  <div style="padding-left: 30px">
    <h2 class="animate animate--heading" style="visibility: hidden;margin-bottom: 20px" data-wow-offset="10" data-wow-delay="0.5s">Section Title</h2>
  <p class="animate animate--paragraph" style="visibility: hidden" data-wow-offset="10" data-wow-delay="1s">Cillum Lorem ea laboris proident do sit cillum duis sint laboris officia non sunt. Labore pariatur eiusmod dolore velit non in id id ea exercitation laboris aliqua sint irure. Dolor tempor amet adipisicing anim ex incididunt aliqua nisi est quis. Est sit esse quis voluptate ea adipisicing qui. Excepteur voluptate ullamco elit sit ea cupidatat consectetur. Deserunt ea esse minim proident duis.</p>
  </div>
</div>
<div class="section animate animate--section" style="background-image: url(https://images.pexels.com/photos/838696/pexels-photo-838696.jpeg?auto=compress&cs=tinysrgb&h=650&w=940);">
  <h1 class="number animate animate--heading" style="visibility: hidden" data-wow-offset="10">3</h1>
  <div style="padding-left: 30px">
    <h2 class="animate animate--heading" style="visibility: hidden;margin-bottom: 20px" data-wow-offset="10" data-wow-delay="0.5s">Section Title</h2>
  <p class="animate animate--paragraph" style="visibility: hidden" data-wow-offset="10" data-wow-delay="1s">Cillum Lorem ea laboris proident do sit cillum duis sint laboris officia non sunt. Labore pariatur eiusmod dolore velit non in id id ea exercitation laboris aliqua sint irure. Dolor tempor amet adipisicing anim ex incididunt aliqua nisi est quis. Est sit esse quis voluptate ea adipisicing qui. Excepteur voluptate ullamco elit sit ea cupidatat consectetur. Deserunt ea esse minim proident duis.</p>
  </div>
</div>
<div class="section animate animate--section" style="background-image: url(https://images.pexels.com/photos/591216/pexels-photo-591216.jpeg?auto=compress&cs=tinysrgb&h=650&w=940);">
  <h1 class="number animate animate--heading" style="visibility: hidden" data-wow-offset="10">4</h1>
  <div style="padding-left: 30px">
    <h2 class="animate animate--heading" style="visibility: hidden;margin-bottom: 20px" data-wow-offset="10" data-wow-delay="0.5s">Section Title</h2>
  <p class="animate animate--paragraph" style="visibility: hidden" data-wow-offset="10" data-wow-delay="1s">Cillum Lorem ea laboris proident do sit cillum duis sint laboris officia non sunt. Labore pariatur eiusmod dolore velit non in id id ea exercitation laboris aliqua sint irure. Dolor tempor amet adipisicing anim ex incididunt aliqua nisi est quis. Est sit esse quis voluptate ea adipisicing qui. Excepteur voluptate ullamco elit sit ea cupidatat consectetur. Deserunt ea esse minim proident duis.</p>
  </div>
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}
.section {
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  padding: 15vh;
  display: flex;
  // flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  
  position: relative;
  
  &:before {
    content: "";
    background-image: url(https://images.pexels.com/photos/838696/pexels-photo-838696.jpeg?auto=compress&cs=tinysrgb&h=1000&w=2040);
    filter: blur(5px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  h1, h2 {
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  h1.number {
    width: 70px;
    height: 70px;
    background-color: rgba(0,0,0,0.6);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    display: block;
    padding-top: 15px;
    margin-bottom: 10px;
  }
  h2 {
    display: inline-block;
    position: relative;
    &:after {
      content: "";
      background-color: rgba(0, 0, 0, 0.3);
      position: absolute;
      top: 12px;
      left: -15px;
      display: block;
      height: 100%;
      width: 100%;
      z-index: -1;
      padding: 0px 5px;
      filter: blur(1px);
    }
  }
}

@keyframes fadeIn {
  0%   { opacity: 0; transform: translate(0, 25vh) }
  100% { opacity: 1; transform: translate(0, 0)}
}

@keyframes headingAnimation {
  0%   { opacity: 0; transform: translate(0, -100px)}
  50%   { opacity: 0; transform: translate(0, -50px)}
  100% { opacity: 1; transform: translate(0, 0px)}
}

@keyframes imgAnimation {
  0%   { padding-top: 0%; }
  100% { padding-top: 66%;}
}

.animate--section.animated {
  animation: fadeIn 1.5s;
}

.animate--heading {
  &.animated {
    opacity: 0;
    animation: headingAnimation 1.5s;
  }
}
.animate--paragraph {
  color: #FFF;
  max-width: 570px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 1px 1px 20px rgba(0,0,0, 1);
  &.animated {
    opacity: 0;
    animation: headingAnimation 1.5s;
    animation-delay: 0.5s;
  }
}
.animate--img {
  overflow: hidden;
  padding-top: 66%;
  position: relative;
  width: 500px;
  &.animated {
    padding-top: 0%;
    animation: imgAnimation 1.5s;
    animation-delay: 0.5s;

  }
  img {
    position: absolute;
    top: 0;
    left: 0;
    -webkit-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.75);
  }
}
              
            
!

JS

              
                var wow = new WOW({boxClass:'animate'});
wow.init();
              
            
!
999px

Console