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.

            
              $wf = 1px solid rgba(#fff, .8)
$size = 20vh
$mainbg = #222
$grbg1 = linear-gradient( 135deg, rgba(#FCCF31,1), rgba(#F55555,.95))
$grbg2 = linear-gradient( 135deg, rgba(#E2B0FF,1), rgba(#9F44D3,.95))

html
  background $mainbg
  
.loader
  // border $wf
  position absolute
  width $size
  height $size
  top 50%
  left 50%
  margin-top -($size/2)
  margin-left -($size/2)
  perspective 60vh
  &:before, &:after
    // border $wf
    content " "
    position absolute
    width 100%
    height 100%
    border-radius 50%
  &:before
    left -($size/1.5)
    background $grbg1
    transform translateZ(0vh)
    z-index 1
    animation rotation1 1.5s ease-out infinite
  &:after
    right -($size/1.5)
    background $grbg2
    transform translateZ(0vh)
    z-index 1
    animation rotation2 1.5s ease-out infinite
@keyframes rotation1
  25%
    left 0
    transform translateZ(-10vh)
  50%
    left ($size/1.5)
    transform translateZ(0vh)
  75%
    left 0
    transform translateZ(20vh)
    z-index 2
@keyframes rotation2
  25%
    right 0
    transform translateZ(20vh)
    z-index 2
  50%
    right ($size/1.5)
    transform translateZ(0vh)
  75%
    right 0
    transform translateZ(-10vh)
            
          
!
999px
Loading ..................

Console