css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

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.

            
              <section class="ms-grid zero-margin">
  <div class="ms-row">
    <!--<div class="col-1-6">
      <div class="color core darkgray-bgc">
        .darkgray-bgc<br>
        #2F2F2F
      </div>
    </div>-->
    <div class="col-1-6">
      <div class="color core blue-bgc">
        .blue-bgc<br>
        #0078D7
      </div>
      <div class="color shade80 blue-d4-bgc">
        80% shade<br>
        #00172A
      </div>
      <div class="color shade60 blue-d3-bgc">
        60% shade<br>
        #003056
      </div>
      <div class="color shade40 blue-d2-bgc">
        40% shade<br>
        #004881
      </div>
      <div class="color shade20 blue-d1-bgc">
        20% shade<br>
        #0060AC
      </div>
      <div class="color shade0 blue-bgc">
        .blue-bgc<br>
        #0078D7
      </div>
      <div class="color tint20 blue-l1-bgc">
        20% tint<br>
        #3393DF
      </div>
      <div class="color tint40 blue-l2-bgc">
        40% tint<br>
        #66AEE7
      </div>
      <div class="color tint60 blue-l3-bgc">
        60% tint<br>
        #99C9EF
      </div>
      <div class="color tint80 blue-l4-bgc">
        80% tint<br>
        #CCE4F7
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core purple-bgc">
        .purple-bgc<br>
        #5C2D91
      </div>
      <div class="color shade80 purple-d4-bgc">
        80% shade<br>
        ##12081c
      </div>
      <div class="color shade60 purple-d3-bgc">
        60% shade<br>
        #24123a
      </div>
      <div class="color shade40 purple-d2-bgc">
        40% shade<br>
        #371b57
      </div>
      <div class="color shade20 purple-d1-bgc">
        20% shade<br>
        #492474
      </div>
      <div class="color shade0 purple-bgc">
        .purple-bgc<br>
        #5C2D91
      </div>
      <div class="color tint20 purple-l1-bgc">
        20% tint<br>
        #7c57a7
      </div>
      <div class="color tint40 purple-l2-bgc">
        40% tint<br>
        #9d81bd
      </div>
      <div class="color tint60 purple-l3-bgc">
        60% tint<br>
        #bdabd3
      </div>
      <div class="color tint80 purple-l4-bgc">
        80% tint<br>
        #ded5e9
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core magenta-bgc">
        .magenta-bgc<br>
        #B4009E
      </div>
      <div class="color shade80 magenta-d4-bgc">
        80% shade<br>
        #23001f
      </div>
      <div class="color shade60 magenta-d3-bgc">
        60% shade<br>
        #48003f
      </div>
      <div class="color shade40 magenta-d2-bgc">
        40% shade<br>
        #6c005e
      </div>
      <div class="color shade20 magenta-d1-bgc">
        20% shade<br>
        #90007e
      </div>
      <div class="color shade0 magenta-bgc">
        .magenta-bgc<br>
        #B4009E
      </div>
      <div class="color tint20 magenta-l1-bgc">
        20% tint<br>
        #c333b1
      </div>
      <div class="color tint40 magenta-l2-bgc">
        40% tint<br>
        #d266c4
      </div>
      <div class="color tint60 magenta-l3-bgc">
        60% tint<br>
        #e199d8
      </div>
      <div class="color tint80 magenta-l4-bgc">
        80% tint<br>
        #f0cceb
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core red-bgc">
        .red-bgc<br>
        #E81123
      </div>
      <div class="color shade80 red-d4-bgc">
        80% shade<br>
        #2e0306
      </div>
      <div class="color shade60 red-d3-bgc">
        60% shade<br>
        #5c060e
      </div>
      <div class="color shade40 red-d2-bgc">
        40% shade<br>
        #8b0a15
      </div>
      <div class="color shade20 red-d1-bgc">
        20% shade<br>
        #b90d1c
      </div>
      <div class="color shade0 red-bgc">
        .red-bgc<br>
        #E81123
      </div>
      <div class="color tint20 red-l1-bgc">
        20% tint<br>
        #ec404f
      </div>
      <div class="color tint40 red-l2-bgc">
        40% tint<br>
        #f1707b
      </div>
      <div class="color tint60 red-l3-bgc">
        60% tint<br>
        #f59fa7
      </div>
      <div class="color tint80 red-l4-bgc">
        80% tint<br>
        #facfd3
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core orange-bgc">
        .orange-bgc<br>
        #D83B01
      </div>
      <div class="color shade80 orange-d4-bgc">
        80% shade<br>
        #2b0b00
      </div>
      <div class="color shade60 orange-d3-bgc">
        60% shade<br>
        #561700
      </div>
      <div class="color shade40 orange-d2-bgc">
        40% shade<br>
        #812300
      </div>
      <div class="color shade20 orange-d1-bgc">
        20% shade<br>
        #ac2f00
      </div>
      <div class="color shade0 orange-bgc">
        .orange-bgc<br>
        #D83B01
      </div>
      <div class="color tint20 orange-l1-bgc">
        20% tint<br>
        #df6233
      </div>
      <div class="color tint40 orange-l2-bgc">
        40% tint<br>
        #e78966
      </div>
      <div class="color tint60 orange-l3-bgc">
        60% tint<br>
        #efb099
      </div>
      <div class="color tint80 orange-l4-bgc">
        80% tint<br>
        #f7d7cc
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core yellow-bgc">
        .yellow-bgc<br>
        #FFB900
      </div>
      <div class="color shade80 yellow-d4-bgc">
        80% shade<br>
        #322400
      </div>
      <div class="color shade60 yellow-d3-bgc">
        60% shade<br>
        #664a00
      </div>
      <div class="color shade40 yellow-d2-bgc">
        40% shade<br>
        #996f00
      </div>
      <div class="color shade20 yellow-d1-bgc">
        20% shade<br>
        #cc9400
      </div>
      <div class="color shade0 yellow-bgc">
        .yellow-bgc<br>
        #FFB900
      </div>
      <div class="color tint20 yellow-l1-bgc">
        20% tint<br>
        #ffc733
      </div>
      <div class="color tint40 yellow-l2-bgc">
        40% tint<br>
        #FFD566
      </div>
      <div class="color tint60 yellow-l3-bgc">
        60% tint<br>
        #ffe399
      </div>
      <div class="color tint80 yellow-l4-bgc">
        80% tint<br>
        #fff1cc
      </div>
    </div>
  </div>
  <div class="ms-row">
    <div class="col-1-6">
      <div class="color core green-bgc">
        .green-bgc<br>
        #107C10
      </div>
      <div class="color shade80 green-d4-bgc">
        80% shade<br>
        #031803
      </div>
      <div class="color shade60 green-d3-bgc">
        60% shade<br>
        #063106
      </div>
      <div class="color shade40 green-d2-bgc">
        40% shade<br>
        #094a09
      </div>
      <div class="color shade20 green-d1-bgc">
        20% shade<br>
        #0c630c
      </div>
      <div class="color shade0 green-bgc">
        .green-bgc<br>
        #107C10
      </div>
      <div class="color tint20 green-l1-bgc">
        20% tint<br>
        #3f963f
      </div>
      <div class="color tint40 green-l2-bgc">
        40% tint<br>
        #6fb06f
      </div>
      <div class="color tint60 green-l3-bgc">
        60% tint<br>
        #9fca9f
      </div>
      <div class="color tint80 green-l4-bgc">
        80% tint<br>
        #cfe4cf
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core teal-bgc">
        .teal-bgc<br>
        #008272
      </div>
      <div class="color shade80 teal-d4-bgc">
        80% shade<br>
        #001916
      </div>
      <div class="color shade60 teal-d3-bgc">
        60% shade<br>
        #00342d
      </div>
      <div class="color shade40 teal-d2-bgc">
        40% shade<br>
        #004e44
      </div>
      <div class="color shade20 teal-d1-bgc">
        20% shade<br>
        #00685b
      </div>
      <div class="color shade0 teal-bgc">
        .teal-bgc<br>
        #008272
      </div>
      <div class="color tint20 teal-l1-bgc">
        20% tint<br>
        #339b8e
      </div>
      <div class="color tint40 teal-l2-bgc">
        40% tint<br>
        #339b8e
      </div>
      <div class="color tint60 teal-l3-bgc">
        60% tint<br>
        #99cdc6
      </div>
      <div class="color tint80 teal-l4-bgc">
        80% tint<br>
        #cce6e2
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core lightmagenta-bgc">
        .lightmagenta-bgc<br>
        #E3008C
      </div>
      <div class="color shade80 lightmagenta-d4-bgc">
        80% shade<br>
        #2d001b
      </div>
      <div class="color shade60 lightmagenta-d3-bgc">
        60% shade<br>
        #5a0038
      </div>
      <div class="color shade40 lightmagenta-d2-bgc">
        40% shade<br>
        #880054
      </div>
      <div class="color shade20 lightmagenta-d1-bgc">
        20% shade<br>
        #b50070
      </div>
      <div class="color shade0 lightmagenta-bgc">
        .lightmagenta-bgc<br>
        #E3008C
      </div>
      <div class="color tint20 lightmagenta-l1-bgc">
        20% tint<br>
        #e833a3
      </div>
      <div class="color tint40 lightmagenta-l2-bgc">
        40% tint<br>
        #ee66ba
      </div>
      <div class="color tint60 lightmagenta-l3-bgc">
        60% tint<br>
        #f399d1
      </div>
      <div class="color tint80 lightmagenta-l4-bgc">
        80% tint<br>
        #f9cce8
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core darkpurple-bgc">
        .darkpurple-bgc<br>
        #32145A
      </div>
      <div class="color shade80 darkpurple-d4-bgc">
        80% shade<br>
        #090311
      </div>
      <div class="color shade60 darkpurple-d3-bgc">
        60% shade<br>
        #140824
      </div>
      <div class="color shade40 darkpurple-d2-bgc">
        40% shade<br>
        #1e0c36
      </div>
      <div class="color shade20 darkpurple-d1-bgc">
        20% shade<br>
        #281048
      </div>
      <div class="color shade0 darkpurple-bgc">
        .darkpurple-bgc<br>
        #32145A
      </div>
      <div class="color tint20 darkpurple-l1-bgc">
        20% tint<br>
        #5b437b
      </div>
      <div class="color tint40 darkpurple-l2-bgc">
        40% tint<br>
        #84729c
      </div>
      <div class="color tint60 darkpurple-l3-bgc">
        60% tint<br>
        #ada1bd
      </div>
      <div class="color tint80 darkpurple-l4-bgc">
        80% tint<br>
        #d6d0de
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core midblue-bgc">
        .midblue-bgc<br>
        #00188F
      </div>
      <div class="color shade80 midblue-d4-bgc">
        80% shade<br>
        #00041c
      </div>
      <div class="color shade60 midblue-d3-bgc">
        60% shade<br>
        #000939
      </div>
      <div class="color shade40 midblue-d2-bgc">
        40% shade<br>
        #000e55
      </div>
      <div class="color shade20 midblue-d1-bgc">
        20% shade<br>
        #001372
      </div>
      <div class="color shade0 midblue-bgc">
        .darkpurple-bgc<br>
        #00188F
      </div>
      <div class="color tint20 midblue-l1-bgc">
        20% tint<br>
        #3346a5
      </div>
      <div class="color tint40 midblue-l2-bgc">
        40% tint<br>
        #6674bb
      </div>
      <div class="color tint60 midblue-l3-bgc">
        60% tint<br>
        #99a2d2
      </div>
      <div class="color tint80 midblue-l4-bgc">
        80% tint<br>
        #ccd0e8
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core darkteal-bgc">
        .darkteal-bgc<br>
        #004B50
      </div>
      <div class="color shade80 darkteal-d4-bgc">
        80% shade<br>
        #000e0f
      </div>
      <div class="color shade60 darkteal-d3-bgc">
        60% shade<br>
        #001e20
      </div>
      <div class="color shade40 darkteal-d2-bgc">
        40% shade<br>
        #002d30
      </div>
      <div class="color shade20 darkteal-d1-bgc">
        20% shade<br>
        #003c40
      </div>
      <div class="color shade0 darkteal-bgc">
        .darkpurple-bgc<br>
        #004B50
      </div>
      <div class="color tint20 darkteal-l1-bgc">
        20% tint<br>
        #336f73
      </div>
      <div class="color tint40 darkteal-l2-bgc">
        40% tint<br>
        #669396
      </div>
      <div class="color tint60 darkteal-l3-bgc">
        60% tint<br>
        #99b7b9
      </div>
      <div class="color tint80 darkteal-l4-bgc">
        80% tint<br>
        #ccdbdc
      </div>
    </div>
  </div>
  <div class="ms-row">
    <div class="col-1-6">
      <div class="color core darkgreen-bgc">
        .darkgreen-bgc<br>
        #004B1C
      </div>
      <div class="color shade80 darkgreen-d4-bgc">
        80% shade<br>
        #000e05
      </div>
      <div class="color shade60 darkgreen-d3-bgc">
        60% shade<br>
        #001e0b
      </div>
      <div class="color shade40 darkgreen-d2-bgc">
        40% shade<br>
        #002d10
      </div>
      <div class="color shade20 darkgreen-d1-bgc">
        20% shade<br>
        #003c16
      </div>
      <div class="color shade0 darkgreen-bgc">
        .green-bgc<br>
        #004B1C
      </div>
      <div class="color tint20 darkgreen-l1-bgc">
        20% tint<br>
        #336f49
      </div>
      <div class="color tint40 darkgreen-l2-bgc">
        40% tint<br>
        #669376
      </div>
      <div class="color tint60 darkgreen-l3-bgc">
        60% tint<br>
        #99b7a4
      </div>
      <div class="color tint80 darkgreen-l4-bgc">
        80% tint<br>
        #ccdbd1
      </div>
    </div>
    <div class="col-1-6">
      <div class="color core darkblue-bgc">
        .darkblue-bgc<br>
        #002050
      </div>
      <div class="color shade80 darkblue-d4-bgc">
        80% shade<br>
        #00060f
      </div>
      <div class="color shade60 darkblue-d3-bgc">
        60% shade<br>
        #000c20
      </div>
      <div class="color shade40 darkblue-d2-bgc">
        40% shade<br>
        #001330
      </div>
      <div class="color shade20 darkblue-d1-bgc">
        20% shade<br>
        #001940
      </div>
      <div class="color shade0 darkblue-bgc">
        .green-bgc<br>
        #002050
      </div>
      <div class="color tint20 darkblue-l1-bgc">
        20% tint<br>
        #334c73
      </div>
      <div class="color tint40 darkblue-l2-bgc">
        40% tint<br>
        #667996
      </div>
      <div class="color tint60 darkblue-l3-bgc">
        60% tint<br>
        #99a5b9
      </div>
      <div class="color tint80 darkblue-l4-bgc">
        80% tint<br>
        #ccd2dc
      </div>
    </div>
  </div>
