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

              
                    <body style="background: linear-gradient(to bottom,rgba(255,204,0,1),rgba(196,76,143,0.74901961),rgba(255,153,102,0.49803922));">
        <svg id="svg" width="400" height="500" >
        <defs>
        </defs>
    <filter id = "spot">
        <feGaussianBlur in = "SourceGraphic" stdDeviation = "2" result = "blur"/>
        <feSpecularLighting result = "specOut" in = "blur" specularExponent = "20" lighting-color = "#bbbbbb">
            <fepointlight x = "0" y = "180" z = "200">
                <animate attributeName="x" values="0;1000;0" dur="4s" repeatCount="indefinite" />
            </fepointlight>
        </feSpecularLighting>
        <feSpecularLighting result = "specOut2" in = "blur" specularExponent = "20" lighting-color = "#bbbbbb">
            <fepointlight x = "1000" y = "1200" z = "200">
                <animate attributeName="x" values="1000;0;1000" dur="3s" repeatCount="indefinite" />
            </fepointlight>
        </feSpecularLighting>
        <feComposite in = "SourceGraphic" in2 = "specOut" operator = "arithmetic" k1 = "0" k2 = "1" k3 = "1" k4 = "0"/>
        <feComposite in2="specOut2" operator = "arithmetic" k1 = "0" k2 = "1" k3 = "1" k4 = "0" />
    </filter>
    <path
        d="m 5.99609,1.23047 3.94531,0 0,27.1289 c 0,3.51563 -0.67058,6.06771 -2.01172,7.65625 -1.32812,1.58854 -3.47005,2.38281 -6.42578,2.38282 l -1.5039,0 0,-3.32032 1.23047,0 c 1.74479,0 2.97525,-0.48828 3.6914,-1.46484 0.71614,-0.97656 1.07422,-2.72787 1.07422,-5.25391 l 0,-27.1289"
        id="j"
        style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ff6600;fill-opacity:1;stroke:none;font-family:Sans" />
    <path
        d="m 15.26562,21.75781 0,-13.24219 3.59375,0 0,13.10547 c 0,2.07032 0.40364,3.62631 1.21094,4.66797 0.80728,1.02865 2.01822,1.54297 3.63281,1.54297 1.94009,0 3.47004,-0.61849 4.58985,-1.85547 1.13279,-1.23697 1.6992,-2.92317 1.69921,-5.05859 l 0,-12.40235 3.59375,0 0,21.875 -3.59375,0 0,-3.35937 C 29.11977,28.35938 28.10415,29.34896 26.94531,30 c -1.14585,0.63802 -2.48048,0.95703 -4.00391,0.95703 -2.51303,0 -4.42058,-0.78125 -5.72265,-2.34375 -1.30209,-1.5625 -1.95313,-3.84765 -1.95313,-6.85547 m 9.04297,-13.76953 0,0"
        id="u"
        style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ff6600;fill-opacity:1;stroke:none;font-family:Sans" />
    <path
        d="m 58.05859,12.71484 c 0.89842,-1.61456 1.97263,-2.80597 3.22266,-3.57422 1.24997,-0.7682 2.72132,-1.15232 4.41406,-1.15234 2.27862,2e-5 4.03643,0.8008 5.27344,2.40234 1.23694,1.58856 1.85543,3.85419 1.85547,6.79688 l 0,13.20312 -3.61329,0 0,-13.08593 c -3e-5,-2.09634 -0.37112,-3.65233 -1.11328,-4.66797 -0.74221,-1.01561 -1.87503,-1.52342 -3.39843,-1.52344 -1.86201,2e-5 -3.33336,0.61851 -4.41407,1.85547 -1.08075,1.23699 -1.62111,2.92319 -1.62109,5.05859 l 0,12.36328 -3.61328,0 0,-13.08593 c -2e-5,-2.10936 -0.37111,-3.66535 -1.11328,-4.66797 -0.74221,-1.01561 -1.88804,-1.52342 -3.4375,-1.52344 -1.83595,2e-5 -3.29428,0.62502 -4.375,1.875 -1.08074,1.237 -1.6211,2.91668 -1.6211,5.03906 l 0,12.36328 -3.61328,0 0,-21.875 3.61328,0 0,3.39844 c 0.82031,-1.34113 1.80338,-2.33071 2.94922,-2.96875 1.14582,-0.638 2.5065,-0.95701 4.08203,-0.95703 1.58853,2e-5 2.93618,0.40367 4.04297,1.21094 1.11977,0.80731 1.9466,1.97918 2.48047,3.51562"
        id="m"
        style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ff6600;fill-opacity:1;stroke:none;font-family:Sans" />
    <path
        d="m 83.48828,27.10937 0,11.60157 -3.61328,0 0,-30.19532 3.61328,0 0,3.32032 c 0.7552,-1.30207 1.70572,-2.26561 2.85156,-2.89063 1.15884,-0.638 2.53905,-0.95701 4.14063,-0.95703 2.65623,2e-5 4.81118,1.05471 6.46484,3.16406 1.66664,2.10939 2.49998,4.88283 2.5,8.32031 -2e-5,3.43751 -0.83336,6.21095 -2.5,8.32032 -1.65366,2.10937 -3.80861,3.16406 -6.46484,3.16406 -1.60158,0 -2.98179,-0.3125 -4.14063,-0.9375 -1.14584,-0.63802 -2.09636,-1.60807 -2.85156,-2.91016 m 12.22656,-7.63672 c -2e-5,-2.64321 -0.54689,-4.71352 -1.64062,-6.21093 -1.08075,-1.5104 -2.57163,-2.26561 -4.47266,-2.26563 -1.90105,2e-5 -3.39845,0.75523 -4.49219,2.26563 -1.08073,1.49741 -1.6211,3.56772 -1.62109,6.21093 -1e-5,2.64324 0.54036,4.72006 1.62109,6.23047 1.09374,1.4974 2.59114,2.2461 4.49219,2.2461 1.90103,0 3.39191,-0.7487 4.47266,-2.2461 1.09373,-1.51041 1.6406,-3.58723 1.64062,-6.23047"
        id="p"
        style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ff6600;fill-opacity:1;stroke:none;font-family:Sans" />
    <path
        d="m 105.40234,8.51562 3.59375,0 0,21.875 -3.59375,0 0,-21.875 m 0,-8.51562 3.59375,0 0,4.55078 -3.59375,0 0,-4.55078"
        id="i"
        style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ff6600;fill-opacity:1;stroke:none;font-family:Sans" />
    <path
        d="m 134.67968,17.1875 0,13.20312 -3.59375,0 0,-13.08593 c -1e-5,-2.0703 -0.40366,-3.61978 -1.21093,-4.64844 -0.80731,-1.02863 -2.01825,-1.54295 -3.63282,-1.54297 -1.94011,2e-5 -3.47006,0.61851 -4.58984,1.85547 -1.1198,1.23699 -1.67969,2.92319 -1.67969,5.05859 l 0,12.36328 -3.61328,0 0,-21.875 3.61328,0 0,3.39844 C 120.83202,10.59898 121.84113,9.6159 123,8.96484 c 1.17186,-0.65102 2.51952,-0.97654 4.04297,-0.97656 2.513,2e-5 4.41404,0.78127 5.70312,2.34375 1.28904,1.5495 1.93357,3.83465 1.93359,6.85547"
        id="n"
        style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ff6600;fill-opacity:1;stroke:none;font-family:Sans" />
    <path
        d="m 156.28125,19.19922 c -2e-5,-2.60416 -0.54038,-4.62238 -1.6211,-6.05469 -1.06772,-1.43227 -2.57162,-2.14842 -4.51172,-2.14844 -1.92709,2e-5 -3.43099,0.71617 -4.51171,2.14844 -1.06772,1.43231 -1.60157,3.45053 -1.60157,6.05469 0,2.59115 0.53385,4.60287 1.60157,6.03515 1.08072,1.4323 2.58462,2.14844 4.51171,2.14844 1.9401,0 3.444,-0.71614 4.51172,-2.14844 1.08072,-1.43228 1.62108,-3.444 1.6211,-6.03515 m 3.59375,8.47656 c -2e-5,3.72396 -0.82685,6.49088 -2.48047,8.30078 -1.65366,1.82291 -4.18621,2.73437 -7.59766,2.73438 -1.26303,-1e-5 -2.45443,-0.0977 -3.57422,-0.29297 -1.11979,-0.1823 -2.20703,-0.46876 -3.26172,-0.85938 l 0,-3.49609 c 1.05469,0.57291 2.09635,0.99609 3.125,1.26953 1.02864,0.27343 2.07682,0.41015 3.14454,0.41016 2.35675,-1e-5 4.12107,-0.6185 5.29296,-1.85547 1.17186,-1.22396 1.7578,-3.07943 1.75782,-5.56641 l 0,-1.77734 c -0.74221,1.28906 -1.69273,2.2526 -2.85157,2.89062 -1.15886,0.63802 -2.54558,0.95703 -4.16015,0.95703 -2.6823,0 -4.84376,-1.02213 -6.48438,-3.0664 -1.64062,-2.04427 -2.46094,-4.7526 -2.46093,-8.125 -1e-5,-3.3854 0.82031,-6.10025 2.46093,-8.14453 1.64062,-2.04425 3.80208,-3.06639 6.48438,-3.06641 1.61457,2e-5 3.00129,0.31903 4.16015,0.95703 1.15884,0.63804 2.10936,1.60158 2.85157,2.89063 l 0,-3.32032 3.59375,0 0,19.16016"
        id="g"
        style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#ff6600;fill-opacity:1;stroke:none;font-family:Sans" />
    <path
        d="m 178.07812,15.04575 c 1.18488,10e-6 2.08332,-0.2604 2.69531,-0.78125 0.61197,-0.52082 0.91795,-1.28905 0.91797,-2.30469 -2e-5,-1.00258 -0.306,-1.7643 -0.91797,-2.28516 C 180.16144,9.14082 179.263,8.8739 178.07812,8.87387 l -4.16015,0 0,6.17188 4.16015,0 m 0.25391,12.7539 c 1.5104,10e-6 2.64321,-0.319 3.39844,-0.95703 0.76821,-0.63801 1.15232,-1.60155 1.15234,-2.89062 -2e-5,-1.26301 -0.37762,-2.20702 -1.13281,-2.83204 -0.75523,-0.638 -1.89455,-0.95701 -3.41797,-0.95703 l -4.41406,0 0,7.63672 4.41406,0 m 6.99219,-10.48828 c 1.61456,0.46877 2.86455,1.33465 3.75,2.59766 0.88539,1.26303 1.32809,2.81251 1.32812,4.64843 -3e-5,2.81251 -0.95055,4.90886 -2.85156,6.28907 -1.90107,1.38021 -4.79169,2.07031 -8.67188,2.07031 l -12.48047,0 0,-29.16016 11.28907,0 c 4.04946,3e-5 6.97914,0.61201 8.78906,1.83594 1.82289,1.22399 2.73435,3.18362 2.73437,5.87891 -2e-5,1.41929 -0.33205,2.63022 -0.99609,3.63281 -0.66409,0.9896 -1.62763,1.72528 -2.89062,2.20703"
        id="b"
        style="font-size:40px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#800080;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold" />
    <path
        d="m 196.86718,3.75668 20.29297,0 0,5.6836 -12.77343,0 0,5.42968 12.01171,0 0,5.6836 -12.01171,0 0,6.67969 13.20312,0 0,5.68359 -20.72266,0 0,-29.16016"
        id="e"
        style="font-size:40px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#800080;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold" />
    <path
        d="m 241.90625,27.60434 -11.75782,0 -1.85546,5.3125 -7.5586,0 10.80078,-29.16016 8.96485,0 10.80078,29.16016 -7.5586,0 -1.83593,-5.3125 m -9.88282,-5.41016 7.98829,0 -3.98438,-11.60156 -4.00391,11.60156"
        id="a"
        style="font-size:40px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#800080;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold" />
    <path
        d="m 255.14843,3.75668 8.39844,0 10.60547,20 0,-20 7.12891,0 0,29.16016 -8.39844,0 -10.60547,-20 0,20 -7.12891,0 0,-29.16016"
        id="n2"
        style="font-size:40px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#800080;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold" />
    </svg>
    <div style="width:400px; text-align:center;"><a href="http://www.JumpingBean.biz">www.JumpingBean.biz</a></div>
