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 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.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

    li.is_active(color='#bc2828' emoji='	๐ŸŽ') Apple
    li(color='#d68a8a' emoji='๐Ÿ‘') Peach
    li(color='#dd7e28' emoji='๐ŸŠ') Orange
    li(color='#e0c44f' emoji='๐ŸŒ') Banana
    li(color='#92bf7b' emoji='๐Ÿ') Pear
  top: 45%;
  left: 50%;
  transform: translate(-50%,-50%);
  background-color: #ececec;
  transition: background-color .3s ease;
  position: absolute;
  margin-left: 20px;
  font-size: 250px;
  opacity: .2;
  position: absolute;
    padding: 10px 15px;
    cursor: default;
    color: #222;
    position: relative;
    display: inline-block;
    background-color: #fff;
    border-radius: 100px;
    vertical-align: middle;
    min-width: 12px;
    min-height: 12px;
    padding: 0px;
    transition: all .3s ease;
    margin-right: 5px;
    box-shadow: 0 1px 2px 0px rgba(0,0,0,.2);
    cursor: hand;
    cursor: pointer;
              var tabNames = [];
//loop thru all li element and grab all data, push them into an array of objects
  var _this = $(this);
  var elem = {};
  elem.name = _this.text();
  elem.color = _this.attr('color');
  elem.emoji = _this.attr('emoji');
  //if this li is active, take those data and apply to body
  if (_this.hasClass('is_active')){
  } else {_this.text('')};

//on click change text value, bg data, emoji
$('li').on('click', function(e) {
  var _this = $(this);
  var _idx = _this.index();

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.


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