cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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 class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon></div>
<div class=ribbon2></div>
            
          
!
            
              html { font-size: 65%; }
.ribbon, .ribbon2 {
  height:10px;
  height: 1rem;
  background-color:#d13636;
  background-color:rgba(221,60,77,.95);
  background-image:-webkit-gradient(linear, 0 0, 100% 0, from(#e75239), color-stop(12.5, #e75239), color-stop(12.5, #ff961c), color-stop(0.25, #ff961c), color-stop(0.25, #ffcc27), color-stop(37.5, #ffcc27), color-stop(37.5, #fce62f), color-stop(0.5, #fce62f), color-stop(0.5, #cde35b), color-stop(62.5, #cde35b), color-stop(62.5, #82cc33), color-stop(0.75, #82cc33), color-stop(0.75, #41bece), color-stop(87.5, #41bece), color-stop(87.5, #049cdb), to(#049cdb));
  background-image:-webkit-linear-gradient(left, #e75239 0%, #e75239 12.5, #ff961c 12.5, #ff961c 25%, #ffcc27 25%, #ffcc27 37.5, #fce62f 37.5, #fce62f 50%, #cde35b 50%, #cde35b 62.5, #82cc33 62.5, #82cc33 75%, #41bece 75%, #41bece 87.5, #049cdb 87.5, #049cdb 100%);
  background-image:-moz-linear-gradient(left, #e75239 0%, #e75239 12.5, #ff961c 12.5, #ff961c 25%, #ffcc27 25%, #ffcc27 37.5, #fce62f 37.5, #fce62f 50%, #cde35b 50%, #cde35b 62.5, #82cc33 62.5, #82cc33 75%, #41bece 75%, #41bece 87.5, #049cdb 87.5, #049cdb 100%);
  background-image:-o-linear-gradient(left, #e75239 0%, #e75239 12.5, #ff961c 12.5, #ff961c 25%, #ffcc27 25%, #ffcc27 37.5, #fce62f 37.5, #fce62f 50%, #cde35b 50%, #cde35b 62.5, #82cc33 62.5, #82cc33 75%, #41bece 75%, #41bece 87.5, #049cdb 87.5, #049cdb 100%);
  background-image:linear-gradient(left, #e75239 0%, #e75239 12.5, #ff961c 12.5, #ff961c 25%, #ffcc27 25%, #ffcc27 37.5, #fce62f 37.5, #fce62f 50%, #cde35b 50%, #cde35b 62.5, #82cc33 62.5, #82cc33 75%, #41bece 75%, #41bece 87.5, #049cdb 87.5, #049cdb 100%);
  background-position:0 0;
  background-size:800px;
  width:100%;
  top:0;
  left:0;
  position:absolute;
}

.ribbon:nth-of-type(1) {
  top: 20px;
  -webkit-animation: ribbon 10s linear infinite;
  -moz-animation: ribbon 10s linear infinite;
  -ms-animation: ribbon 10s linear infinite;
  -o-animation: ribbon 10s linear infinite;
  animation: ribbon 10s linear infinite;
}
.ribbon:nth-of-type(2) { 
  top: 40px; 
  -webkit-animation: ribbon 9s linear infinite;
  -moz-animation: ribbon 9s linear infinite;
  -ms-animation: ribbon 9s linear infinite;
  -o-animation: ribbon 9s linear infinite;
  animation: ribbon 9s linear infinite;
}
.ribbon:nth-of-type(3) { 
  top: 60px; 
  -webkit-animation: ribbon 8s linear infinite;
  -moz-animation: ribbon 8s linear infinite;
  -ms-animation: ribbon 8s linear infinite;
  -o-animation: ribbon 8s linear infinite;
  animation: ribbon 8s linear infinite;
}
.ribbon:nth-of-type(4) { 
  top: 80px; 
  -webkit-animation: ribbon 7s linear infinite;
  -moz-animation: ribbon 7s linear infinite;
  -ms-animation: ribbon 7s linear infinite;
  -o-animation: ribbon 7s linear infinite;
  animation: ribbon 7s linear infinite;
}
.ribbon:nth-of-type(5) { 
  top: 100px; 
  -webkit-animation: ribbon 6s linear infinite;
  -moz-animation: ribbon 6s linear infinite;
  -ms-animation: ribbon 6s linear infinite;
  -o-animation: ribbon 6s linear infinite;
  animation: ribbon 6s linear infinite;
}
.ribbon:nth-of-type(6) { 
  top: 120px; 
  -webkit-animation: ribbon 5s linear infinite;
  -moz-animation: ribbon 5s linear infinite;
  -ms-animation: ribbon 5s linear infinite;
  -o-animation: ribbon 5s linear infinite;
  animation: ribbon 5s linear infinite;
}
.ribbon:nth-of-type(7) { 
  top: 140px; 
  -webkit-animation: ribbon 4s linear infinite;
  -moz-animation: ribbon 4s linear infinite;
  -ms-animation: ribbon 4s linear infinite;
  -o-animation: ribbon 4s linear infinite;
  animation: ribbon 4s linear infinite;
}
.ribbon:nth-of-type(8) { 
  top: 160px; 
  -webkit-animation: ribbon 3s linear infinite;
  -moz-animation: ribbon 3s linear infinite;
  -ms-animation: ribbon 3s linear infinite;
  -o-animation: ribbon 3s linear infinite;
  animation: ribbon 3s linear infinite;
}
.ribbon:nth-of-type(9) { 
  top: 180px; 
  -webkit-animation: ribbon 2s linear infinite;
  -moz-animation: ribbon 2s linear infinite;
  -ms-animation: ribbon 2s linear infinite;
  -o-animation: ribbon 2s linear infinite;
  animation: ribbon 2s linear infinite;
}
.ribbon:nth-of-type(10) { 
  top: 200px; 
  -webkit-animation: ribbon 1s linear infinite;
  -moz-animation: ribbon 1s linear infinite;
  -ms-animation: ribbon 1s linear infinite;
  -o-animation: ribbon 1s linear infinite;
  animation: ribbon 1s linear infinite;
}
.ribbon:nth-of-type(11) {
  top: 220px;
  -webkit-animation: ribbon 2s linear infinite;
  -moz-animation: ribbon 2s linear infinite;
  -ms-animation: ribbon 2s linear infinite;
  -o-animation: ribbon 2s linear infinite;
  animation: ribbon 2s linear infinite;
}
.ribbon:nth-of-type(12) { 
  top: 240px; 
  -webkit-animation: ribbon 3s linear infinite;
  -moz-animation: ribbon 3s linear infinite;
  -ms-animation: ribbon 3s linear infinite;
  -o-animation: ribbon 3s linear infinite;
  animation: ribbon 3s linear infinite;
}
.ribbon:nth-of-type(13) { 
  top: 260px; 
  -webkit-animation: ribbon 4s linear infinite;
  -moz-animation: ribbon 4s linear infinite;
  -ms-animation: ribbon 4s linear infinite;
  -o-animation: ribbon 4s linear infinite;
  animation: ribbon 4s linear infinite;
}
.ribbon:nth-of-type(14) { 
  top: 280px; 
  -webkit-animation: ribbon 5s linear infinite;
  -moz-animation: ribbon 5s linear infinite;
  -ms-animation: ribbon 5s linear infinite;
  -o-animation: ribbon 5s linear infinite;
  animation: ribbon 5s linear infinite;
}
.ribbon:nth-of-type(15) { 
  top: 300px; 
  -webkit-animation: ribbon 6s linear infinite;
  -moz-animation: ribbon 6s linear infinite;
  -ms-animation: ribbon 6s linear infinite;
  -o-animation: ribbon 6s linear infinite;
  animation: ribbon 6s linear infinite;
}
.ribbon:nth-of-type(16) { 
  top: 320px; 
  -webkit-animation: ribbon 7s linear infinite;
  -moz-animation: ribbon 7s linear infinite;
  -ms-animation: ribbon 7s linear infinite;
  -o-animation: ribbon 7s linear infinite;
  animation: ribbon 7s linear infinite;
}
.ribbon:nth-of-type(17) { 
  top: 340px; 
  -webkit-animation: ribbon 8s linear infinite;
  -moz-animation: ribbon 8s linear infinite;
  -ms-animation: ribbon 8s linear infinite;
  -o-animation: ribbon 8s linear infinite;
  animation: ribbon 8s linear infinite;
}
.ribbon:nth-of-type(18) { 
  top: 360px; 
  -webkit-animation: ribbon 9s linear infinite;
  -moz-animation: ribbon 9s linear infinite;
  -ms-animation: ribbon 9s linear infinite;
  -o-animation: ribbon 9s linear infinite;
  animation: ribbon 9s linear infinite;
}
.ribbon:nth-of-type(19) { 
  top: 380px; 
  -webkit-animation: ribbon 10s linear infinite;
  -moz-animation: ribbon 10s linear infinite;
  -ms-animation: ribbon 10s linear infinite;
  -o-animation: ribbon 10s linear infinite;
  animation: ribbon 10s linear infinite;
}
.ribbon2 { 
  top: 400px; 
  -webkit-animation: ribbon2 1.5s linear infinite;
  -moz-animation: ribbon2 1.5s linear infinite;
  -ms-animation: ribbon2 1.5s linear infinite;
  -o-animation: ribbon2 1.5s linear infinite;
  animation: ribbon2 1.5s linear infinite;
  height: 30rem;
}
@-moz-keyframes ribbon {
  0% { background-position: 0 bottom; }
  100% { background-position: 1600px bottom; }
}
@-webkit-keyframes ribbon {
  0% { background-position: 0 bottom; }
  100% { background-position: 1600px bottom; }
}
@-webkit-keyframes ribbon { 
  0% { background-position: 0 bottom; }
  100% { background-position: 1600px bottom; }
 }
@-moz-keyframes ribbon2 {
  0% { background-position: 0 bottom; }
  100% { background-position: -1600px bottom; }
}
@-webkit-keyframes ribbon2 {
  0% { background-position: 0 bottom; }
  100% { background-position: -1600px bottom; }
}
@-webkit-keyframes ribbon2 { 
  0% { background-position: 0 bottom; }
  100% { background-position: -1600px bottom; }
 }
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console