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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <h1><b>4</b> Steps<br> of Art Criticism</h1>

<div class="step-nav">
	<div class="step first">
		<div class="radial-progress active" data-index="0">
		    <div class="circle">
		        <div class="mask full">
		            <div class="fill"></div>
		        </div>
		        <div class="mask half">
		            <div class="fill"></div>
		            <div class="fill fix"></div>
		        </div>
		        <div class="shadow"></div>
		    </div>
	    	<div class="inset"><div class="inner-circle"></div></div>
		</div>
		<p>1</p>
	</div>	
	<div class="step">
		<div class="line">
			<div class="progress"></div>
		</div>
		<div class="radial-progress" data-index="1">
		    <div class="circle">
		        <div class="mask full">
		            <div class="fill"></div>
		        </div>
		        <div class="mask half">
		            <div class="fill"></div>
		            <div class="fill fix"></div>
		        </div>
		        <div class="shadow"></div>
		    </div>
	    	<div class="inset"><div class="inner-circle"></div></div>
		</div>
		<p>2</p>
	</div>
	<div class="step">
		<div class="line">
			<div class="progress"></div>
		</div>
		<div class="radial-progress" data-index="2">
		    <div class="circle">
		        <div class="mask full">
		            <div class="fill"></div>
		        </div>
		        <div class="mask half">
		            <div class="fill"></div>
		            <div class="fill fix"></div>
		        </div>
		        <div class="shadow"></div>
		    </div>
	    	<div class="inset"><div class="inner-circle"></div></div>
		</div>
		<p>3</p>
	</div>
	<div class="step">
		<div class="line">
			<div class="progress"></div>
		</div>
		<div class="radial-progress" data-index="3">
		    <div class="circle">
		        <div class="mask full">
		            <div class="fill"></div>
		        </div>
		        <div class="mask half">
		            <div class="fill"></div>
		            <div class="fill fix"></div>
		        </div>
		        <div class="shadow"></div>
		    </div>
	    	<div class="inset"><div class="inner-circle"></div></div>
		</div>
		<p>4</p>
	</div>
</div>
<div class="copy-holder">
	<div class="step-1 active">
		<h4>Describe</h4>
		<p>Tell exactly what you see</p>
	</div>
	<div class="step-2">
		<h4>Analyze</h4>
		<p>How is the work organized?</p>
	</div>
	<div class="step-3 ">
		<h4>Interpret</h4>
		<p>What message does this artwork communicate?</p>
	</div>
	<div class="step-4">
		<h4>Evaluate</h4>
		<p>How successful or important is the work of art?</p>
	</div>
</div>


              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Oxygen:400,700);

body {
	background: #fafafa; 
	padding: 40px 0;
	font-family: 'Oxygen', sans-serif;	
}


h1 {
	text-align: center;
	margin-bottom: 60px;
	font-size: 30px;
	text-transform: uppercase;
	line-height: 34px;
	font-weight: 400;
	background: #FAB900;
	color: #fafafa;
	padding: 20px 0;
	b {
		font-weight: 700;
		font-size: 34px;
		color: #4D4D4D;
	}
}
.step-nav {
	@circle-size: 80px;
	@circle-color: #FAB900;

	height: @circle-size;
	position: relative;
	width: 680px;
	margin: 0 auto 70px;
	.step {
		position: relative;
		float: left;
		width: 200px;
		height: @circle-size;

		p {
			width: @circle-size;
			height: @circle-size;
			position: absolute;
			right: 0;
			text-align: center;
			line-height: @circle-size;
			font-size: 30px;
			pointer-events: none;
			z-index: 10;
			color: #7d7d7d;
			transition: font-size 0.3s, color 0.3s;
			&.active {
				font-size: 46px;
				color: #fafafa;
			}
		}
		.line {
			position: absolute;
			top: 50%;
			margin-top: -3px;
			width: 120px;
			height: 6px;
			background: #d6dadc;
			.progress {
				width: 0%;
				height: 6px;
				background: @circle-color;
			}
		}

		.radial-progress {
			@circle-background: #d6dadc;
			@inset-size: 70px;

			width: @circle-size;
			height: @circle-size;
			background-color: @circle-background;
			position: absolute;
			right: 0;
			border-radius: 50%;
			-webkit-transform: rotate(-90deg);
			-ms-transform: rotate(-90deg);
			transform: rotate(-90deg);
			cursor: pointer;

			.circle {	
				.mask, .fill, .shadow {
					width: @circle-size;
					height: @circle-size;
					position: absolute;
					border-radius: 50%;
				}
				.mask, .fill {
					-webkit-backface-visibility: hidden;
				}
				.mask {
					clip: rect(0px, @circle-size, @circle-size, @circle-size/2);
					.fill {
						clip: rect(0px, @circle-size/2, @circle-size, 0px);
						background-color: @circle-color;
					}
				}
			}
			.inset {
				width: @inset-size;
				height: @inset-size;
				position: absolute;
				margin-left: (@circle-size - @inset-size)/2;
				margin-top: (@circle-size - @inset-size)/2;
				background-color: @circle-color;
				border-radius: 50%;

				.inner-circle {
					position: absolute;
					top: 0; left: 0; right: 0; bottom: 0;
					background: #fafafa;
					border-radius: 50%;
				}
			}
		}
		&.first {
			width: 80px;

			.radial-progress {
				transform: matrix(0, 1.3, -1.3, 0, 0, 0);
				z-index: 10;	
			}
			.circle .fill, .circle .mask.full{
				transform: rotate(180deg);		
			}
			.circle .fill.fix {
				transform: rotate(360deg);	
			}
			.radial-progress.active .inner-circle{
				transform: matrix(0, 0, 0, 0, 0, 0);
			}
			p {
				color: #fafafa;
				font-size: 46px;
			}

		}
	}
}

