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.

              - raindrops = 30              #this needs to match the SASS

- #for each particle, create a particle div with a unique numbered class
- ( 1..raindrops ).each do |i|
    %div{:class => "raindrop raindrop--#{i}"}
              $particles:          30;        //this needs to match the HAML

//width/height of each raindrop
$raindropDim:        .5rem;
$animDuration:       2s;

html, body {
    height: 100%;
    background: black;

//particles- each is absolutely positioned
.raindrop {
    width: $raindropDim;
    height: $raindropDim;
    background: lightBlue;
    position: absolute;
    top: 0;
    left: 0;
    //Set animation to loop infinitely, with a linear timing function
    animation: $animDuration infinite anim-particle linear;
    border-radius: 999px;

//randomly set left position of each particle, and anim delay
@for $i from 1 through $particles {
    .raindrop--#{$i} {
        left: random() * 100%;
        animation-delay: -( random() * $animDuration );

//keyframes for a particle. Go from top to bottom
@keyframes anim-particle {
    0% {
        transform: translate( 0, 0 );
    100% {
        transform: translate( 0, 100vh );
Loading ..................