Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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="container">
  <div id="cloud">
    <span class="shadow"></span>
    <div class="rain">
      <div class="drop d1"></div>
      <div class="drop d2"></div>
      <div class="drop d3"></div>
      <div class="drop d4"></div>
      <div class="drop d5"></div>
      <div class="drop d6"></div>
      <div class="drop d7"></div>
      <div class="drop d8"></div>
      <div class="drop d9"></div>
      <div class="drop d10"></div>
      <div class="drop d11"></div>
      <div class="drop d12"></div>
      <div class="drop d13"></div>
      <div class="drop d14"></div>
      <div class="drop d15"></div>
    </div>
  </div>
</div>


              
            
!

CSS

              
                body {
	background: #00416a;
}

.container{
  width: 500px;
  height: 500px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -250px;
  margin-left: -250px;
}

#cloud {
	width: 175px;
	height: 60px;
	background: #f2f9fe;
	background: -moz-linear-gradient(top,  #f2f9fe 5%, #d6f0fd 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(5%,#f2f9fe), color-stop(100%,#d6f0fd));
	background: -webkit-linear-gradient(top,  #f2f9fe 5%,#d6f0fd 100%);
	background: -o-linear-gradient(top,  #f2f9fe 5%,#d6f0fd 100%);
	background: -ms-linear-gradient(top,  #f2f9fe 5%,#d6f0fd 100%);
	background: linear-gradient(top,  #f2f9fe 5%,#d6f0fd 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f9fe', endColorstr='#d6f0fd',GradientType=0 );
	position: relative;
	margin: 120px auto 20px;
	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	border-radius: 50px;
  -webkit-animation: mover 3.5s infinite  alternate;
  animation: mover 3.5s infinite  alternate;
}

#cloud:after, div#cloud:before {
	content: '';
	position: absolute;
	z-indeX: -1;
	background: #f2f9fe;
}

#cloud:after {
	width: 50px;
	height: 50px;
	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
	border-radius: 50px;
	top: -25px;
	left: 25px;
}

#cloud:before {
	width: 90px;
	height: 90px;
	-webkit-border-radius: 100px;
	-moz-border-radius: 100px;
	border-radius: 100px;
	top: -45px;
	right: 25px;
}

.shadow {
	width: 175px;
	position: absolute;
	bottom: -80px;
	background: black;
	z-index: -1;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
	-webkit-box-shadow: 0px 0px 25px 8px rgba(0,0,0,0.4);
	-moz-box-shadow: 0px 0px 25px 8px rgba(0,0,0,0.4);
	box-shadow: 0px 0px 25px 8px rgba(0,0,0,0.4);
}

.rain {
  position : absolute;
  height : 80%;
  width : 100%;
  color: #002266;
}

.drop {
  position : absolute;
  background : linear-gradient(#000000, #ffffff);
  opacity : 2;
  top : 25px;
}

.d1 {
  left : 97%;
  width : 1%;
  height : 5%;
  animation : fall .94s linear 0.69s infinite;
}

.d2 {
  left : 18%;
  width : 1%;
  height : 5%;
  animation : fall .98s linear 0.57s infinite;
}
.d3 {
  left : 38%;
  width : 1%;
  height : 5%;
  animation : fall .66s linear .60s infinite;
}

.d4 {
  left : 64%;
  width : 1%;
  height : 5%;
  animation : fall .69s linear .76s infinite;
}

.d5 {
  left : 95%;
  width : 1%;
  height : 5%;
  animation : fall .75s linear .56s infinite;
}

.d6 {
  left : 65%;
  width : 1%;
  height : 5%;
  animation : fall .75s linear .92s infinite;
}

.d7 {
  left : 19%;
  width : 1%;
  height : 5%;
  animation : fall .92s linear .72s infinite;
}

.d8 {
  left : 55%;
  width : 1%;
  height : 5%;
  animation : fall .84s linear .99s infinite;
}

.d9 {
  left : 35%;
  width : 1%;
  height : 5%;
  animation : fall .79s linear .53s infinite;
}

.d10 {
  left : 83%;
  width : 1%;
  height : 5%;
  animation : fall .82s linear .97s infinite;
}

.d11 {
  left : 8%;
  width : 1%;
  height : 5%;
  animation : fall .75s linear .56s infinite;
}

.d12 {
  left : 1%;
  width : 1%;
  height : 5%;
  animation : fall .60s linear .59s infinite;
}

.d13 {
  left : 13%;
  width : 1%;
  height : 5%;
  animation : fall .5s linear .5s infinite;
}

.d14 {
  left : 13%;
  width : 1%;
  height : 5%;
  animation : fall .80s linear .63s infinite;
}

.d15 {
  left : 13%;
  width : 1%;
  height : 5%;
  animation : fall .68s linear .75s infinite;
}

@-webkit-keyframes fall {
	to {margin-top:150px; opacity:0;}
}
@keyframes fall {
	to {margin-top:150px; opacity:0;}
}

@-webkit-keyframes mover {
    0% { transform: translateY(1rem); }
    100% { transform: translateY(2.6rem); }
}
	
              
            
!

JS

              
                
              
            
!
999px

Console