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.

              <div>Spotlight Center X</div>
<div id="valueDisplay">10</div>
<input type="range" id="slider" min="0" max="500" step="1" value="400"
<div>Spotlight Center Y</div>
<div id="valueDisplay2">0</div>
<input type="range" id="slider2" min="0" max="370" step="1" value="50"

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="800px" height="600px">
        <filter id="f1" x="0%" y="0%" width="100%" height="100%">

       <feDiffuseLighting result = "diffOut" diffuseConstant = "1" lighting-color = "white">
            <feSpotLight id="spotlight" x = "100" y = "200" z = "150" pointsAtX = "200" pointsAtY = "400" pointsAtZ = "40" specularExponent ="12" limitingConeAngle="70"/>

     <feColorMatrix in="diffOut" result="alphaMap" type="luminanceToAlpha"/>
            <feComponentTransfer in="alphaMap" result="invertlight">
                <feFuncA type="table" tableValues="1 0 0 0 0"/>
          <feGaussianBlur in="invertlight" result="featherspot" stdDeviation="10"/>
     <feComposite operator="xor" result="infocus" in2="SourceGraphic" in="featherspot"/>
            <feGaussianBlur in="SourceGraphic" result="outfocus" stdDeviation="3"/>
            <feComposite operator="over" in="infocus" in2="outfocus"/>     
    <image x="0" y="0" width="550" height="370" preserveAspectRatio="true"
    filter="url(#f1)" xlink:href="http://www.crossfitwaxahachie.com/wp-content/uploads/2012/04/IMG_0752.jpg"
              svg {
    margin: 50px 50px;
input[type=range] {
    width: 300px;
    height: 10px;
                var slider = document.getElementById("slider");
    var blurDisplay = document.getElementById("valueDisplay");
    var blurValue = document.getElementById("spotlight");
    slider.addEventListener('change', changeBlur, false);

    function changeBlur() {
        blurDisplay.innerHTML = slider.value;
        blurValue.setAttribute("x", slider.value);

    var slider2 = document.getElementById("slider2");
    var mixDisplay = document.getElementById("valueDisplay2");
    var mixValue = document.getElementById("spotlight");
    slider2.addEventListener('change', changeMix, false);

    function changeMix() {
        mixDisplay.innerHTML = slider2.value;
        mixValue.setAttribute("y", slider2.value);
Loading ..................