cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmloctocatspinnerstartv

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.

            
              %ul
  %li#a
  %li#b
  %li#c
  %li#d
  %li#e
  %li#f
  %li#g
  %li#h
  %li#i
            
          
!
            
              body
  background: #bb564f

ul
  position: absolute
  left: 50%
  top: 50%
  transform: rotate(45deg) translate(-50%, -50%)

li
  list-style-type: none
  position: absolute
  top: 0px
  left: 0px
  width: 20px
  height: 20px
  background: #f5d4a1
  border-radius: 50%

@mixin place($n, $t, $l)
  animation: $n 1s ease-in-out infinite
  top: $t
  left: $l        
    
#a
  @include place(a, -40px, -40px)
#b
  @include place(b, -40px, 0px)
#c
  @include place(c, -40px, 40px)
#d
  @include place(d, 0px, -40px)
#e
  @include place(e, 0px, 0px)
#f
  @include place(f, 0px, 40px)
#g
  @include place(g, 40px, -40px)
#h
  @include place(h, 40px, 0px)
#i
  @include place(i, 40px, 40px)
  
@keyframes a
  50%
    top: 0px
    left: -40px
  100%
    top: 0px
    left: -40px
  
@keyframes b
  50%
    top: -40px
    left: -40px
  100%
    top: -40px
    left: -40px
  
@keyframes c
  50%
    top: -40px
    left: 0px
  100%
    top: -40px
    left: 0px
  
@keyframes d
  50%
    top: 40px
    left: -40px
  100%
    top: 40px
    left: -40px
  
@keyframes f
  50%
    top: -40px
    left: 40px
  100%
    top: -40px
    left: 40px
  
@keyframes g
  50%
    top: 40px
    left: 0px
  100%
    top: 40px
    left: 0px
  
@keyframes h
  50%
    top: 40px
    left: 40px
  100%
    top: 40px
    left: 40px
  
@keyframes i
  50%
    top: 0px
    left: 40px
  100%
    top: 0px
    left: 40px

  
            
          
!
999px
Close

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.

Go PRO

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

Console