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

Quick-add: + add another resource

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.

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.

            
              <section class="rain"></section>
<div class="chicken">
<svg width="211px" height="212px" viewBox="0 0 211 212" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
    <!-- Generator: Sketch 3.3.3 (12072) - http://www.bohemiancoding.com/sketch -->
    <title>Desktop</title>
    <desc>Created with Sketch.</desc>
    <defs>
        <circle id="path-1" cx="100" cy="100" r="100"></circle>
        <circle id="path-3" cx="100" cy="100" r="100"></circle>
        <path d="M0.754705298,22.3153872 C0.230444837,19.1391797 -0.714273859,11.5649236 1.0291183,5.96771721 C3.29049544,-1.29249362 10.0746269,-2.24366984 10.0746269,5.96771721 C10.0746268,9.50319068 10.0746268,13.3026521 10.0746268,16.4833726 L21.641791,15.6716418 L21.641791,27.238806 L1.11940299,27.238806 L0.754705298,22.3153872 Z" id="path-5"></path>
        <path id="path-7" d="M30.9635126,7.20944797 C44.2900958,-2.45232536 78.6060495,-1.78599616 90.5999763,7.20944782 C108.3867,20.5494892 127.61194,93.283579 120.584788,111.436834 C115.19719,125.354628 19.3027517,129.427729 4.64351021,111.436837 C-10.0157313,93.4459453 13.1452303,20.1277033 30.9635126,7.20944797 Z"></path>
    </defs>
    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
        <g id="Desktop" sketch:type="MSArtboardGroup">
            <g id="Group" sketch:type="MSLayerGroup">
                <mask id="mask-2" sketch:name="Mask" fill="white">
                    <use xlink:href="#path-1"></use>
                </mask>
                <use id="Mask" fill="#1B4E90" sketch:type="MSShapeGroup" xlink:href="#path-1"></use>
                <mask id="mask-4" sketch:name="Mask Copy" fill="white">
                    <use xlink:href="#path-3"></use>
                </mask>
                <use id="Mask-Copy" fill="#1B4E90" sketch:type="MSShapeGroup" xlink:href="#path-3"></use>
                <ellipse id="Mask" fill="#123664" sketch:type="MSShapeGroup" mask="url(#mask-4)" cx="117.164179" cy="195.895522" rx="54.8507463" ry="18.2835821"></ellipse>
                <g mask="url(#mask-4)" fill="#9B1717" sketch:type="MSShapeGroup">
                    <g transform="translate(75.373134, 171.641791)">
                        <path d="M22.5337174,8.05473874 C26.0711505,10.9199693 22.5869646,26.6663863 19.7910293,26.9749658 C16.995094,27.2835453 18.2315194,23.6853856 16.7833142,22.5123764 C15.4551202,21.4365731 14.143871,25.2722994 11.5113622,23.1400344 C8.87885337,21.0077694 12.8226119,19.3043085 11.5182975,18.2478472 C9.92727174,16.9591569 4.76224978,20.4899302 3.93848584,17.2494866 C3.11472191,14.009043 18.9962843,5.1895082 22.5337174,8.05473874 L22.5337174,8.05473874 Z" id="Triangle-4"></path>
                        <path d="M49.53393,9.9911281 C54.1287728,9.91089118 61.1426535,25.9502303 59.0401364,27.9717299 C56.9376194,29.9932296 55.3053374,24.6344604 53.4242347,24.6673089 C51.6990169,24.6974354 53.4807048,29.0235189 50.0612863,29.0832301 C46.6418678,29.1429414 48.279599,24.7571466 46.585399,24.7867314 C44.5187837,24.8228194 43.2599483,30.2320744 40.6607654,28.2926776 C38.0615825,26.3532809 44.9390873,10.071365 49.53393,9.9911281 L49.53393,9.9911281 Z" id="Triangle-4-Copy"></path>
                        <rect id="Rectangle-53" x="16.4179104" y="0" width="5.2238806" height="12.4076984"></rect>
                        <rect id="Rectangle-53-Copy" x="47.3880597" y="0" width="5.2238806" height="12.4076984"></rect>
                    </g>
                </g>
                <rect id="Rectangle-65" fill="#2B2B2B" sketch:type="MSShapeGroup" mask="url(#mask-4)" x="46.2686567" y="39.9253731" width="2.6119403" height="50.3731343"></rect>
                <rect id="Rectangle-65-Copy" fill="#2B2B2B" sketch:type="MSShapeGroup" mask="url(#mask-4)" x="43.6567164" y="82.4626866" width="7.08955224" height="5.59701493"></rect>
                <g id="Oval-44" mask="url(#mask-4)">
                    <g transform="translate(41.044776, 84.701493)">
                        <mask id="mask-6" sketch:name="Mask" fill="white">
                            <use xlink:href="#path-5"></use>
                        </mask>
                        <use id="Mask" stroke="none" fill="#3C76ED" fill-rule="evenodd" sketch:type="MSShapeGroup" xlink:href="#path-5"></use>
                    </g>
                </g>
                <g id="Oval-40" mask="url(#mask-4)">
                    <g transform="translate(49.626866, 51.865672)">
                        <mask id="mask-8" sketch:name="Mask" fill="white">
                            <use xlink:href="#path-7"></use>
                        </mask>
                        <use id="Mask" stroke="none" fill="#3C76ED" fill-rule="evenodd" sketch:type="MSShapeGroup" xlink:href="#path-7"></use>
                        <ellipse id="Oval-40" stroke="none" fill="#EDE63C" fill-rule="evenodd" sketch:type="MSShapeGroup" mask="url(#mask-8)" cx="45.3358209" cy="47.9477612" rx="57.2761194" ry="61.0074627"></ellipse>
                    </g>
                </g>
                <rect id="Rectangle-55" fill="#2B2B2B" sketch:type="MSShapeGroup" mask="url(#mask-4)" x="78.358209" y="70.1492537" width="5.2238806" height="14.9253731"></rect>
                <rect id="Rectangle-55-Copy" fill="#2B2B2B" sketch:type="MSShapeGroup" mask="url(#mask-4)" x="129.850746" y="70.1492537" width="5.2238806" height="14.9253731"></rect>
                <path d="M107.029084,92.5256268 C117.621054,92.8948713 126.702479,88.9912529 126.83894,85.0902474 C126.9754,81.189242 118.115221,78.7680809 107.523251,78.3988365 C96.9312812,78.029592 91.4396373,81.370405 88.8429577,84.7936554 C86.2462782,88.2169058 96.437114,92.1563824 107.029084,92.5256268 L107.029084,92.5256268 Z" id="Oval-42" fill="#E07B37" sketch:type="MSShapeGroup" mask="url(#mask-4)"></path>
                <g id="Rectangle-57-+-Rectangle-57-Copy" mask="url(#mask-4)" sketch:type="MSShapeGroup">
                    <g transform="translate(74.253731, 85.074627)">
                        <path d="M52.5269786,3.35820896 C52.2943768,5.9255668 50.4539658,21.0412144 39.0270901,26.7436088 C29.90491,31.2958827 4.90491005,31.2958827 0.967388575,26.7436088 C0.28234998,25.9516174 -0.0104956596,24.9776126 0.000286680406,23.880597 L0,23.880597 L0,20.8955224 L0.615934415,20.8955224 C3.3790421,13.2794765 14.4968785,2.98507463 14.4968785,2.98507463 L46.641791,2.98507463 L46.641791,0.373134328 L52.6119403,0.373134328 L52.6119403,3.35820896 L52.5269786,3.35820896 Z" id="Rectangle-57" fill="#2B2B2B"></path>
                        <path d="M39.0270901,23.7585342 C29.90491,28.3108081 4.90491005,28.3108081 0.967388575,23.7585342 C-4.42682811,17.522136 14.4968785,0 14.4968785,0 L52.55658,0 C52.55658,0 51.5336528,17.5173398 39.0270901,23.7585342 Z" id="Rectangle-57-Copy" fill="#E07B37"></path>
                    </g>
                </g>
                <rect id="Rectangle-63" fill="#2B2B2B" sketch:type="MSShapeGroup" mask="url(#mask-4)" x="86.5671642" y="104.104478" width="2.6119403" height="2.23880597"></rect>
                <rect id="Rectangle-63-Copy" fill="#2B2B2B" sketch:type="MSShapeGroup" mask="url(#mask-4)" x="96.641791" y="104.104478" width="2.6119403" height="2.23880597"></rect>
                <path d="M139.54882,118.360644 L158.42559,118.035658 C158.42559,118.035658 159.988246,142.565421 156.132068,150.817365 C152.275891,159.069309 144.273902,159.207073 140.12809,151.092893 C135.982277,142.978713 139.54882,118.360644 139.54882,118.360644 L139.54882,118.360644 Z" id="Rectangle-59" fill="#3C76ED" sketch:type="MSShapeGroup" mask="url(#mask-4)"></path>
                <path d="M139.148733,109.076704 L151.681223,107.537908 C151.681223,107.537908 155.436528,131.930118 153.782318,140.417663 C152.128108,148.905209 146.815502,149.557515 143.157105,141.722275 C139.498709,133.887036 139.148733,109.076704 139.148733,109.076704 Z" id="Rectangle-59-Copy-3" fill="#EDE63C" sketch:type="MSShapeGroup" mask="url(#mask-4)"></path>
                <g id="Oval-41-+-Path-90-+-Path-90-Copy" mask="url(#mask-4)" stroke="#2B2B2B" stroke-width="3" sketch:type="MSShapeGroup">
                    <g transform="translate(90.044776, 59.328358)">
                        <circle id="Oval-41" cx="14.9925373" cy="5.41044776" r="5.41044776"></circle>
                        <path d="M16.6716418,9.32835821 C16.6716418,9.32835821 8.8358209,13.0597015 1,6.34328358" id="Path-90"></path>
                        <path d="M28.9850746,9.32835821 C28.9850746,9.32835821 21.1492537,13.0597015 13.3134328,6.34328358" id="Path-90-Copy" transform="translate(21.149254, 8.352627) scale(-1, 1) translate(-21.149254, -8.352627) "></path>
                    </g>
                </g>
                <path d="M47.761194,12.3134328 C80.5970149,12.3134328 88.8059701,48.1343284 88.8059701,48.1343284 C88.8059701,48.1343284 80.9701493,41.7910448 75,41.7910448 C69.0298507,41.7910448 61.4427861,48.1343284 61.4427861,48.1343284 C61.4427861,48.1343284 54.1044776,41.7910448 47.761194,41.7910448 C41.4179104,41.7910448 34.079602,48.1343284 34.079602,48.1343284 C34.079602,48.1343284 27.238806,41.7910448 20.5223881,41.7910448 C13.8059701,41.7910448 6.71641791,48.1343284 6.71641791,48.1343284 C6.71641791,48.1343284 14.9253731,12.3134328 47.761194,12.3134328 Z" id="Triangle-6-Copy" fill="#30B7DE" sketch:type="MSShapeGroup"></path>
            </g>
        </g>
    </g>
