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 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

              
                <div id="container">
    <span class="slide1"><img src="http://lorempixel.com/660/320/city/1/" alt=""/></span>
    <span class="slide2"><img src="http://lorempixel.com/660/320/city/2/" alt=""/></span>
    <span class="slide3"><img src="http://lorempixel.com/660/320/city/3/" alt=""/></span>
    <span class="slide4"><img src="http://lorempixel.com/660/320/city/4/" alt=""/></span>
    <span class="slide5"><img src="http://lorempixel.com/660/320/city/5/" alt=""/></span>
    <span class="slide6"><img src="http://lorempixel.com/660/320/city/6/" alt=""/></span>
    <span class="slide7"><img src="http://lorempixel.com/660/320/city/7/" alt=""/></span>
    <span class="slide8"><img src="http://lorempixel.com/660/320/city/8/" alt=""/></span>
    <span class="slide9"><img src="http://lorempixel.com/660/320/city/9/" alt=""/></span>
    <span class="slide10"><img src="http://lorempixel.com/660/320/city/10/" alt=""/></span>
</div>

              
            
!

CSS

              
                body{background: rgba(33, 33, 33, 0.72)
}

div#container {
    position: relative;
    width: 660px;
    height: 320px;
    margin: 20px auto;
    padding: 5px;
    background-color: #f6f6f6;
    box-shadow: 1px 20px 27px -21px #000000;
    border: 2px solid #ececec;
}

div#container span{
    position: absolute;
}



div#container span.slide1{
    z-index: 10;
    -webkit-animation: slider1 100s linear 5s infinite normal
}
@-webkit-keyframes slider1{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}


div#container span.slide2{
    z-index: 9;
    -webkit-animation: slider2 100s linear 15s infinite normal
}
@-webkit-keyframes slider2{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}


div#container span.slide3{
    z-index: 8;
    -webkit-animation: slider3 100s linear 25s infinite normal
}
@-webkit-keyframes slider3{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}


div#container span.slide4{
    z-index: 7;
    -webkit-animation: slider4 100s linear 35s infinite normal
}
@-webkit-keyframes slider4{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}


div#container span.slide5{
    z-index: 6;
    -webkit-animation: slider5 100s linear 45s infinite normal
}
@-webkit-keyframes slider5{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}


div#container span.slide6{
    z-index: 5;
    -webkit-animation: slider6 100s linear 55s infinite normal
}
@-webkit-keyframes slider6{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}


div#container span.slide7{
    z-index: 4;
    -webkit-animation: slider7 100s linear 65s infinite normal
}
@-webkit-keyframes slider7{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}


div#container span.slide8{
    z-index: 3;
    -webkit-animation: slider8 100s linear 75s infinite normal
}
@-webkit-keyframes slider8{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}


div#container span.slide9{
    z-index: 2;
    -webkit-animation: slider9 100s linear 85s infinite normal
}
@-webkit-keyframes slider9{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}


div#container span.slide10{
    z-index: 1;
    -webkit-animation: slider10 100s linear 95s infinite normal
}
@-webkit-keyframes slider10{
0%{opacity:1}
5%{opacity:0}
85%{opacity:0}
95%{opacity:1}
}
              
            
!

JS

              
                
              
            
!
999px

Console