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

              
                
     
    	 <!--  Apps Menu Selection –– -->
		<div id="circle1" class="circle1 circle-border">
		   <div class="wave wave1"></div>
		   <div class="wave wave2"></div>
		   <div class="wave wave3"></div>
		   <a href="#" id="ap" class="fill-div" >
		     <div id="inner1" class="circle-inner">
		      	<img id="icon1"  class="homeMenuIcon" src="http://www.theagrathaacademy.org/images/gallery-icon.png"/>
		         <div id="text1" class="score-text">
		          	Gallery
		          </div>
		     </div>
		     </a>
		</div>
		<!--  Design Menu Selection –– -->
		<div id="circle2" class="circle1 circle-border">
			<div class="wave wave1"></div>
		   <div class="wave wave2"></div>
		   <div class="wave wave3"></div>
		   <a href="#" id="dn" class="fill-div" >
		     <div id="inner2" class="circle-inner">
		     	<img  id="icon2"class="homeMenuIcon" src="https://www.timothyotooles.com/images/shoppingcart_icon-white.gif"/>
		         <div id="text2" class="score-text">
		            Store
		          </div>
		     </div>
		     </a>
		</div>
		<!--  Code Projects Selection –– -->
		<div id="circle3" class="circle1 circle-border">
			<div class="wave wave1"></div>
		   <div class="wave wave2"></div>
		   <div class="wave wave3"></div>
		   <a href="#" id="ai" class="fill-div" >
		     <div id="inner3" class="circle-inner">
		     	<img id="icon3"class="homeMenuIcon" src="http://www.iconsdb.com/icons/preview/white/box-5-xxl.png"/>
		         <div id="text3" class="score-text">
		            Backroom
		          </div>		  
		     </div>
		     </a>
		</div>
		<!--  Mindmap Menu Selection –– -->
		<div id="circle4" class="circle1 circle-border">
			<div class="wave wave1"></div>
		   <div class="wave wave2"></div>
		   <div class="wave wave3"></div>
		   <a href="#" id="ab" class="fill-div" >
		     <div id="inner4"class="circle-inner">
		         <img id="icon4"class="homeMenuIcon" src="http://demo.athemes.com/flatolio/wp-content/themes/athemes_flatolio/images/icon_info.png"/>
		         <div id="text4" class="score-text">
		            About
		          </div>
		     </div>
		     </a>
		</div>
		</div>
		</div> 
		
  </div>
  <div>
              
            
!

CSS

              
                body {
  background:#299;
}
/*------------ Homepage Menu Circles ------------- */

.circle1 {
margin-left: 50%;
margin-top: 40px;
margin-bottom: 40px;
border-radius: 50%;
width: 17%;
max-width:130px;
position: absolute;
opacity: 0.0;
transform-origin:50% 160%;
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
background: rgba(255,255,255,0.05);
-webkit-transition: ease-in-out, width .35s ease-in-out; /* Safari 3.1 to 6.0 */
    transition: ease-in-out, width .35s ease-in-out;
        
        
}

.default-origin {

	animation: defaultOrigin .5s swing forwards;

}

@keyframes defaultOrigin {
   0% {transform-origin:50% 160%; }

   15% {transform-origin: 50% 50%;}


}



.circle-border {
border: 1px solid #30cbfe;
}

.circle-solid{
background-color: white;
}

.circle1:before {
content: "";
display: block;
padding-top: 100%;
}

.circle-inner {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
text-align: center;
opacity: 0;
}

.score-text {
margin: auto;
margin-top: 68%;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: 1em;
line-height: 1em;
color: white;
opacity: 0;
font-family: 'Dosis', sans-serif;
font-weight: 400;


}

.score-text {
height: 2.5vw;
line-height: 2.5vw;
font-size: 1.8vmax;
}

/*-------------------------*/

/* ----Ripple on hover------- */
div.circle1:hover div.wave {
	
	
	 animation: waves 2.5s linear;
    animation-delay: .1s;
	transform-origin:50% 50%;
	


}

div.circle1:hover div.wave2 {
	animation: waves 2.5s linear .7s forwards;
	transform-origin:50% 50%;
	
}

div.circle1:hover div.wave3 {
	animation: waves 2.5s linear 1.3s forwards;
	transform-origin:50% 50%;
	
}


div.wave {
 	background: #8e4ff9;
	
	margin-left: 10%;
	margin-top: -90%;
	border-radius: 50%;
	width: 80%;
	position: absolute;
	transform-origin:50% 160%;
	opacity: 0;
	-webkit-transition: ease-in-out, width .35s ease-in-out; /* Safari 3.1 to 6.0 */
    transition: ease-in-out, width .35s ease-in-out;
	
}
div.wave:before {
	
content: "";
display: block;
padding-top: 100%;

}

#circle2 div.wave {
	background: #05ef57;
	
}

#circle3 div.wave {
	
	background: #fa254a;
	
}

#circle4 div.wave {
	
	background: #1394fd;
}