</svg>
</div>
            
          
!
            
              html{
  height:100%;
}

body {
  background:#EDE63C;
  overflow:hidden;
}

.drop {
  width: 20px;
  height: 20px;
  overflow: hidden;
  background: rgba(255,255,255,1);
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
  border-top-left-radius: 50%;
  -webkit-transform:rotate(-45deg);
	position: absolute;
	-webkit-animation: fall 4s linear infinite;
}

.drop_s {
  width: 15px;
  height: 15px;
  overflow: hidden;
  background: rgba(255,255,255,1);
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
  border-top-left-radius: 50%;
	position: absolute;
  -webkit-transform:rotate(-45deg);
	-webkit-animation: fall 8s linear infinite;
}

@-webkit-keyframes fall {
	to {
    margin-top:100%; 
    transform: scale(2,2);
    background: rgba(255,255,255,0);
  }
}

.chicken {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
            
          
!
            
              function randRange(minNum, maxNum) {
  return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
}

var $rain = $('.rain');

function createRain() {
  var $drop = $('<div class="drop" />')
    .css('top', -100)
    .css('left', randRange(0, 1600))
    .appendTo($rain);
  setTimeout(function() {
    $drop.remove();
  }, 12000);
  
  var $drop_s = $('<div class="drop_s" />')
    .css('top', -100)
    .css('left', randRange(0, 1600))
    .appendTo($rain);
  setTimeout(function() {
    $drop_s.remove();
  }, 8000);
}

setInterval(createRain, 100);
            
          
!
999px
Loading ..................

Console