Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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

              
                <div class="svg-holder">
		<svg width="154" height="46" viewBox="0 0 154 46" fill="none" id="morph" xmlns="http://www.w3.org/2000/svg">
	
<circle cx="23" cy="23" r="23" fill="black" id="play_circle"/>
<path id="play_btn" style="transform: translate(7px, 10px);" d="M26.1879 11.1037C26.9299 11.4709 26.9299 12.5291 26.1879 12.8963L8.44256 21.6779C7.77791 22.0069 6.99902 21.5233 6.99902 20.7817L6.99903 3.21832C6.99903 2.47673 7.7779 1.99314 8.44256 2.32206L26.1879 11.1037Z" fill="white"/>

<path d="M0 23C0 10.2975 10.2975 0 23 0H131C143.703 0 154 10.2975 154 23C154 35.7025 143.703 46 131 46H23C10.2975 46 0 35.7025 0 23Z" fill="black" id="timer_path"/>

<circle  cx="125.5" cy="22.5" r="11.5" fill="white" class="pause"/>
<rect x="123" y="18" width="2" height="10" rx="1" fill="black" class="pause"/>
<rect x="127" y="18" width="2" height="10" rx="1" fill="black" class="pause"/>
	
</svg>
	
	
<svg width="154" height="46" viewBox="0 0 154 46" fill="none" id="timer" xmlns="http://www.w3.org/2000/svg">
	
</svg>
</div>
              
            
!

CSS

              
                body {
	background-color: #111;
}
#morph {
	max-width: 100%;
	height: 46px;
	position: absolute;
	top: 0;
	left: 0;
}
.svg-holder {
	text-align: center;
	max-width: 400px;
	width: 100%;
	height: 0;
	padding-top: 100%;
	position: relative;
	margin: 1em auto;
}
.st0{fill:#458599;} //Blue
.st1{fill:#FFC200;} //Yellow
.st2{fill:#ED1548;} //Red

#timer_path {
	visibility: hidden;
}

.pause {
	transform:scale(0)
}
              
            
!

JS

              
                
var timer = document.getElementById("timer");
var play = document.getElementById("play_btn")
MorphSVGPlugin.convertToPath("circle, ellipse")
var tl = new TimelineMax({repeat:0, repeatDelay:1, delay:1});

tl.to("#play_circle", .85, {
		morphSVG: "#timer_path",  scale: 1
}).to(".pause"), 0.5,{scale:1};

gsap.to(play,{duration: 0.25, opacity:0, delay: 0.20})
              
            
!
999px

Console