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.

            
              

body{
  width:100%;
  height:100vh;
  background:#222;
  .wrap{
    position:absolute;
    left:50%;
    top:50%;
    width:300px;
    height:300px;
    transform:translateX(-50%) translateY(-50%);
    animation:backspin 20s linear infinite;
    border-radius:100%;
    overflow:hidden;
    &:before{
      content:'';
      position:absolute;
      width:100%;
      height:100%;
      left:0;
      top:0;
      background:radial-gradient(circle at center, #222, #222 50px, transparent 100px, transparent 125px, #222 150px);
      z-index:3;
      transform:translateZ(100px);
    }
    @keyframes backspin{
      0%{
        transform:translateX(-50%) translateY(-50%) rotate(0deg);
      }
      100%{
        transform:translateX(-50%) translateY(-50%) rotate(-360deg);
      }
    }
    .dot{
      width:5px;
      height:5px;
      position:absolute;
      border-radius:500%;
      left:calc(50% - 5px);
      top:calc(50% - 100px);
      transform-origin:50% 100px;
      @for $i from 1 through 40 {
          &:nth-of-type(#{$i}) {
            transform:rotate(#{$i * 9}deg);
            animation:colorshift 5s ease-in-out infinite;
            animation-delay:#{$i / -8}s;
            .line{
              animation-delay:#{$i / -8}s;
            }
            @keyframes colorshift{
              0%{
                filter:hue-rotate(0deg);
              }
              100%{
                filter:hue-rotate(600deg);
              }
            }
          }
         
        }
      .line{
        width:200px;
        height:5px;
        background:repeating-linear-gradient(to right, #ccff00, #ccff00 5px, transparent 5px, transparent 20px, #ccff00 20px);
        background-repeat:repeat-X;
        background-size:20px 20px;
        position:absolute;
        left:0;
        top:100px;
        transform-origin:50% 200px;
        animation:flip 10s ease-in-out infinite;
        @keyframes flip{
          0%{
            background-position: 0 0;
          }
          25%{
            background-position: 50% 0;
          }
          50%{
            background-position: 100% 0;
          }
          75%{
            background-position: 150% 0;
          }
          100%{
            background-position: 200% 0;
          }
        }
      }
    }
  }
}
            
          
!
999px
Loading ..................

Console