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 parts(n, deepness)
  if deepness > 0
    - for (var i = 0; i < n; i++)
      .part= ''
        +parts(n, deepness - 1)
  +parts(4, 3)

              $parts: 4
$z: 0.06em

@mixin center
  position: absolute
  margin: auto
  top: 0
  right: 0
  left: 0
  bottom: 0

html, body
  overflow: hidden
  width: 100%
  height: 100%
  background: #122649
  user-select: none

  @include center
  font-size: 300px
  //perspective: 400
  transform: rotateX(60deg) rotateZ(45deg)
  width: 1em
  height: 1em
  position: absolute
  transform-style: preserve-3d
  backface-visibility: hidden

    font-size: 0.5em
    transform-origin: 100% 100% (-$z)
    &::after, &::before
      content: ''
      display: block
      position: absolute
      width: 100%
      height: $z
      transform-origin: 50% 100%
      bottom: 0
      transform: rotateX(90deg)
      background: #00326B
      width: $z
      height: 100%
      right: 0
      transform-origin: 100% 50%
      transform: rotateY(-90deg)
      background: #004298

    transform: scale3d(1, 1, 1) translateZ($z / 2)
    transition: transform 0.8s, background 0.8s, box-shadow 0.8s
      transform: scale3d(1, 1, 2) translateZ($z / 4)  
      transition: transform 0.2s, background 0.8s, box-shadow 0.8s
      cursor: pointer
        background: #fff !important // sorry
        box-shadow: 0 0 0.5em #fff
        transition: transform 0.8s, background 0.1s, box-shadow 0.1s
      top: 0
      left: 0
      top: 0
      right: 0
      bottom: 0
      right: 0
      bottom: 0
      left: 0
    @for $i from 1 through $parts
        background: hsl(10 * $i + 180, 80%, 50%)

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