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.

mixin condenced(str)
  each i in str

  each i in new Array(3)
    .text: +condenced("吾輩は猫である")
    .text: +condenced("名前はまだない")
              =condensed($font_size, $scale: 0.7)
  overflow: visible
    display: block
    font-size: $font_size
    width: $font_size * $scale
    transform: scaleX($scale)
    transform-origin: left center

  font-family: "游明朝体", YuMincho, serif

  margin: 40px auto
  width: 100%
  max-width: 600px
  height: 2px
  background-color: #000

  display: flex
  flex-direction: column
  justify-content: space-between
  align-items: center
  min-height: 100vh
  $h: 40px
  display: flex
  justify-content: space-between
  align-items: center
  margin: 0 auto
  width: 100%
  max-width: 600px
  height: $h


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