.copy-holder {
	position: relative;
	width: 470px;
	height: 100px;
	margin: 0 auto;
	font-size: 20px;
	text-align: center;
	border: 3px dashed #FAB900;
	padding-top: 45px;
	color: #666666;
	div {
		width: 100%;
		position: absolute;
		opacity: 0;
		visibility: hidden;
		h4 {
			text-transform: uppercase;
			margin-bottom: 10px;
			font-size: 24px;
			font-weight: 700;
		}
		p {
			display: block;
		}
		&.active {
			opacity: 1;
			visibility: visible;
		}
	}
}
              
            
!

JS

              
                var fill_rotation = 180;
	var fix_rotation = fill_rotation*2;

	var mainTl = new TimelineMax({paused: true});

	$(".step:not(.first) .radial-progress").each(function(i){
		var circle = $(this);
		var line = 	circle.prev('.line').find('.progress');
		var circleFill = circle.find('.fill:not(.fix)');
		var circleMask = circle.find('.mask.full');
		var circleFillMix = circle.find('.fill.fix');

		mainTl.to(line, 0.15, {width: "100%"})
			.to(circle, 0.3, {rotation: "-="+fill_rotation}, "fillCircle-"+i+"")
			.to([circleFill, circleMask], 0.3, {rotation: fill_rotation}, "fillCircle-"+i+"")
			.to(circleFillMix, 0.3, {rotation: fix_rotation}, "fillCircle-"+i+"")
			.set(circleFillMix, {rotation: fix_rotation}, "stopPoint-"+i+"");
	});

	$('.step .radial-progress').click(function(){
		if($(this).hasClass('active')){
			return false;
		}

		animateToDefault(); 

		$('.active').removeClass('active');

		var index = parseInt($(this).attr('data-index'));
		mainTl.tweenTo("stopPoint-"+(index-1)+"", {onComplete: animateToActive, onCompleteParams:[$(this)]});	
	});

	function animateToActive(el) {
		var index = parseInt(el.attr('data-index')) + 1;
		$('.copy-holder').find(".step-"+index+"").addClass('active');
		el.addClass('active');

		var innerCircle = el.find('.inner-circle');
		var inset = el.find('.inset');
		var circle = el.find('.circle');
		var mask = el.find('.mask');
		var fill = el.find('.fill');
		var number = el.next('p');
		var stepsCopy = $('.copy-holder div.active');

		TweenLite.set(number, {color: "rgb(250,250,250)", fontSize: 46})
		TweenLite.to(innerCircle, 0.15, {scale: 0});	
		TweenLite.to(el, 0.3, {scale: 1.3, zIndex: 10, ease: Back.easeOut});
		TweenLite.fromTo(stepsCopy, 0.7, {autoAlpha: 0}, {autoAlpha: 1});
	}

	function animateToDefault(){
		var mainCircle = $('.radial-progress.active');
		var innerCircle = $('.radial-progress.active').find('.inner-circle');
		var inset = $('.radial-progress.active').find('.inset');
		var number = $('.radial-progress.active').next('p');
		var stepsCopy = $('.copy-holder div');

		TweenLite.to(innerCircle, 0.15, {scale: 1})
		TweenLite.set(number, {color: "rgb(119,119,119)", fontSize: 30});
		TweenLite.to(mainCircle, 0.3, {scale: 1, zIndex: 1, ease: Bounce.easeOut});
		TweenLite.to(stepsCopy, 0.7, {autoAlpha: 0});
	}
              
            
!
999px

Console