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.


                <div class="wrapper">

 <!-- image start -->
<img src="" alt="face" class="catMask">
<!-- image end -->
<!-- mask start -->
<!-- Created with Inkscape -->
<svg height="0" width="0" class="maskItem">
     <clipPath id="svgPath">
        <path fill="#FFFFFF" stroke="#000000" transform="scale(2.3) translate(-10.7 -10)" stroke-width="1.5794" stroke-miterlimit="10" d="m 21.839862,14.517191 c 6.543622,-2.443842 17.518669,6.349048 17.518669,6.349048 0,0 7.88428,-1.486434 11.87507,-1.528474 4.67538,-0.04925 11.404772,1.881199 11.404772,1.881199 0,0 4.768975,-6.719246 8.112672,-7.995098 7.503869,-2.863245 10.884649,0.342529 11.875072,1.8812 8.481775,13.176866 1.8812,27.159819 1.8812,27.159819 C 93.780821,65.991507 80.780864,77.73405 71.456496,84.709438 68.017059,87.12391 55.632924,92.733566 50.763301,92.822111 47.510105,92.881236 37.5689,90.338555 26.895584,83.063394 5.929735,68.77262 14.90294,45.43941 14.90294,45.43941 c 0,0 -6.0107737,-13.116858 -1.293325,-23.162272 1.586908,-3.379188 2.127713,-5.480838 8.230247,-7.759947 z"
<!-- mask end -->



                HTML, BODY {
    height: 100%;

        linear-gradient( #EEE 1px, transparent 2px),
        linear-gradient( to right, #EEE 1px, transparent 2px);
    background-size: 1em 1em;

.wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 300px;
    text-align: center;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    background-color: gray;

.catMask {
    position: absolute;
    top: 40px;
    left: calc(50% - 50px);
    height: auto;
-webkit-clip-path: url(#svgPath);
    clip-path: url(#svgPath);
.maskItem {
    width: 100%;
    overflow: hidden;