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.

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

              
                <section class="intro-text">
  <div class="container">
    <div class="row">
      <div class="column-full">
        <div class="reveal-holder" data-aos="reveal-item">
          <div class="reveal-block gradient right" data-aos="reveal-right"></div>
          <h1>Reveal Effects</h1>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="column-full">
        <div class="reveal-holder" data-aos="reveal-item">
          <div class="reveal-block gradient-two right" data-aos="reveal-right"></div>
          <h1>on Scroll</h1>
        </div>
      </div>
    </div>
  </div>
</section>
<section class="dog-text">
  <div class="container">
    <div class="row">
      <div class="column-full">
        <div class="reveal-holder" data-aos="reveal-item">
          <div class="reveal-block right" data-aos="reveal-right"></div>
          <h2>Maximum borkdrive</h2>
        </div>
        <p>Doggo ipsum lotsa pats maximum borkdrive pats long doggo pats floofs, lotsa pats big ol pupper mlem many pats. Dat tungg tho doing me a frighten sub woofer heckin angery woofer shoober heckin pupperino thicc smol borking doggo with a long snoot for pats mlem, what a nice floof corgo heck shoober very jealous pupper long doggo blop. Porgo you are doing me the shock borkdrive heckin angery woofer long water shoob, borking doggo length boy wrinkler. shoob. such treat snoot aqua doggo. Doggorino smol length boy, very jealous pupper. Very good spot you are doin me a concern pats, big ol. floofs corgo. Ruff much ruin diet you are doin me a concern shoob, lotsa pats he made many woofs. Doggorino aqua doggo puggorino clouds extremely cuuuuuute clouds, snoot puggo much ruin diet porgo, very good spot fat boi super chub big ol. Boof tungg such treat doing me a frighten, boof.</p>
        <p>Snoot he made many woofs doggo shibe adorable doggo, shoober ruff. adorable doggo. Super chub you are doing me the shock shoober doge very taste wow pupperino, stop it fren fluffer sub woofer porgo pupperino, thicc mlem long bois very jealous pupper. Clouds aqua doggo ruff long water shoob wow such tempt corgo, I am bekom fat lotsa pats long bois most angery pupper I have ever seen. Many pats fluffer pupperino blop, corgo. Many pats boof pats smol borking doggo with a long snoot for pats length boy, ruff borkdrive lotsa pats. Long water shoob wow such tempt very hand that feed shibe the neighborhood pupper doggorino boofers shoober, shibe most angery pupper I have ever seen boofers big ol pupper floofs noodle horse, borkdrive bork yapper very hand that feed shibe long woofer. Woofer borkf the neighborhood pupper, shoober. Pupper thicc length boy blop, mlem.</p>
        <p>Long doggo sub woofer porgo woofer I am bekom fat doggo lotsa pats big ol snoot, blep shoob wow very biscit I am bekom fat heckin angery woofer the neighborhood pupper sub woofer. maximum borkdrive tungg doggo. Very jealous pupper shibe puggo doge mlem, very taste wow ur givin me a spook noodle horse. heckin good boys. Many pats heck long woofer he made many woofs dat tungg tho long bois, ruff long woofer clouds thicc. Aqua doggo many pats you are doin me a concern snoot, clouds.</p>
      </div>
    </div>
  </div>
</section>
<section class="dog-image">
  <div class="container">
    <div class="row">
      <div class="column-full">
        <div class="reveal-holder" data-aos="reveal-item">
          <div class="reveal-block left" data-aos="reveal-left"></div>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1159990/pomeranian.jpg" alt="Pomeranian">
        </div>
      </div>
    </div>
  </div>
</section>
<section class="dog-info">
  <div class="container">
    <div class="row">
      <div class="column-full">
        <h2>Here's some more dogs</h2>
      </div>
    </div>
    <div class="row">
      <div class="column-half">
        <div class="reveal-holder" data-aos="reveal-item">
          <div class="reveal-block bottom" data-aos="reveal-bottom"></div>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1159990/shih-tzu.jpg" src="Shih Tzu">
        </div>
      </div>
      <div class="column-half">
        <h3>Shih Tzu</h3>
        <p>Pats length boy long water shoob doggorino, lotsa pats. Fluffer borkf he made many woofs doggo, puggorino smol. Doggo boof sub woofer I am bekom fat puggo lotsa pats shoob, I am bekom fat puggorino boof sub woofer long doggo.</p>
      </div>
    </div>
    <div class="row">
      <div class="column-half">
        <h3>Pug</h3>
        <p>Pats length boy long water shoob doggorino, lotsa pats. Fluffer borkf he made many woofs doggo, puggorino smol. Doggo boof sub woofer I am bekom fat puggo lotsa pats shoob, I am bekom fat puggorino boof sub woofer long doggo.</p>
      </div>
      <div class="column-half">
        <div class="reveal-holder" data-aos="reveal-item">
          <div class="reveal-block top" data-aos="reveal-top"></div>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1159990/pug.jpg" src="Pug">
        </div>
      </div>
    </div>
  </div>
