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.

              @import compass/css3

$star-count: 200
  width: $radius
  height: $radius
  @-webkit-keyframes #{$name}
  @-moz-keyframes #{$name}
  @-ms-keyframes #{$name}
  @keyframes #{$name}
  position: absolute
  width: 100%
  height: 100%
  padding: 0
  margin: 0
  +animation(bgcolor 9s ease-in-out infinite)
  position: absolute
  top: 50%
  left: 50%
  +translate(-50%, -50%)
  background: #ffad00
  z-index: 1

  content: ""
  display: block
  position: absolute
  top: 3px
  left: 3px
  +animation(bgcolor 9s ease-in-out infinite, moon 9s ease-in-out infinite)

  background: #fff
  height: 2px
  width: 2px
  position: absolute
  +animation(twinkle 5s infinite)
  @for $i from 1 to $star-count+1        
    $delay: random(20)
      animation-delay: -#{$delay}s
      top: random(99) + vh
      left: random(99) + vw
    background-color: #fff
  43%, 57%
    background-color: #002038
    background-color: #fff

  0%, 10%
    left: -250px
  45%, 55%
    left: 3px
  90%, 100%
    left: 250px
    opacity: 1
    opacity: .3
    opacity: .3
    opacity: 1
    opacity: .3

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