Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div id="all-svgs-wrap">	
					<svg id="defs" pointer-events="none" width="340" height="340" viewBox="0 0 340 340">
						<defs>
							<!-- Discussed Red Grad -->
							<radialGradient id="gradient-red">
								<stop offset="0%" stop-color="#e20917"></stop>
								<stop offset="100%" stop-color="#e41c29"></stop>
							</radialGradient>
							
							<!-- Online Blue Grad -->
							<linearGradient id="gradient-blue">
								<stop offset="0%" stop-color="#12abe3"></stop>
								<stop offset="100%" stop-color="#6ccbee"></stop>
							</linearGradient>
							
							<!-- BDR Orange Grad -->
							<linearGradient id="gradient-orange">
								<stop offset="0%" stop-color="#ee7d22"></stop>
								<stop offset="100%" stop-color="#f1984f"></stop>
							</linearGradient>
							
							<!-- Contacted Green Grad -->
							<linearGradient id="gradient-green">
								<stop offset="0%" stop-color="#86ae1c"></stop>
								<stop offset="100%" stop-color="#9fc735"></stop>
							</linearGradient>
							
							<!-- Shopping LightBlue Grad -->
							<linearGradient id="gradient-lightblue">
								<stop offset="0%" stop-color="#7cc2cb"></stop>
								<stop offset="100%" stop-color="#acdfe5"></stop>
							</linearGradient>

							<!-- Discussed Mask -->
							<mask id="maskdiscussed" class="piemask" width="340" height="340" style="visibility: inherit; opacity: 1; display: block;">
								<circle class="maskdiscussed-anim" x="0" y="0" stroke="#ffffff" stroke-width="200" stroke-dashoffset="0" stroke-dasharray="0" fill="none" cx="170" cy="170" r="100" data-svg-origin="170 170" transform="matrix(0,-1,1,0,0,340)" style="transform-origin: 0px 0px 0px; stroke-dashoffset: 6e-05; stroke-dasharray: none;"></circle>
							</mask>

							<!-- Online Mask-->
							<mask id="maskonline" class="piemask" width="340" height="340" style="visibility: inherit; opacity: 1; display: block;">
								<circle class="maskonline-anim" x="0" y="0" stroke="#ffffff" stroke-width="160" stroke-dashoffset="0" stroke-dasharray="0" fill="none" cx="170" cy="170" r="80" data-svg-origin="170 170" transform="matrix(-0.25881,-0.96592,0.96592,-0.25881,33.79184719828693,362.20662813657015)" style="transform-origin: 0px 0px 0px; stroke-dashoffset: 6e-05; stroke-dasharray: none;"></circle>
							</mask> 
							
							<!-- BDR Mask-->
							<mask id="maskbdr" class="piemask" width="340" height="340" style="visibility: inherit; opacity: 1; display: block;">
								<circle class="maskbdr-anim" x="0" y="0" stroke="#ffffff" stroke-width="140" stroke-dashoffset="0" stroke-dasharray="0" fill="none" cx="170" cy="170" r="70" data-svg-origin="170 170" transform="matrix(-0.49999,-0.86602,0.86602,-0.49999,72.77568135664536,367.22431864335454)" style="transform-origin: 0px 0px 0px; stroke-dashoffset: 6e-05; stroke-dasharray: none;"></circle>
							</mask> 
							
							<!-- Contacted Mask-->
							<mask id="maskcontacted" class="piemask" width="340" height="340" style="visibility: inherit; opacity: 1; display: block;">
								<circle class="maskcontacted-anim" x="0" y="0" stroke="#ffffff" stroke-width="120" stroke-dashoffset="0" stroke-dasharray="0" fill="none" cx="170" cy="170" r="60" data-svg-origin="170 170" transform="matrix(-0.7071,-0.7071,0.7071,-0.7071,120,360.41630560342617)" style="transform-origin: 0px 0px 0px; stroke-dashoffset: 6e-05; stroke-dasharray: none;"></circle>
							</mask> 
							
							<!-- Shopping Mask-->
							<mask id="maskshopping" class="piemask" width="340" height="340">
								<circle class="maskshopping-anim" x="0" y="0" stroke="#ffffff" stroke-width="100" stroke-dashoffset="0" stroke-dasharray="0" fill="none" cx="170" cy="170" r="50" data-svg-origin="170 170" transform="matrix(-0.86602,-0.49999,0.49999,-0.86602,162.2243186433546,332.2243186433546)" style="transform-origin: 0px 0px 0px; stroke-dashoffset: 6e-05; stroke-dasharray: none;"></circle>
							</mask>
						</defs>
						
					</svg>
					
					<div class="svg-group" id="group-discussed" style="visibility: inherit; opacity: 1;">
            <svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="discussed0" style="opacity: 1;"><g mask="url(#maskdiscussed)"><path fill="url(#gradient-red)" d="M170,170 L170,0 A170,170 0 1,1 26.46425266465738, 261.0905551464293 z" transform="rotate(0, 170, 170)"></path><circle fill="pink" cx="175" cy="5" r="2" transform="rotate(0, 170, 170)" class="discussed0"></circle></g></svg></div>
					<div class="svg-group" id="group-online" style="visibility: inherit; opacity: 1; transform: matrix(0.96592, 0.25881, -0.25881, 0.96592, 0, 0);"><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="online0" style="opacity: 1;"><g mask="url(#maskonline)"><path fill="url(#gradient-blue)" d="M154,154 L154,0 A154,154 0 0,1 297.18557882679073, 97.30881888655958 z" transform="rotate(0, 154, 154)"></path><circle fill="pink" cx="159" cy="5" r="2" transform="rotate(0, 154, 154)" class="online0"></circle></g></svg><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="online68" style="opacity: 1;"><g mask="url(#maskonline)"><path fill="url(#gradient-blue)" d="M154,154 L154,0 A154,154 0 0,1 278.5886171337419, 63.481071146959096 z" transform="rotate(68.4, 154, 154)"></path><circle fill="pink" cx="159" cy="5" r="2" transform="rotate(68.4, 154, 154)" class="online68"></circle></g></svg><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="online122" style="opacity: 1;"><g mask="url(#maskonline)"><path fill="url(#gradient-blue)" d="M154,154 L154,0 A154,154 0 0,1 252.16329442129822, 35.34096061252849 z" transform="rotate(122.4, 154, 154)"></path><circle fill="pink" cx="159" cy="5" r="2" transform="rotate(122.4, 154, 154)" class="online122"></circle></g></svg><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="online162" style="opacity: 1;"><g mask="url(#maskonline)"><path fill="url(#gradient-blue)" d="M154,154 L154,0 A154,154 0 0,1 228.19006581166417, 19.04877127324509 z" transform="rotate(162, 154, 154)"></path><circle fill="pink" cx="159" cy="5" r="2" transform="rotate(162, 154, 154)" class="online162"></circle></g></svg></div>
					<div class="svg-group" id="group-bdr" style="visibility: inherit; opacity: 1; transform: matrix(0.86602, 0.49999, -0.49999, 0.86602, 0, 0);"><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="bdr0" style="opacity: 1;"><g mask="url(#maskbdr)"><path fill="url(#gradient-orange)" d="M135,135 L135,0 A135,135 0 0,1 244.2172942406179, 55.648990940516136 z" transform="rotate(0, 135, 135)"></path><circle fill="pink" cx="140" cy="5" r="2" transform="rotate(0, 135, 135)" class="bdr0"></circle></g></svg><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="bdr54" style="opacity: 1;"><g mask="url(#maskbdr)"><path fill="url(#gradient-orange)" d="M135,135 L135,0 A135,135 0 0,1 268.9354846774545, 118.08001346881889 z" transform="rotate(54, 135, 135)"></path><circle fill="pink" cx="140" cy="5" r="2" transform="rotate(54, 135, 135)" class="bdr54"></circle></g></svg></div>
					<div class="svg-group" id="group-contacted" style="visibility: inherit; opacity: 1; transform: matrix(0.7071, 0.7071, -0.7071, 0.7071, 0, 0);"><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="contacted0" style="opacity: 1;"><g mask="url(#maskcontacted)"><path fill="url(#gradient-green)" d="M120,120 L120,0 A120,120 0 0,1 221.31935106024181, 55.70078460252039 z" transform="rotate(0, 120, 120)"></path><circle fill="pink" cx="125" cy="5" r="2" transform="rotate(0, 120, 120)" class="contacted0"></circle></g></svg><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="contacted57" style="opacity: 1;"><g mask="url(#maskcontacted)"><path fill="url(#gradient-green)" d="M120,120 L120,0 A120,120 0 0,1 231.5731783065902, 75.82505367783865 z" transform="rotate(57.6, 120, 120)"></path><circle fill="pink" cx="125" cy="5" r="2" transform="rotate(57.6, 120, 120)" class="contacted57"></circle></g></svg></div>
					<div class="svg-group" id="group-shopping" style="visibility: inherit; opacity: 1; transform: matrix(0.5, 0.86602, -0.86602, 0.5, 0, 0);"><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="shopping0" style="opacity: 1;"><g mask="url(#maskshopping)"><path fill="url(#gradient-lightblue)" d="M100,100 L100,0 A100,100 0 0,1 177.05132427757894, 163.74239897486893 z" transform="rotate(0, 100, 100)"></path><circle fill="pink" cx="105" cy="5" r="2" transform="rotate(0, 100, 100)" class="shopping0"></circle></g></svg><svg pointer-events="fill" width="340" height="340" viewBox="0 0 340 340" id="shopping129" style="opacity: 1;"><g mask="url(#maskshopping)"><path fill="url(#gradient-lightblue)" d="M100,100 L100,0 A100,100 0 0,1 187.63066800438637, 51.82463258982844 z" transform="rotate(129.6, 100, 100)"></path><circle fill="pink" cx="105" cy="5" r="2" transform="rotate(129.6, 100, 100)" class="shopping129"></circle></g></svg></div>
					<div class="svg-group black-circle" style="visibility: inherit; opacity: 1;">
						<svg pointer-events="none" width="340" height="340" viewBox="0 0 340 340" style="opacity: 1;">
						  <circle cx="170" cy="170" r="25" fill="#000000"></circle>
						</svg>
					</div>
</div>
					
              
            
!

CSS

              
                #all-svgs-wrap {
    width: 340px;
    height: 340px;
    position: relative;
}
.svg-group, svg#defs {
    width: 340px;
    height: 340px;
    pointer-events: none;
}
.svg-group {
    position: absolute;
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-perspective: 600;
    perspective: 600;
}
#all-svgs-wrap svg {
    width: 340px;
    height: 340px;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-transition: transform 0.5s ease;
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: -webkit-transform 0.5s ease;
    -o-transition: transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
}
#all-svgs-wrap svg path + circle {
    display: none;
}
.svg-group#group-discussed svg {
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}
.svg-group#group-online svg {
	transform: rotateY(180deg) translate(16px,16px);
}
.svg-group#group-bdr svg {
	transform: rotateY(180deg) translate(35px,35px);
}
.svg-group#group-contacted svg {
	transform: rotateY(180deg) translate(50px,50px);
}
.svg-group#group-shopping svg {
	transform: rotateY(180deg) translate(70px,70px);
}
              
            
!

JS

              
                MorphSVGPlugin.convertToPath(".piemask circle");
pieTl = new TimelineMax();
pieTl.from(".maskdiscussed-anim", 1.2, {rotation:-90.01, drawSVG:"0%"}, 0.3)
				.from(".maskonline-anim", 1.4, {rotation:-105.01, drawSVG:"0%"}, "-=0.8")
				.from(".maskbdr-anim", 1.6, {rotation:-120.01, drawSVG:"0%"}, "-=1")
				.from(".maskcontacted-anim", 1.8, {rotation:-135.01, drawSVG:"0%"}, "-=1.2")
				.from(".maskshopping-anim", 2, {rotation:-150.01, drawSVG:"0%"}, "-=1.4");
              
            
!
999px

Console