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

              
                <div class="timeline-wrap" style="background-color: #272727">
   <ul class="timeline timeline--first">
      <li class="era">
         <h2 class="era__title">First Era</h2>
      </li>
      <li class="entry entry--left">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Bacon ipsum dolor amet ball tip jerky sirloin pancetta capicola prosciutto meatball pig leberkas cow pork chop shank meatloaf.</p>
         </div>
      </li>
      <li class="entry entry--right">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Ground round short ribs fatback, salami shoulder sausage chuck shankle landjaeger drumstick ribeye meatloaf doner.</p>
         </div>
      </li>
      <li class="entry entry--left">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Swine pork belly prosciutto jowl pork chop chicken filet mignon cupim doner boudin.</p>
         </div>
      </li>
   </ul>
</div>
<div class="timeline-wrap" style="background-color: #222222">
   <ul class="timeline">
      <li class="era">
         <h2 class="era__title">Second Era</h2>
      </li>
      <li class="entry entry--right">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Jerky corned beef jowl cupim hamburger, alcatra meatball swine pork chop ribeye leberkas short loin tenderloin picanha venison.</p>
         </div>
      </li>
      <li class="entry entry--left">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Ribeye turducken flank cupim ball tip ham pork belly venison biltong pork chop jowl andouille spare ribs.</p>
         </div>
      </li>
      <li class="entry entry--right">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Jerky corned beef jowl cupim hamburger, alcatra meatball swine pork chop ribeye leberkas short loin tenderloin picanha venison. Ribeye turducken flank cupim ball tip ham pork belly venison biltong pork chop jowl andouille spare ribs.</p>
         </div>
      </li>
   </ul>
</div>
<div class="timeline-wrap" style="background-color: #272727">
   <ul class="timeline">
      <li class="era">
         <h2 class="era__title">Last Era</h2>
      </li>
      <li class="entry entry--left">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Landjaeger cow flank ribeye meatball, corned beef tongue.</p>
         </div>
      </li>
      <li class="entry entry--right">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Landjaeger cow flank ribeye meatball, corned beef tongue.</p>
         </div>
      </li>
      <li class="entry entry--left">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Landjaeger cow flank ribeye meatball, corned beef tongue.</p>
         </div>
      </li>
      <li class="entry entry--right">
         <div class="entry__content wow animated fadeIn" data-wow-duration="1s" data-wow-delay="0.5s">
            <h2>Bacon Ipsum</h2>
            <p>Landjaeger cow flank ribeye meatball, corned beef tongue.</p>
         </div>
      </li>
   </ul>
</div>
              
            
!

CSS

              
                * {
   box-sizing: border-box;
}

.timeline {
   position: relative;
   max-width: 800px;
   margin: 0 auto;
   padding-top: 20px;
   background-color: inherit;
}

.timeline:after {
   content: '';
   position: absolute;
   width: 5px;
   background-color: #3290B1;
   left: 50%;
   top: 0;
   bottom: 0;
   margin-left: -2px;
}

.timeline--first:after {
   top: 20px;
}

.era {
   text-align: center;
   position: relative;
   z-index: 1;
   padding-bottom: 20px;
}

.era__title {
   background-color: #3290B1;
   color: #EEEEEE;
   display: inline-block;
   padding: 10px 20px;
   border-radius: 4px;
   cursor: default;
}

.entry {
   padding: 10px 30px 40px 30px;
   width: 50%;
   position: relative;
   background-color: inherit;
}

.entry--right {
   margin-left: 50%;
}

.entry__content {
   padding: 20px 30px;
   background-color: #EEEEEE;
   position: relative;
   border-radius: 4px;
   cursor: default;
   transition: all 0.3s ease 0s;
   box-shadow: 5px 5px 0px 0px rgba(0, 0, 0, 0.2);
}

.entry__content:hover {
   background-color: #FFFFFF;
}

.entry:before {
   content: " ";
   height: 0;
   position: absolute;
   top: 20px;
   width: 0;
   z-index: 1;
}

.entry:after {
   content: '';
   position: absolute;
   width: 24px;
   height: 24px;
   right: -17px;
   background-color: #EEEEEE;
   border: 4px solid #3290B1;
   top: 20px;
   border-radius: 50%;
   z-index: 1;
}

.entry--right:after {
   right: auto;
   left: -16px;
}

h2 {
   color: #525252;
   margin-bottom: 0.5em;
   font-family: "Raleway", Helvetica, sans-serif;
   font-size: 22px;
   font-weight: bold;
}

p {
   color: #686868;
   font-family: "Raleway", Helvetica, sans-serif;
   font-size: 15px;
   line-height: 1.4;
}

@media all and (max-width: 500px) {
   .timeline:after {
      left: 33.75px;
   }
   .era {
      text-align: left;
      padding-left: 31.875px;
   }
   .entry {
      width: 100%;
      margin-left: 0;
      padding-left: 64px;
      padding-right: 20px;
   }
   .entry:before {
      right: auto;
      left: 56px;
      margin-left: 0;
   }
   .entry:after {
      left: 15px;
   }
}
              
            
!

JS

              
                // WOW
new WOW().init();
              
            
!
999px

Console