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.

  - (1..6).each do |i|
    %div{:class => "tri#{i}"}
              @consize: 140px;
@bcolor: lightgray;
  margin: 20px auto;
  position: relative;
  height: @consize;
  width: @consize;
  border: @bcolor 2px solid;
  border-radius: 100%;
  background-image:radial-gradient(circle at center, white 0px, white 6px, transparent 6px, transparent 14px, white 14px, white 26px, transparent 26px, transparent 34px, white 34px, white 46px, transparent 46px, transparent 54px, white 54px, white 64px, transparent 64px, transparent 74px), 
radial-gradient(circle at center, transparent 10px, @bcolor 10px, @bcolor 11px, transparent 11px, transparent 30px, @bcolor 30px, @bcolor 31px, transparent 31px, transparent 50px, @bcolor 50px, @bcolor 51px, transparent 51px, transparent 70px, @bcolor 70px, @bcolor 71px, transparent 71px),
linear-gradient(to right, transparent 50%, @bcolor 50%, transparent 51%),
linear-gradient(30deg, transparent 50%, @bcolor 50%, transparent 51%), 
linear-gradient(-30deg, transparent 50%, @bcolor 50%, transparent 51%);

@hhp : 30px;
@atk : 28px;
@def : 25px;
@spa : 6px;
@spd : 16px;
@spe : 31px;

  border-style: solid;
  border-width: @side1 @side2;
  border-color: transparent transparent @color @color;
  transform: matrix(cos(@ang), sin(@ang), -(cos(@ang)+sqrt(3)*sin(@ang))/2, (sqrt(3)*cos(@ang)-sin(@ang))/2, 0 ,0);
  transform-origin: left bottom;
  position: absolute;
  bottom: 50%;
  left: 50%;
  transition: all .3s;
    border-color: transparent transparent mix(@color,gold,50%) mix(@color,gold,50%);
    filter: drop-shadow(0 0 5px rgba(0,0,0,.2));
    z-index: 5;

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