Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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="wrapper">
<div class="container">
  <div class="row">
    <div class="col-sm-12 text-center">
      <h1>Quotes</h1>
    </div>
    <div class="col-sm-12">
      <div class="slider">
        <div class="mask">
          <div class="slide firstanimation">
            <p>Never tell people how to do things. Tell them what to do, and they will surprise you with their ingenuity.
              <br>-General George S. Patton, Jr.</p>
          </div>
          <div class="slide secondanimation">
            <p>The cheapest, fastest, and most reliable components are those that aren’t there.
            <br>-Gordon Bell</p>
          </div>
          <div class="slide thirdanimation">
            <p>Organizations need to come to terms — product invention process is fundamentally a creative process. It is more art than science.
              <br>-Marty Gagan</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Lato:300);
body {
  font-size: 20px;
  font-family: Lato;
  font-weight: 300;
}

.slide {font-size: 140%;}

.wrapper {
  padding-top: 60px;
  background-color: #3BAB83;
  background: -webkit-linear-gradient(#5aa9c3, #57DED6), #3BAB83;
  background: linear-gradient(#5aa9c3, #57DED6), #3BAB83;
  position: relative;
  display: table;
  height: 100vh;
  width: 100%;
  font-size: 18px;
  text-align: center;
  vertical-align: middle;
  color: white;
}

.slider {
  overflow: hidden;
  position: relative;
  text-align: center;
}

.mask {
  overflow: hidden;
  height: 160px;
}

.slider .slide {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100%;
  -webkit-transform: translate(-50%, -100%);
          transform: translate(-50%, -100%);
  list-style: none;
}

.slider .slide.firstanimation {
  -webkit-animation: cycle 9s ease-in-out infinite;
          animation: cycle 9s ease-in-out infinite;
}

.slider .slide.secondanimation {
  -webkit-animation: cycletwo 9s ease-in-out infinite;
          animation: cycletwo 9s ease-in-out infinite;
}

.slider .slide.thirdanimation {
  -webkit-animation: cyclethree 9s ease-in-out infinite;
          animation: cyclethree 9s ease-in-out infinite;
}

@-webkit-keyframes cycle {
  0% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
  29% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* start move */
  33% {
    -webkit-transform: translate(-50%, 100%);
            transform: translate(-50%, 100%);
    opacity: 0;
  }
  /* below */
  96% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* above */
  100% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
}

@keyframes cycle {
  0% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
  29% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* start move */
  33% {
    -webkit-transform: translate(-50%, 100%);
            transform: translate(-50%, 100%);
    opacity: 0;
  }
  /* below */
  96% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* above */
  100% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
}
@-webkit-keyframes cycletwo {
  0% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* above */
  29% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* start move */
  33% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
  62% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
  66% {
    -webkit-transform: translate(-50%, 100%);
            transform: translate(-50%, 100%);
    opacity: 0;
  }
  /* below */
  100% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* above */
}
@keyframes cycletwo {
  0% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* above */
  29% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* start move */
  33% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
  62% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
  66% {
    -webkit-transform: translate(-50%, 100%);
            transform: translate(-50%, 100%);
    opacity: 0;
  }
  /* below */
  100% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* above */
}
@-webkit-keyframes cyclethree {
  0% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* top */
  62% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* start move */
  66% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
  96% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(-50%, 100%);
            transform: translate(-50%, 100%);
    opacity: 0;
  }
}
@keyframes cyclethree {
  0% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* top */
  62% {
    -webkit-transform: translate(-50%, -100%);
            transform: translate(-50%, -100%);
    opacity: 0;
  }
  /* start move */
  66% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  /* visible */
  96% {
    -webkit-transform: translate(-50%, 0%);
            transform: translate(-50%, 0%);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(-50%, 100%);
            transform: translate(-50%, 100%);
    opacity: 0;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console