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

Quick-add: + add another resource

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.

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