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.

            
              <div class="smart-glass">
  <h1>Xbox</h1>
  <div class="logo">
    <div class="circle">
      <div class="circle">
          <div class="circle">
          </div>
      </div>
  </div>
  <div class="hold-x">
    <div class="xbox"></div>
   </div>
  </div>
  <div class="loading-text">
    Loading...
  </div>
</div>
            
          
!
            
              @import compass

$xbox-green: #40A800
$dark: #222
$light: #FFF

@import url(http://fonts.googleapis.com/css?family=Play:400,700)
*
  box-sizing: border-box
  
body
  background-color: $dark
  font-family: 'Play'
  
h1
  font-size: 2rem
  color: $light
  text-align: center
  text-transform: uppercase

.smart-glass
  position: absolute
  margin: auto
  left: 0
  top: 0
  right: 0
  bottom: 0
  width: 288px
  height: 388px

  
.logo
  width: 288px
  height: 288px
  position: relative

.circle
  padding: 20px
  border: 6px solid transparent
  border-top-color: $xbox-green
  border-radius: 50%
  width: 100%
  height: 100%
  animation: connect 2.5s linear infinite
    
.xbox
  background: $light
  width: 80px
  height: 80px
  border-radius: 100%
  overflow: hidden
  position: absolute
  top: 0
  right: 0
  left: 0
  bottom: 0
  margin: auto
  &:after, &:before
    content: ''
    display: block
    border-top: 10px solid $dark
    border-radius: 50%
    height: 90%
    width: 120%
    transform: rotate(-45deg)
    position: absolute
    right: -30%
    top: 15%
  &:before
    left: -30%
    transform: rotate(45deg)

      
.loading-text
  text-transform: uppercase
  color: $light
  text-align: center
  margin: 10px 0
  font-size: 1.4rem
    
@keyframes connect
  0%
    transform: rotate(0deg)
  100%
    transform: rotate(-360deg)
            
          
!
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