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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                .back
  .background
  .midground
  .foreground
    
.stage
  .hover
    .board
      .shade
      .inner
        %li.tennis
        %li.snake
        %li.barbie
        %li.mattel
        %li.barbie
        %li.mattel
        %li.snake
        %li.snake
        %li.barbie
        %li.barbie
        %li.tennis
        %li.copy
          %p hover
        %li.copy
          %p board
        %li.footpad
          .inner
  .shadow
  

    
      
              
            
!

CSS

              
                @import "compass/css3";

*{@include box-sizing(border-box);}
html, body{width:100%; height:100%; margin:0px; padding:0px;}
body{
  background:#96E2FF;
  font-family: 'greatscott';
  background: linear-gradient(135deg, #34a4ca 0%, #59d7dd 28%, #a8f2f0 59%, #d0f8ef 84%, #d6f6e1 100%);
}

@font-face {
  font-family: 'greatscott';
  src: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/21555/bttf-webfont.woff') format('woff'),
       url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/21555/blaze-itc-tt_1.ttf') format('truetype');
}

.stage{
width: 330px;
height: 330px;
margin: 0 auto;
position: relative;
border-radius: 100%;
top: -80%;
}
.back{
height:100%;
pointer-events:none;
}
.back *{
@include transition(all 1.0s ease);
}

@-webkit-keyframes STAR-MOVE {
	from {
		background-position: 5% 5%
	}
	to { 
		background-position: -1300% 0%
	}
}

.background {
	background: transparent url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/21555/background.png) repeat 5% 5%;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: -100;
	-webkit-animation: STAR-MOVE 200s linear infinite;
}
.fast .background{
  -webkit-animation: STAR-MOVE 10s linear infinite;
}

.midground {
	background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/21555/midground.png) repeat 20% 20%;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 200;	
	-webkit-animation: STAR-MOVE 150s linear infinite;
}
.fast .midground{
  -webkit-animation: STAR-MOVE 7.5s linear infinite;
}
.foreground {
	background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/21555/foreground.png) repeat 35% 35%;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 300;
		-webkit-animation: STAR-MOVE 100s linear infinite;
}
.fast .foreground{
  -webkit-animation: STAR-MOVE 5.0s linear infinite;
}



/* hoverboard */
.hover{
-webkit-animation: hover 2.3s infinite;
  animation-timing-function: ease-in-out;
}

@-webkit-keyframes hover {
  0% {@include transform(translate(0px, 0px));}
  50% {@include transform(translate(0px, 10px));}
}

.board{
//border: 1px solid black;
overflow:hidden;
margin: 0 auto;
position: relative;
top: 26px;
height: 260px;
width: 80px;
border-radius: 100px 100px 35px 35px;
padding:6px;
background:#EE9CC0;
box-shadow: 0px 0px 0px #E687B1;

  
@include perspective(300px);
@include transform(perspective(500px) rotate(0deg) rotateX(0deg) rotateY(0deg) rotateZ(0deg));
  @include transition(all 1.0s ease);
}

.stage:hover .board{
@include perspective(300px);
@include transform(perspective(700px) rotate(90deg) rotateX(0deg) rotateY(-60deg) rotateZ(0deg) translate3d(0px, 0px, -70px));
box-shadow: 10px 0px 0px #E687B1;
  
}

.shadow{
display: block;
position: relative;
width: 80px;
height: 8px;
background: rgba(87, 168, 184, 0.57);
top: 60px;
border-radius: 10px;
left: 38%;
  @include transition(all 1.0s ease);
opacity: 0.75;
  -webkit-filter:blur(0px);
  
}
.stage:hover .shadow{
width:260px;
  left:10%;
opacity: 0.4;
}
.shade{
position: absolute;
width: 100px;
height: 270px;
background: rgba(122, 51, 97, 0.08);
z-index: 1;
right: 0px;
left:50px;
  @include transition(all 1.0s ease);
@include transform(rotateZ(13deg)); 
}

.stage:hover .shade{
@include transform(rotateZ(100deg)); 
  opacity:0;
}


.board > .inner{
  width:100%;
  height:100%;
  overflow:hidden;
  position:relative;
  border-radius: 100px 100px 25px 25px;
}
li{
  list-style-type:none;
  position: absolute;
}
li.tennis{
  background: #E5D087;
width: 80px;
height: 30px;
border: 4px solid #F3D7E6;
@include transform(rotate(-30deg));
}
li.snake{
width: 7px;
background: #BBBE80;
@include transform(rotate(30deg));  
}
.mattel{
background: #F57765;
width: 18px;
height: 18px;
border-radius: 100%;
position: absolute;
top: 39px;
right: -1px;
border: 4px solid #F3D7E6;
}
.barbie{
width: 16px;
height: 140px;
background: #EF3393;
position: absolute;
left: 20px;
margin-top: 12px;
border-left: 4px solid #f4e1ec;
  @include transform(rotate(120deg));
}
.copy{
background: #E5D087;
width: 106px;
height: 16px;
position: absolute;
-webkit-transform: rotate(-12deg);
left: -8px;
}
.copy p{
color: #EF3393;
font-size: 8px;
letter-spacing: 5px;
position: absolute;
top: -5px;
left: 20px;
margin-left: -8px;
}
.footpad{
background:#6DB9A6;
box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.3), inset -1px -1px 0px rgba(0, 0, 0, 0.1), 0px 0px 0px #65A898;
@include transition(all 1.0s ease);


}
.stage:hover .footpad{
box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.3), inset -1px -1px 0px rgba(0, 0, 0, 0.1), 6px 0px 0px #5C9789;
  margin-left:-5px;

}

.footpad .inner{
background: #7DCBB3;
width: 80%;
margin-left:10%;
height: 47%;
margin-top: 14px;
background:#7DCBB3;
border-radius: 17px;
}

li:nth-child(1){
left: -30px;
top: -7px;
}
li:nth-child(2){
height: 100px;
left: 36px;
}
li:nth-child(3){
top: -29px;
}
li:nth-child(5){
border-right: 4px solid #f4e1ec;
border-left:0px;
  top:-1px;
}
li:nth-child(6){
top: 100px;
left: 0px;
}
li:nth-child(7){
top: 81px;
height: 100px;
left: 39px;
 @include transform(rotate(-36deg));
}
li:nth-child(8){
top: 148px;
height: 100px;
left: 32px;
 @include transform(rotate(-133deg));
}
li:nth-child(9){
top: 87px;
}
li:nth-child(10){
top: 114px;
border-right: 4px solid #f4e1ec;
border-left: 0px;
}
li:nth-child(11){
top: 237px;
 @include transform(rotate(-28deg));
}
li:nth-child(12){
border-top: 3px solid #F3D7E6;
  top: 112px;
}
li:nth-child(13){
border-bottom: 3px solid #F3D7E6;
  top: 135px;
}
li:nth-child(14){
width: 53px;
height: 53px;
top: 167px;
left: 6px;
border-radius: 100%;

}
              
            
!

JS

              
                
              
            
!
999px

Console