Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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.

+ add another resource

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
.DJ
 .handYO
  .fings
 .table
 .disc
  

%a{:href => "https://dribbble.com/shots/1213587-Disco?list=searches&tag=disco&offset=4"} Original shot here!
%br
 %a{:href => "https://codepen.io/XDBoy018/pen/xBhJa"}Wanna game?
 %a{:href => "https://codepen.io/XDBoy018/pen/XJrBQg"}
  Or have fun?
 %a{:href => "https://codepen.io/XDBoy018/"} Or follow me?
              
            
!

CSS

              
                @import "compass/css3";

//Heart please!! ^_^
//Colors!!!!
//Fonts!!
@import url(https://fonts.googleapis.com/css?family=Raleway);
$c1:#afdce6;
$c2:#209aac;
$c3:#02022c;
$c4:#61bace;
$bg:#b074b7;
//"Pre-processing" ??
*:before,*:after{
  position: absolute;
  content:"";
}
//A gentle body.
body{
  overflow: hidden;
  background: $bg;
}
a{
  text-decoration:none;
  color:$c3;
  font-family: 'Raleway', sans-serif; 
  font-size:20px;
  opacity:0.6;
  &:hover{
    opacity:1;
  }
}
//Master.
.DJ{
  position: absolute;
  width:800px;
  height:100%;
  right:0;
 }
//Hand and fingers
//Made'em with box-shadows and pseudos!
.handYO{
  height:100px;
  width:250px;
  top:250px;
  background: linear-gradient(90deg, $c1 60%, $c2 50%);
  position: absolute;
  right:0;
  border:15px solid $c3;
  border-right:none;
 @include animation(rock 0.4s linear infinite);
  &:before{
    height:60px;
    width:40px;
    background:#eee;
    left:109px;
    z-index:1;
    @include box-shadow(
      35px 160px 0 -3px $c1,
      -75px -110px 0 -3px $c1
      );
  }
  &:after{
    background:linear-gradient(90deg ,$c4 60%, $c2 40%);
    height:30px;
    width:250px; 
    bottom:0;
    @include box-shadow(
      5px 105px 0 -2px $c3,
      5px -165px 0 -2px $c3
      );
    }
  }
//Wiggle wiggle!
//Backspin!!
.fings{
  height:7px;
  background:darken($c1, 20%);
  width:100px;
  position: absolute;
  left:-130px;
  border:15px solid $c3;
  @include border-radius(100px 10px 10px 100px);
 @include box-shadow(
    25px 28px 0 -5px $c3,
    25px 52px 0 -5px $c3,
    25px 72px 0 -5px $c3
   );
  z-index:-2;
  &:before{
    height:7px;
    background:darken($c1, 20%);
    width:75px;
    top:28px;
    left:25px;
    @include border-radius(100px 10px 10px 100px);
     @include box-shadow(
    0 22px 0  #61bace,
    0 42px 0  #61bace
    );
    }
  &:after{
    //blank 
  }
}
//The table
.table{
  z-index:-4;
  position: absolute;
  height:450px;
  width:600px;
  border:20px solid $c3;
  border-right:none;
  right:0;
  top:60px;
  @include border-radius(100px 0 0 100px);
  background: darken($bg ,20%);
  &:before{
    top:30px;
    right:140px;
    height:30px;
    width:30px;
    background:$c1;
    @include animation(blink 0.1s linear infinite);
    @include border-radius(50%);
    @include box-shadow(
      60px 0 0 $c1
      ,120px 0 0);
  }
  
}
//Disc
.disc{
  position: absolute;
  height:430px;
  width:430px;
  z-index:-3;
  @include border-radius(50%);
  border:30px solid $c3;
  background-image:linear-gradient(270deg, $c1 85%, #e3e3e3 25%);
  @include animation(backspin 1s linear infinite);
  left:20px;
  top:58px;
  &:before{
    height:60px;
    width:60px;
    @include border-radius(50%);
    background:$c1;
    top:185px;
    left:185px; 
    @include box-shadow(
      0 0 0 40px $bg
      ,0 0 0 60px $c3);
   }
  &:after{
    height:300px;
    width:300px; 
    border:50px double ;
    border-color:transparent $c3;
    @include border-radius(50%);
    left:15px;
    top:15px;
  }
}
@include keyframes(backspin){
  100%{@include transform(rotate(360deg))};
}
@include keyframes(blink){
  50%{background:$c3;}
}


              
            
!

JS

              
                //Really?
//https://dribbble.com/shots/1213587-Disco?list=searches&tag=disco&offset=4
              
            
!
999px

Console