cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div><!-- to create a line break, without extra css. we rely on the default state of display: block for divs -->
  <p class="first">My name is <span class="emphasis">Fay-Lisa</span>.</p>
</div>
<div>
  <p class="second">I design websites,</p>
 </div>
<div>
  <p class="third">and build CSS + HTML frameworks</p>
  <p class="fourth">for award-winning apps.</p>
</div>
<div><!-- to create a link break, without extra css -->
  <p class="fifth">I <span class="emphasis">LOVE</span> what I do,</p>
  <p class="sixth">so I work hard to do it well.</p>
</div>

            
          
!
            
              /* defines the animation */
@keyframes fadeInUp {
  from { 
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

p {
  // first we make all instances of this transparent. 
  opacity: 0; 
  // as we're using the same animation for each instance, call it here so we're not repeating it
  animation: fadeInUp 1s ease-in-out 0s forwards;

  // then define the animation delay in each class
  &.first {
    animation-delay: 1s;
  }
  &.second {
    animation-delay: 3s;
  }
  &.third {
    animation-delay: 5s;
  }
  &.fourth {
    animation-delay: 7s;
  }
  &.fifth {
    animation-delay: 9s;
  }
  &.sixth {
    animation-delay: 11s;
  }
 }

/* now add general css for page */
body {
  background: #fff;
  text-align: center;
  font-size: 34px;
  color: #424243;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
}

p { 
  margin: 10px 0;
  display: inline-block; 
  font-weight: 300;
}

// recolors some of the text
.emphasis {
  color: #fb6e67;
}


            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console