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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <svg width="100%" height="100%"
  <filter id="light">
    <!-- blur the source image to make bump map less sharp -->
    <feGaussianBlur stdDeviation="3" result="blurred"></feGaussianBlur>
    <!-- create bump map based on alpha channel -->
    <feColorMatrix in="blurred" type="luminanceToAlpha" result="bumpMap"></feColorMatrix>
    <!-- use bump map for lighting filter -->
    <feDiffuseLighting in="bumpMap" surfaceScale="3" result="light">
      <fePointLight x="225" y="150" z="30"></fePointLight>
    <!-- compose the lighting result with source image using multiplication -->
    <feComposite in="light" in2="SourceGraphic"
      k1="1" k2="0" k3="0" k4="0">
  <pattern id="pattern1"
    width="450" height="300"
    <image  xlink:href=""
      width="450" height="300"
  <rect width="100%" height="100%"
    fill="url(#pattern1)" filter="url(#light)"


                html, body {
  height: 100%;
  margin: 0;
svg {
  display: block;


                const svgNode = document.querySelector('svg');
const fePointLightNode = svgNode.querySelector('fePointLight');
svgNode.addEventListener('mousemove', handleMove);
svgNode.addEventListener('touchmove', handleMove);
function handleMove(event) {
  fePointLightNode.setAttribute('x', event.clientX);
  fePointLightNode.setAttribute('y', event.clientY);