LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code



	
	
	
	Document
	


	
		
		
			
			
			
		
	

CSS
menu {
	width: 100px;
	height: 80px;
	position: relative;
	padding: 0;
	margin: 30px 30px auto auto;
}

burger {
	width: 100px;
	height: 100px;
	margin: 0;
	display: flex;
	justify-content: space-evenly;
	flex-direction: column;
	transition: all 0.8s cubic-bezier(.25,.1,.25,1);
	z-index: 1;
}

bread {
	width: 100%;
	height: 20px;
	background: #111;
	display: block;
	position: relative;
}

bread:first-child {
	border-top-left-radius: 50%;
	border-top-right-radius: 50%;
	background: -webkit-radial-gradient(rgb(255,255,255) 8%, rgba(0,0,0,0) 8%), -webkit-radial-gradient(rgb(255,255,255) 8%, rgba(0,0,0,0) 8%), rgb(0, 0, 0);
	background: -moz-radial-gradient(rgb(255,255,255) 8%, rgba(0,0,0,0) 8%), -moz-radial-gradient(rgb(255,255,255) 8%, rgba(0,0,0,0) 8%), rgb(0, 0, 0);
	background: radial-gradient(rgb(255,255,255) 8%, rgba(0,0,0,0) 8%), radial-gradient(rgb(255,255,255) 8%, rgba(0,0,0,0) 8%), rgb(0, 0, 0);
	background-repeat: repeat;
	background-position: 0 0, 31px 28px;
	-webkit-background-origin: padding-box;
	background-origin: padding-box;
	-webkit-background-clip: border-box;
	background-clip: border-box;
	-webkit-background-size: 20px 20px;
	background-size: 20px 20px;
	height: 30px;
	transition: all 0.8s cubic-bezier(.25,.1,.25,1);
}

bread:last-child:before {
	content: '';
	position: absolute;
	width: 0px;
	height: 0px;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 12px solid #ffeb00;
	left: 50%;
}

#menu-toggle {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

#menu-toggle:checked + burger {
	height: 100px;
	position: relative;
	transition: all 0.7s cubic-bezier(.25,.1,.25,1);
}

#menu-toggle:checked + burger bread {
	display: none;
}

#menu-toggle:checked + burger bread:first-child {
	display: block;
	width: 100px;
	margin-top: 0;
	height: 100px;
	border-radius: 50%;
	position: absolute;
	transition: all 0.7s cubic-bezier(.25,.1,.25,1);
}

Description

Pure html and css version of burger menu icon, but now for real!
Term
Sat, 04/14/2018 - 20:44

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv