octocatstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.

            
              <!--div class="controls">
  <label for="track-control">Track</label>
  <input type="checkbox" id="track-control" checked-->
  <div class="equaliser-container">
    <ol class="equaliser-column">
      <li class="colour-bar"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
    </ol>
    <ol class="equaliser-column">
      <li class="colour-bar"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
    </ol>
    <ol class="equaliser-column">
      <li class="colour-bar"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
    </ol>
    <ol class="equaliser-column">
      <li class="colour-bar"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
    </ol>
    <ol class="equaliser-column">
      <li class="colour-bar"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
      <li class="led-mask"></li>
    </ol>
  </div>
<!--/div-->
            
          
!
            
              .clearfix {
	zoom: 1;
	&:before,
	&:after {
    content: "\0020";
    display: block;
    height: 0;
    overflow: hidden;
  }
	&:after {
    clear: both;
  }
}
@background-color:#212121;
html,body {
 background:@background-color;
}
.equaliser-container {
  min-height:100%;
  max-width:160px;
  margin:0 auto;
  padding:80px 0 0 0;
  position:relative;
  .clearfix;
  box-reflect:below 0px -webkit-linear-gradient(top, rgba(0,0,0,0) 60%,rgba(0,0,0,0.1) 100%);
}
.colour-bar {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:18px;
  background:#AEED25;
}
.equaliser-column {
	width:20px;
  float:left;
  margin:0 6px;
  padding:0;
  height:180px;
  position:relative;
  list-style-type:none;
  background:#151515;
  &:nth-child(1) {
  	.colour-bar {
			animation: color-bar 2s 1s ease-out alternate infinite;
    }
  }
  &:nth-child(2) {
  	.colour-bar {
			animation: color-bar 2s 0.5s ease-out alternate infinite;
    }
  }
  &:nth-child(3) {
  	.colour-bar {
			animation: color-bar 2s 1.5s ease-out alternate infinite;
    }
  }
  &:nth-child(4) {
  	.colour-bar {
			animation: color-bar 2s 0.25s ease-out alternate infinite;
    }
  }
  &:nth-child(5) {
  	.colour-bar {
			animation: color-bar 2s 2s ease-out alternate infinite;
    }
  }
}
.led-mask {
	display:block;
  margin:0;
  position:relative;
  &:nth-child(even) {
  	background:@background-color;
    height:6px;
  }
  &:nth-child(odd) {
    height:12px;
  	background:transparent;
    box-shadow:0 0 1px rgba(0,0,0,1),
    inset 0 0 8px rgba(0,0,0,0.9);
  }
}
@keyframes color-bar {
  0% { height:18px; background:#AEED25; }
  10% { height:90px; background:#AEED25; }
  20% { height:54px; background:#AEED25; }
  30% { height:126px; background:#AEED25; }
  40% { height:162px; background:#AEED25; }
  50% { height:54px; background:#AEED25; }
  60% { height:144px; background:#AEED25; }
  70% { height:90px; background:#AEED25; }
  80% { height:126px; background:#AEED25; }
  90% { height:36px; background:#AEED25;   }
  100% { height:18px; background:#AEED25; }
}

/*input[type="checkbox"]#track-control {
	~ equaliser-container .colour-bar {
      animation:paused;
    }
  &:checked {
    ~ equaliser-container .colour-bar {
      animation:running;
    }
  }
}*/

/* background: -webkit-linear-gradient(top, #f70c0c 0%,#f70c0c 18px,#a2d822 18px,#a2d822 100%); */

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console