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

              
                <p>Random animation puere CSS</p>

<div class='alfa'>R
<div class='bravo'></div>
<div class='charly'></div>
<div class='delta'></div>
<div class='eco'></div>
</div>

<div class='alfa'>L
<div class='bravo'></div>
</div>

<div class='alfa'>R
<div class='golf'></div>
<div class='hotel'></div>
<div class='india'></div>
<div class='juliet'></div>
</div>

<div class='alfa'>L
<div class='kilo'></div>
</div>
<p>R= random /\ L= linear</p>
<p>Fake aperiodic animation</p>
<p><a href='https://ksesocss.blogspot.com/2013/07/random-animation-css.html'>The post</a></p>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Roboto+Slab);
* {
margin: 0;
padding: 0;
position: relative;
}
html {background: #34495e; 
color: silver;
font: 28px/30px "Roboto Slab", sans-serif;; 
}
p {
text-align: center;
margin: .5rem 0;
}
.alfa {width: 330px;
height: 30px;
background-color: #172F30; 
overflow: hidden; 
padding-left: 5px;
margin: 5px auto;
border-radius: 3px;
box-shadow: 0 0 3px rgba(0,0,0,.4); 
}
.bravo, .charly, .delta .eco {height: 30px; 
width: 300px; 
background-image: url(https://i.imgur.com/CaoETIz.png); 
position: absolute; 
top: 0;
left: 30px; 
}
.bravo {background-position: 0 0; 
animation: foxtrot 1s steps(10) alternate infinite;
}
.charly {background-position: 0 0; 
animation: foxtrot 5s steps(10) alternate infinite;
}
.delta {background-position: 0 0; 
animation: foxtrot 3s steps(10) alternate infinite;
}
.eco {background-position: 0 0; 
animation: foxtrot 7s steps(10) alternate infinite;
}

@keyframes foxtrot {
0% {background-position: 0 0; }
100% {background-position: 0 -300px; }
}
.golf, .hotel, .india, .juliet, .kilo {
height: 30px; 
width: 0px; 
background-image: url(https://i.imgur.com/wa6PQIM.png); 
position: absolute; 
top: 0;
left: 30px;
}
.golf {animation: lima .7s linear alternate infinite 5s}
.hotel {animation: lima 3s linear alternate infinite 3s}
.india {animation: lima 5s ease-in alternate infinite .7}
.juliet {animation: lima 7s ease-in  alternate infinite .3s}
.kilo {animation: lima 1s linear alternate infinite}

@keyframes lima {
  0% {width: 0px;}
  100% {width: 300px;}
}
a {color: #EF8974;}
a:hover {color:red}
              
            
!

JS

              
                // Basada en cómo hacer gif´s animados con css   https://ksesocss.blogspot.com/2012/12/gif-animados-con-CSS.html
// Y en los cicadients o la evolución del principio de la cicada https://ksesocss.blogspot.com/2012/06/cicadients-metamorfosis-del-cicada.html
              
            
!
999px

Console