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.

              <div id="container">
  <h1>Web design panel</h1>
  <h2>Choose your flavor</h2>
  <div class="panel">
    <div class="input-mask">
      <label class="label label-good"><input type="radio" name="good" id="good"/> Good</label>

    <div class="input-mask">
      <label class="label label-cheap"><input type="radio" name="cheap" id="cheap"/>Cheap</label>

    <div class="input-mask">
      <label class="label label-fast"><input type="radio" name="fast" id="fast"/>Fast</label>
  background #e4ecf0
  font-family 'Raleway'
  width 400px 
  max-width 90%
  padding-top 30px
  position absolute
  top 50%
  left 50%
  transform translate(-50%, -50%)
  background-color rgba(255,255,255,0.6)
  box-shadow -1px 1px 6px rgba(0,0,0,0.15)
  border-radius 8px
  font-size 36px
  font-weight 300
  text-align center
  margin-bottom 0.5em
  color #444f54
  font-weight 700
  font-size 14px
  text-align center
  margin-bottom 2em
  color #839fd6
  padding 30px 30px 20px
  border-top 1px solid rgba(80,80,80,0.1)
  position relative
  display inline-block
  font-size 30px
  line-height 1em
  margin-top 0.5em
  margin-bottom 1em
  padding-left 100px
  cursor pointer
  font-weight 600
    content ''
    display block
    position absolute
    transform translateY(-50%)
    top 50%
    transition all 0.7s ease
    width 60px
    height 18px 
    border-radius 9px
    background-color #aaa
    left 0
    width 30px
    height 30px
    background-color #ccc
    border-radius 50%
    left -5px
  opacity 0
  //visibility none
  display none

    left 35px
    background-color #79a16d
    background-color #6dbe56
    background-color #6d7ea1
    background-color #5574bd
    background-color #a26d74 
    background-color #bd5562

var uncheck = function (el){
  $(el).prop('checked', false);

var checkOptions = function(optionTry){
  var good = $('#good')[0].checked;
  var cheap = $('#cheap')[0].checked;
  var fast = $('#fast')[0].checked;
  var option = optionTry;
  if (good && option == 'cheap') {
  } else if (cheap && option == 'fast') {
  } else if (fast && option == "good") {
  //console.log(good, cheap, fast);

  $(':radio').on('change', function(){
    var id = $(this)[0].id;
🕑 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 ..................