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

              
                        <div class="calendar-holder">
            <div class="calendar-body"> 
                <div class="calendar-outline"> </div>
                <div class="top-bg apr"> </div>
                <div class="cloud-bottom"> </div>
                <div class="sun"> </div>
                  <div class="rain rain-a"></div>
                  <div class="rain rain-b"></div>
                  <div class="rain rain-c"></div>
                <div class="bottom-bg"> </div>
                <div class="calendar-row"></div>
                <div class="calendar-column"></div>
        
            </div>     
        </div>
              
            
!

CSS

              
                /* Calendar construction */

.calendar-holder{
    margin: 5% auto;
    width: 280px;
    height: 430px;
}

.calendar-body {
    position: relative;
    width: 270px;
    height: 200px;
    overflow: none;
}

.calendar-outline {
    border: 10px solid #666;
    width: 260px;
    height: 410px;
    position: absolute;
    left: 0;
    top: 0;
}

.calendar-row {
    width: 260px;
    height: 10px;
    position: absolute;
    top: 210px;
    left: 10px;
    background-color: #666;
}

.calendar-row::before {
    content: " ";
    width: 260px;
    height: 10px;
    position: absolute;
    top: 70px;
    background-color: #666;
}

.calendar-row::after {
    content: " ";
    width: 260px;
    height: 10px;
    position: absolute;
    top: 140px;
    background-color: #666;
}

.calendar-column {
    width: 10px;
    height: 220px;
    position: absolute;
    left: 90px;
    top: 210px;
    background-color: #666;
}

.calendar-column::after {
    content: " ";
    width: 10px;
    height: 220px;
    position: absolute;
    left: 90px;
    background-color: #666;
}

/*Background for the top half*/
.top-bg {
    position: absolute;
    width: 260px;
    height: 200px;
    top: 10px;
    left:10px;
    z-index: -20;
    overflow: hidden;
}

/*Color and position for bottom half background color.*/
.bottom-bg {
    position: absolute;
    top: 210px;
    left: 10px;
    width: 260px;
    height: 220px;
    background-color: #efefef;
    z-index: -10
}

/*Defines unique color for top half background*/
  .apr {
    background-color: #11ccff;
}
  




  /* Inner Calendar Elements */ 
  
  
  .sun {
    position: absolute;
    left: 60px;
    top: 52px;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background-color: yellow;
    z-index: -11;
}

/*Cloud is constructed out of a wide rounded rectangle and two circles created using the :before and :after pseudo classes on the original element*/
.cloud-bottom {
    position: absolute;
    left: 80px;
    top: 80px;
    width: 120px;
    height: 40px;
    background-color: #fff;
    border-radius: 40px;
    -webkit-animation: cloud 2.7s ease-in-out infinite;
    animation: cloud 2.7s infinite;
}

.cloud-bottom::before {
    content: "";
    position: absolute;
    left: 60px;
    top: -14px;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background-color: #fff;
    border-radius: 40px;
}

.cloud-bottom::after {
    content: "";
    position: absolute;
    left: 18px;
    top: -26px;
    width: 66px;
    height: 66px;
    border-radius: 100%;
    background-color: #fff;
    border-radius: 40px;
}

/*Raindrops are each a circle with a :after triangle absolutely positioned directly above*/
.rain {
    position: absolute;
    z-index: -13;
    opacity: 0;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: aliceblue;
    -webkit-animation: rain 1.5s infinite;
    animation: rain 1.5s infinite;
}

/*Each drop has a unique position and delay on its animation*/
.rain-a {
    left: 90px;
    top: 100px;
    -webkit-animation-delay: .5s;
    animation-delay: .5s;
}

.rain-b {
    left: 130px;
    top: 90px;
    -webkit-animation: rain 1.5s infinite;
    animation: rain 1.5s infinite;
}

.rain-c {
    left: 160px;
    top: 110px;
    -webkit-animation-delay: 1s;
    animation-delay: 1s;
}

/*Each drop's tip*/
.rain-a::before, .rain-b::before, .rain-c::before {
    content: " ";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid aliceblue;
    position: relative;
    top: -30px;
}


  
  /* Animations */
  
  /*Defines cloud floating*/
  @-webkit-keyframes cloud {
    0% {
        -webkit-transform: translateY(12px);
    }
    50% {
        -webkit-transform: translateY(-4px);
    }
    100% {
        -webkit-transform: translateY(12px);
    }
}
/*Defines raindrops falling and fading*/
@-webkit-keyframes rain {
    0% {
        opacity: 1;
        -webkit-transform: translateY(0px);
    }
    100% {
        opacity: 0;
        -webkit-transform: translateY(95px);
    }
}

/*Repeating animations for cross-browser compatibility*/
@keyframes cloud {
    0% {
        transform: translateY(12px);
    }
    50% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(12px);
    }
}

@keyframes rain {
    0% {
        opacity: 1;
        transform: translateY(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(95px);
    }
}

              
            
!

JS

              
                // April calendar icon. See the rest of the collection at http://designinquotes.com/everything-that-august-left-behind/
              
            
!
999px

Console