</section>
<section class="dog-image">
  <div class="container">
    <div class="row">
      <div class="column-full">
        <div class="reveal-holder" data-aos="reveal-item">
          <div class="reveal-block left extra" data-aos="reveal-left"></div>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1159990/pomeranian.jpg" alt="Pomeranian">
        </div>
      </div>
    </div>
  </div>
</section>
              
            
!

CSS

              
                /* Demo styles */
@import url("https://fonts.googleapis.com/css?family=Roboto:300,700");

* {
  box-sizing: border-box;
  &::before, &::after {
    box-sizing: border-box;
  }
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: black;
  background: white;
}

h1, h2 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 4rem;
  margin: 0.5rem 0;
}

h2 {
  font-size: 3rem;
  margin: 1rem 0;
}

h3 {
  font-size: 2.5rem;
}

img {
  display: block;
  max-width: 100%;
}

p {
  text-align: left;
}

section {
  padding: 4rem 0;
}

.container {
  margin: auto;
  padding: 0 1rem;
  max-width: 70rem;
  width: 100%;
}

.intro-text {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 0;
  min-height: 100vh;
  .row > [class*="column-"] {
    padding: 0;
  }
}

.dog-text {
  text-align: center;
}

/* Grid */
.row {
  display: flex;
  flex-direction: column;
  flex-flow: row wrap;
  > [class*="column-"] {
    display: block;
    padding: 1rem;
  }
}

.column-full {
  flex-basis: 100%;
  max-width: 100%;
}

.column-half {
  flex-basis: 50%;
  max-width: 50%;
}

/* Reveal block */
.reveal-holder {
  position: relative;
  display: inline-block;
  overflow: hidden;
  .reveal-block {
    position: absolute;
    top: 0;
    width: 100%;
    height: 101%;
    background: white;
    &::before {
      position: absolute;
      content: '';
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: lightgray;
      transition-property: transform;
      transition-duration: 0.5s;
    }
  }
}

.reveal-block.gradient::before {
  background: linear-gradient(to left, #eebf56, #f46ca3);
}

.reveal-block.gradient-two::before {
  background: linear-gradient(to left, #1b9edf, #af74c3);
}

.reveal-block.extra {
  background: #1b9edf;
  &::before {
    background: #af74c3;
  }
}

.reveal-block.top.aos-animate::before,
.reveal-block.bottom.aos-animate::before {
  transform: scaleY(1);
}

.reveal-block.left.aos-animate::before,
.reveal-block.right.aos-animate::before {
  transform: scaleX(1);
}

.reveal-block.top::before {
  transform: scaleY(0);
  transform-origin: 0% 100%;
}

.reveal-block.left::before {
  transform: scaleX(0);
  transform-origin: 100% 0%;
}

.reveal-block.right::before {
  transform: scaleX(0);
  transform-origin: 0% 100%;
}

.reveal-block.bottom::before {
  transform: scaleY(0);
  transform-origin: 100% 0%;
}

/* AOS animate */
[data-aos="reveal-top"],
[data-aos="reveal-left"],
[data-aos="reveal-right"],
[data-aos="reveal-bottom"] {
  transition-property: transform;
  transition-delay: 0.5s;
}

[data-aos="reveal-top"] {
  transform: scaleY(1);
  &.aos-animate {
    transform: scaleY(0);
    transform-origin: 100% 0%;
  }
}

[data-aos="reveal-left"] {
  transform: scaleX(1);
  &.aos-animate {
    transform: scaleX(0);
    transform-origin: 0% 100%;
  }
}

[data-aos="reveal-right"] {
  transform: scaleX(1);
  &.aos-animate {
    transform: scaleX(0);
    transform-origin: 100% 0%;
  }
}

[data-aos="reveal-bottom"] {
  transform: scaleY(1);
  &.aos-animate {
    transform: scaleY(0);
    transform-origin: 0% 100%;
  }
}

[data-aos="reveal-item"] {
  visibility: hidden;
  transition-property: visibility;
  transition-duration: 0s;
  &.aos-animate {
    visibility: visible;
  }
}
              
            
!

JS

              
                AOS.init({
  duration: 500,
  easing: 'ease-out-quart',
  once: true
});
              
            
!
999px

Console