</section>
            
          
!
            
              body {
  margin-top: 2em;
}
.ms-row {
  //margin-bottom: 4px;
}
.darkgray-bgc {
  background-color: shade(#767676, 60%);
  color: #ffffff;
}
.color {
  position: relative;
  padding: 0.5em 1em;
  font-size: 13px;
  height: 50px;
  cursor: pointer;
}
.core {
  z-index: 100;
}
.shade80 {
  z-index: 90;
}
.shade60 {
  z-index: 80;
}
.shade40 {
  z-index: 70;
}
.shade20 {
  z-index: 60;
}
.tint20 {
  z-index: 50;
}
.tint40 {
  z-index: 40;
}
.tint60 {
  z-index: 30;
}
.tint80 {
  z-index: 20;
}
[class*="shade"], [class*="tint"] {
  margin-top: -50px;
  transition: margin-top 0.25s cubic-bezier(0.3,0.1,0.3,1);
  &.open {
    margin-top: 0px;
  }
}
            
          
!
            
              $(document).ready(function() {

  $('.core, .splitcore').click(function() {
    $(this).toggleClass('active');
    if ($(this).is('.active')) {
      $(this).siblings().addClass('open');
    } else {
      $(this).siblings().removeClass('open');
    };
  });

});
            
          
!
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