@-webkit-keyframes waves {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  
  25% {
    transform: scale(1.2);
    opacity: 1;
  }
  
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/*--------------------------*/

/*---- icons within menu circles ----*/
.homeMenuIcon {
	
	width:50%;
    height:auto;
    display:block;
    margin-left: 25%;
	margin-top: 18%;
    
}

              
            
!

JS

              
                $(document).ready(function(){
	//Animates menu items upon homepage load
	animateHomeMenu(4);
	
	
	//brings in 'hi, my name is' text on page load
	$("#homeTitle").delay(3000).animate({
	    left: "70px",
	    opacity: "1"
	}, {
	    duration: 1500, 
	    easing: "swing"
	});
	//event listners trigger page transition on click of menu item
	$("#ap").click(function(){menuSelect(4,1, 'gallery.html');});
	$("#dn").click(function(){menuSelect(4,2, 'store.html');});
    $("#ai").click(function(){menuSelect(4,3, 'backroom.html');});
    $("#ab").click(function(){menuSelect(4,4, 'about.html');});



});



menuSelect = function(numCircles,circleNum, page){

	circleName = '#circle' + circleNum;

	

	//fade out welcome titles
	$("#homeTitle").delay(0).animate({
	    left: "-70px",
	    opacity: "0"
	}, {
	    duration: 1500, 
	    easing: "swing"
	});

		var startPos = -380+((270/numCircles)*(circleNum-1));
		//shift other circles - then fade them away. Pass in the degs to shift by.
		closeOtherCircles(numCircles, circleName, -360-startPos);
	  //resets the rotation and origin for easier positioning
		//$(circleName).toggleClass('default-origin');
		$(circleName).animateRotate(startPos,-360, 3000, 0, 'easeOutCubic', function () {});
		$('#inner'+circleNum).animateRotate(-startPos,360, 3000, 0, 'easeOutCubic', function () {});
		
		
		
	// strip it of it's bubble
	$(circleName).delay(1500).animate({
		backgroundColor:'transparent',
		borderColor: 'transparent'		
	}, {
	    duration: 1200, 
	    easing: "swing"
	});

	
	  
	//fade out label

	$('#text'+circleNum).delay(500).animate({
		opacity: '0'

	},{
		duration: 1200, 
	    easing: "swing"

	});

	//delay for when to change page
	setTimeout(function () {
		document.location.href = page;
}, 2000);

};





// -------------Code snippet by yckart & drabname
//Handles rotation of html elements
$.fn.animateRotate = function(startAngle, endAngle, duration, delay, easing, complete){
    return this.each(function(){
        var elem = $(this);

        $({deg: startAngle}).delay(delay).animate({deg: endAngle}, {
            duration: duration,
            easing: easing,
            step: function(now){
                elem.css({
                  '-moz-transform':'rotate('+now+'deg)',
                  '-webkit-transform':'rotate('+now+'deg)',
                  '-o-transform':'rotate('+now+'deg)',
                  '-ms-transform':'rotate('+now+'deg)',
                  'transform':'rotate('+now+'deg)'
                });
            },
            complete: complete || $.noop
        });
    });
};


//-------Animates home menu circles into view
animateHomeMenu = function(numCircles){
	
	for(i=0;i<numCircles;i++){
		
		   
		    	delay = i*500;
		    	
		    	$('#circle'+(i+1)).delay(delay).animate({
			        opacity: '1.0',
			    });
			    $('#circle'+(i+1)).animateRotate(0,(-380+((270/numCircles)*i)), 3000, delay, 'easeOutCubic', function () {});

		
			    
			    // rotate the inner content circle in the opposite direction to stabalize content
			    $('#inner'+(i+1)).animateRotate(0,-(-380+((270/numCircles)*i)), 3000, delay, 'easeOutCubic', function () {});
			    
			    //fade in content 
			    $('#inner'+(i+1)).delay(800+(delay)).animate({
			        opacity: '1.0',
			    });
			  // fades in text after animation
			    $('#text'+(i+1)).delay(1500+(delay)).animate({
			        opacity: '1.0',
			    });
	    
	}
    
    
}

//-----------Animates other menu circles out of view for when one is selected
closeOtherCircles = function(numCircles, selected, shiftBy){
	
	for(i=numCircles-1; 0 <= i;i--){
		
		   if(('#circle'+(i+1))!=selected){
		    	var delay = 300/(i+1);
		    	
		    	var startPos = (-380+((270/numCircles)*i));
			    $('#circle'+(i+1)).animateRotate(startPos,startPos+shiftBy, 1500, delay, 'easeOutCubic', function () {});

			    
			    // rotate the inner content circle in the opposite direction to stabalize content
			    $('#inner'+(i+1)).animateRotate(-startPos,-(startPos+shiftBy), 1500, delay, 'easeOutCubic', function () {});

			    $('#circle'+(i+1)).delay(800).animate({
			        opacity: '0.0',
			    });
			    
			    //fade in content 
			    $('#inner'+(i+1)).delay(800).animate({
			        opacity: '0.0',
			    });
			  // fades in text after animation
			    $('#text'+(i+1)).delay(800).animate({
			        opacity: '0.0',
			    });
	    }
	}
    
   }
 
              
            
!
999px

Console