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 class="svg-defs">
        <clipPath id="clipping">
          <polygon id="star" points="98.4999978 153.75 38.2520165 185.424245 49.7583542 118.337123 1.01670635 70.8257603 68.3760155 61.037872 98.5000012 1.1379786e-14 128.624005 61.0378871 195.98331 70.8258091 147.241642 118.337136 158.747982 185.424247"/>

<div class="wrapper">
	<div class="toBeMasked">
		<svg width="900" height="300">
        <image xlink:href="" width="960" height="300" />




                .wrapper {margin: 0 auto; width: 100%;clear: both; text-align:center;}

.toBeMasked image{clip-path: url(#clipping);}
.svg-defs {position: absolute;width: 0;height: 0;}

#txtStar{font:50px/50px Helvetica, Arial, sans-serif;}
#circle{border-radius: 50%;width: 100px;height: 100px; background:#DF090C;}
#star{padding:0px; width:194px; height:185px; margin:0 auto; left:50%; top:200px; text-align:center; position:absolute;}


                TweenLite.set("#star", {xPercent:'-50%', yPercent:'-50%',transformOrigin: "50% 50%"});

TweenLite.set("#star", {y:200, x:300});

var tl = new TimelineMax({yoyo:true,repeat:-1});'#star', .5, { scale:.05, ease: Sine.easeInOut})