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 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.

            
              .container
  - for (var i = 0; i < 10; i++)
    .dot
  .calendar
    .frame
      .corner--top
      .corner--bottom
    h1 04
    h2 FEB
    h3 HOVER ME!
            
          
!
            
              $black: #3a3a3a;

@mixin size($h: 100%, $w: 100%) {
  height: $h;
  width: $w;
}

body {
  @include size(100vh, 100vw);
  margin: 0;
  overflow: hidden;
  background: #1c1c1c;
  font-family: 'Quantico', sans-serif;
  transition: all 0.5s;
}

.container {
  @include size(350px, 350px);
  position: relative;
  top: 30%;
  margin: auto;
}

.dot {
  @include size(50%, 50%);
  position: absolute;
  top: -1%;
  left: -1%;
  transition: all .8s linear;
}

@for $i from 1 through 10 {
  $red: random(256)-1;
  $green: random(256)-1;
  $blue: random(256)-1;
  
  .dot:nth-child(#{$i}) {
    border: 5px solid rgb($red, $green, $blue);
    top: $i * 1%;
    left: -$i * 1%;
  }
}

.calendar {
 
  .frame {
    @include size(50%, 50%);
    position: absolute;
    background: white;
    border: 4px solid $black;
    
    .corner--top {
      @include size(50%, 50%);
      position: absolute;
      top: 5%;
      left: 5%;
      border-top: 4px solid $black;
      border-left: 4px solid $black;
      transition: all .8s linear;
    }
    
     .corner--bottom {
      @include size(50%, 50%);
      position: absolute;
      bottom: 5%;
      right: 5%;
      border-bottom: 4px solid $black;
      border-right: 4px solid $black;
      transition: all .8s linear;
    }
  }
  
  h1 {
    position: absolute;
    top: 5%;
    left: 11.5%;
    color: $black;
    margin: 0;
    font-size: 80px;
  }

  h2 {
    position: absolute;
    top: 30%;
    left: 12%;
    color: $black;
    margin: 0;
    font-size: 20px;
    letter-spacing: 32px;
  }
  
  h3 {
    position: absolute;
    top: 30%;
    left: 60%;
    color: white;
    margin: 0;
    font-size: 20px;
    letter-spacing: 32px;
  }
  
}

 .container:hover .corner--top {
    top: 15%;
    left: 15%;
  }

 .container:hover .corner--bottom {
    bottom: 15%;
    right: 15%;
  }

@for $i from 1 through 10 {
  .container:hover .dot:nth-child(#{$i}) {
    top: $i * 2%;
    left: -$i * 2%;
  }
}

            
          
!
999px
Loading ..................

Console