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

            
              <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">

<div class="container">
  <div class="section_container" data-aos="fade-in">Oh bring us some figgy pudding,</div>
  <div class="section_container" data-aos="fade-in">and bring it right here.</div>
  <div class="section_container" data-aos="fade-in">We won’t go until we get some,</div>
  <div class="section_container" data-aos="fade-in">so bring it right here.</div> 
  <div class="section_container" data-aos="fade-in">We all like our figgy pudding,</div> 
  <div class="section_container" data-aos="fade-in">with all its good cheer.</div> 
  <div class="section_container" data-aos="fade-in">Good tidings we bring to you</div>
  <div class="section_container" data-aos="fade-in">and your kin;</div>
  <div class="section_container" data-aos="fade-in">We wish you a merry Christmas</div>
  <div class="section_container" data-aos="fade-in">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);
  }
}
            
          
!

JS

            
              AOS.init({
  once: true, // 演出の実行は1回のみ
  offset: window.innerHeight / 2
});

// デフォルト設定
// AOS.init({
//   // Global settings:
//   disable: false, // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function
//   startEvent: 'DOMContentLoaded', // name of the event dispatched on the document, that AOS should initialize on
//   initClassName: 'aos-init', // class applied after initialization
//   animatedClassName: 'aos-animate', // class applied on animation
//   useClassNames: false, // if true, will add content of `data-aos` as classes on scroll
//   disableMutationObserver: false, // disables automatic mutations' detections (advanced)
//   debounceDelay: 50, // the delay on debounce used while resizing window (advanced)
//   throttleDelay: 99, // the delay on throttle used while scrolling the page (advanced)
  

//   // Settings that can be overridden on per-element basis, by `data-aos-*` attributes:
//   offset: 120, // offset (in px) from the original trigger point
//   delay: 0, // values from 0 to 3000, with step 50ms
//   duration: 400, // values from 0 to 3000, with step 50ms
//   easing: 'ease', // default easing for AOS animations
//   once: false, // whether animation should happen only once - while scrolling down
//   mirror: false, // whether elements should animate out while scrolling past them
//   anchorPlacement: 'top-bottom', // defines which position of the element regarding to window should trigger the animation
// });

            
          
!
999px

Console