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

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

              
                <body>
   <div class="bar">
     <div class="c1 c">
       <div class="triangle t1"></div>
       <div class="s1">
         <div class="triangle t1 inner"></div>
       </div> 
     </div>
     <div class="c2 c">
       <div class="triangle t2 down"></div>
       <div class="s2">
         <div class="triangle t2 innerdown"></div>
       </div>
     </div>
     <div class="c3 c">
       <div class="triangle t3"></div>
       <div class="s3">
         <div class="triangle t3 inner"></div>
     </div>
     <div class="c4 c">
       <div class="triangle t4 down"></div>
       <div class="s4">
         <div class="triangle t4 innerdown"></div>
       </div>
     </div>
     <div class="c5 c">
       <div class="triangle t5"></div>
       <div class="s5">
         <div class="triangle t5 inner"></div>
       </div>
     </div>
     <div class="c6 c">
       <div class="triangle t6 down"></div>
       <div class="s6">
         <div class="triangle t6 innerdown"></div>
       </div>
     </div>
     <div class="c7 c">
       <div class="triangle t7"></div>
       <div class="s7">
         <div class="triangle t7 p7 inner"></div>
       </div>
     </div>
  </div>
</body>
              
            
!

CSS

              
                body{
  background: #1D1D1D;
}

.bar{
  width: 340px;
  height: 60px;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -170px;
}

.triangle{
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
	border-right: 35px solid transparent;
	border-top: 60px solid #242424;
  position: absolute;
}
.inner{
  border-top: 60px solid #1D1D1D;
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
  z-index:2;
}

.innerdown{
  border-top: 60px solid #1D1D1D;
  -webkit-transform: scale(0.9) rotate(180deg);
  transform: scale(0.9) rotate(180deg);
  z-index:2;
}

.down{
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}

.t1{
  animation: glow .5s ease 2s;
  -webkit-animation: glow .5s ease 2s;
    animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.t2{
  left: 45px;
  animation: glow .5s ease 2.5s;
  -webkit-animation: glow .5s ease 2.5s;
    animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.t3{
  left: 90px;
  animation: glow .5s ease 3s;
  -webkit-animation: glow .5s ease 3s;
    animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.t4{
  left: 135px;
  animation: glow .5s ease 3.5s;
  -webkit-animation: glow .5s ease 3.5s;
    animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.t5{
  left: 180px;
  animation: glow .5s ease 4s;
  -webkit-animation: glow .5s ease 4s;
    animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.t6{
  left: 225px;
  animation: glow .5s ease 4.5s;
  -webkit-animation: glow .5s ease 4.5s;
    animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.t7{
  left: 270px;
  animation: glow .5s ease 5s;
  -webkit-animation: glow .5s ease 5s;
    animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.s1{
   animation: fade .5s linear 2s;
  -webkit-animation: fade .5s linear 2s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.s2{
   animation: fade .5s linear 2.5s;
  -webkit-animation: fade .5s linear 2.5s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.s3{
   animation: fade .5s linear 3s;
  -webkit-animation: fade .5s linear 3s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.s4{
   animation: fade .5s linear 3.5s;
  -webkit-animation: fade .5s linear 3.5s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.s5{
   animation: fade .5s linear 4s;
  -webkit-animation: fade .5s linear 4s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.s6{
   animation: fade .5s linear 4,5s;
  -webkit-animation: fade .5s linear 4.5s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

.s7{
   animation: fade .5s linear 5s;
  -webkit-animation: fade .5s linear 5s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

@keyframes pulse{
  0% { transform:scale(1);}
  50% { transform:scale(0.8);}
  100% { transform:scale(1);}
}

@-webkit-keyframes pulse{
  0% { -webkit-transform:scale(1);}
  50% { -webkit-transform:scale(0.8);}
  100% { -webkit-transform:scale(1);}
}

@keyframes fade{
  0% { opacity:1;}
  100% { opacity: 0;}
}

@-webkit-keyframes fade{
  0% {opacity:1}
  100% {opacity: 0;}
}

@keyframes fadein{
  0% { opacity:0;}
  100% { opacity:1;}
}

@-webkit-keyframes fadein{
  0% {opacity:0}
  100% {opacity:1;}
}

@keyframes blink{
  0%{opacity:1}
  68%{opacity:1}
  70%{opacity:0}
  72%{opacity:1}
  100%{opacity:1}
}

@-webkit-keyframes blink{
  0%{opacity:1}
  68%{opacity:1}
  70%{opacity:0}
  72%{opacity:1}
  100%{opacity:1}
}

@-webkit-keyframes fadein{
  0% {opacity:0}
  100% {opacity:1;}
}

@keyframes glow{
  0% { border-top: 60px #242424 solid; z-index:1;}
  100% { border-top: 60px #AED4FF solid; z-index:2;}
}

@-webkit-keyframes glow{
  0% { border-top: 60px #242424 solid; z-index:1;}
  100% { border-top: 60px #AED4FF solid; z-index:2;}
}

.bar:before, .bar:after{
  content: '';
  opacity: 0;
  height: 24px;
  width: 24px;
  position: absolute;
  top: -60px;
  border-radius: 12px;
  background: #AED4FF;
  animation: fadein .5s linear forwards 6s, blink 6s infinite 10s;
  -webkit-animation: fadein .5s linear forwards 6s, blink 6s infinite 10s;
}
.bar:before{
  left: 24px;
}
.bar:after{
  right: 24px;
}
              
            
!

JS

              
                
              
            
!
999px

Console