</body>

              
            
!

CSS

              
                            body{
                margin:auto;
                height:100%;
            }
              
            
!

JS

              
                            var lastAnimElm;
            document.onreadystatechange = function () {
                if (document.readyState === "complete") {
                    dropLetters();
                }
            };

            function dropLetters() {
                var svgns = "http://www.w3.org/2000/svg";
                var xlinkns = 'http://www.w3.org/1999/xlink';
                var elms = document.getElementsByTagNameNS(svgns, "animateTransform");
                for (var i = 0; i < elms.length; i++) {
                    elms[i].parentNode.removeChild(elms[i]);
                }
                removeLightEffect();
                var maxDur = 0;
                var letters = new Array();
                if (navigator.userAgent.indexOf('Chrome')!=-1){
                  var isChrome=true;
                }else{
                  var isChrome=false;
                }
              
                letters.push("j");
                letters.push("u");
                letters.push("m");
                letters.push("p");
                letters.push("i");
                letters.push("n");
                letters.push("g");
                letters.push("b");
                letters.push("e");
                letters.push("a");
                letters.push("n2");

                var endy = 450;


                letters.forEach(function (item, index, array) {
                    var starty = Math.round(Math.random() * 300);
                    var startx = 10 + (5 * (index + 1));
                    var deltay = endy - starty;

                    var path = document.getElementById(item);
                    path.setAttributeNS(null, "transform", "translate(" + startx + "," + starty + ")");

                    var animate = document.createElementNS(svgns, "animateTransform");
                    var id = "amin" + index;
                    animate.setAttributeNS(null, "id", id);
                    animate.setAttributeNS(null, "attributeName", "transform");
                    animate.setAttributeNS(null, "attributeType", "xml");
                    animate.setAttributeNS(null, "type", "translate");
                    animate.setAttributeNS(null, "from", startx + "," + starty);
                    animate.setAttributeNS(null, "to", startx + "," + endy);

                    var bouncefactor = ((25 + (Math.random() * 50)) / 100).toFixed(2);

                    var bounces = 13 * 2; //must be even
                    //wieght the time for objects with lower bounce rate to
                    //fall faster.
                    var dur = 2 + Math.round(Math.random() * 10) * bouncefactor;
                    maxDur = dur > maxDur ? dur : maxDur;
                    if (dur === maxDur) {
                        lastAnimElm = animate;
                    }
                    animate.setAttributeNS(null, "dur", dur + "s");
                    animate.setAttributeNS(null, "fill", "freeze");
                    animate.setAttributeNS(null, "calcMode", "spline");

                    var heights = "";
                    var splinetimes = "";
                    var timings = "";
                    var tmph = deltay;
                    var distance = new Array();
                    var totalDistance = 0;
                    for (var i = 0; i < bounces; i++) {
                        if (i % 2 === 1) {
                            heights += startx + "," + endy + "; ";
                          if (isChrome){
                            splinetimes += "0.7 0 1 1 ";
                          } else{ 
                            splinetimes += "0.7 0 1 1; ";
                          }
                        } else {
                            tmph = i === 0 ? deltay : Math.round(tmph * bouncefactor);
                            heights += startx + "," + (endy - tmph) + "; ";
                            if (i !== 0){
                          if (isChrome){
                            splinetimes += "0 0.6 1 1 ";
                          } else{ 
                              splinetimes += "0 0.6 1 1; ";
                          }
                         }
                        }
                        if (i === 0) {
                            distance.push(0);
                            totalDistance += 0;
                        } else {
                            distance.push(tmph)
                            totalDistance += tmph;
                        }
                    }
                    var prev = 0;
                    distance.forEach(function (item, index, array) {
                        var current = (item / totalDistance);
                        prev = (prev + current);
                        timings += prev.toFixed(2) + "; ";
                    });

                    animate.setAttributeNS(null, "values", heights.trim());
                    animate.setAttributeNS(null, "keyTimes", timings.trim());
                    animate.setAttributeNS(null, "keySplines", splinetimes.trim());
                    path.appendChild(animate);
                });
                lastAnimElm.setAttributeNS(null, "onend",
                        "addLightEffect();setTimeout(animateme, 6500);");
                animateme();
            }

            function addLightEffect() {
                var svg = document.getElementsByTagName("svg");
                svg[0].setAttributeNS(null, "filter", "url(#spot)");
            }

            function removeLightEffect() {
                var svg = document.getElementsByTagName("svg");
                svg[0].setAttributeNS(null, "filter", "");
            }

            function animateme() {
                removeLightEffect();
                var elms = document.getElementsByTagName("animateTransform");
                for (var i = 0; i < elms.length; i++) {
                    elms[i].beginElement();
                }
            }

              
            
!
999px

Console