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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              
<div class="container">
  <div class="section_container myFadeIn">Oh bring us some figgy pudding,</div>
  <div class="section_container myFadeIn">and bring it right here.</div>
  <div class="section_container myFadeIn" data-wow-duration="0.4s">We won’t go until we get some,</div>
  <div class="section_container myFadeIn" data-wow-duration="0.4s">so bring it right here.</div> 
  <div class="section_container myFadeIn" data-wow-duration="0.4s">We all like our figgy pudding,</div> 
  <div class="section_container slideInLeft" data-wow-duration="0.4s">with all its good cheer.</div> 
  <div class="section_container slideInRight" data-wow-duration="0.4s">Good tidings we bring to you</div>
  <div class="section_container flipInX" data-wow-duration="0.4s">and your kin;</div>
  <div class="section_container flipInY" data-wow-duration="0.4s">We wish you a merry Christmas</div>
  <div class="section_container zoomIn" data-wow-duration="0.4s">and a happy New Year.</div>
</div>

            
          
!

CSS

            
              html, body, .container {
  width: 100%;
  height: 100%;
  margin: 0;
}
.section_container {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0 5%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    color: #fff;
    font: 30vh / 0.85 arial;
}
@for $i from 1 to 11 {
  .section_container:nth-of-type(#{$i}) {
    background-color: hsl($i * 36 - 24, 100, 65);
  }
}

.myFadeIn {
  opacity: 0;
  transition: opacity 0.4s ease-out;
  &.animated {
    opacity: 1; 
  }
}
            
          
!

JS

            
              new WOW({
  boxClass: 'section_container', // 対象セレクタ
  offset: window.innerHeight / 2 // ビューポートの高さ半分まで要素が表示されたら、演出起動
}).init();
            
          
!
999px

Console