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

              
                <body >





<div id="container" class="cont_ainer">

<nav>

<div id="circlemain" class="circle_main" >
	
	
	
		<div class="arc1 line1">
           <div class="arc1 line2">
            <div class="arc1 line3">

            </div>
          </div>
	</div>
	
	
	
	
	
	<div class="reactor">
	<div class="navcontainer" onclick="navTog(this); barWidth();">
<div class="hamContainer" onclick="hamFunction(this)">
  <div class="hbar1"></div>
  <div class="hbar2"></div>
  <div class="hbar3"></div>
  <div class="hbar4"></div>
  <div class="hbar5"></div>
</div>
 <span class="reacttext">CSS</span>
 	</div>	
	</div>
	
	
	
	
	
	
	<span  id="barleft" class="bar_left ">
		<ul class="nav_top" id="navtop">
		<li><a href="www.google.com">Home</a></li>
		<li><a href="www.google.com">Apps</a></li>
		<li><a href="www.google.com">Games</a></li>
			

		</ul>	
	</span>
	
	
	<span id="barright" class="bar_right">	
	<ul class="nav_bottom" id="navbottom">
	<li><a href="www.google.com">guide</a></li>
	<li><a href="www.google.com">Index</a></li>
	<li><a href="www.google.com">Review</a></li>
	</ul>
	</span>
	
	
</div>
</nav>
</div>
</body>
              
            
!

CSS

              
                
	@font-face {
    font-family: pirulen;
    src: url(https://raw.githubusercontent.com/th3knigh7/css-design/black-bg/pirulen.ttf);
	
	}
	@font-face{
	font-family: destructob;
    src: url(https://raw.githubusercontent.com/th3knigh7/css-design/black-bg/destructob.ttf);
    
	}
	
	body{background-color:;
background-image:url("https://www.transparenttextures.com/patterns/inspiration-geometry.png");
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
	}
	
	nav li a{
		color:black;
		text-decoration: none;
	transition: letter-spacing .5s;
	}
	
	
	
	.circle_main{
		font-family: pirulen;
		font-size:10px;
		color:white;
		position: relative;
		margin:0 auto;
		width:100px;
		height:100px;
		border-radius: 50%;
		background:rgba(15,94,110,.1);
		transition: width 1s ,height 1s;
		z-index: 1;
	}
	
	
	.change .circle_main{
    width:110px;
	height:110px;
	}
	
	.circle_main:hover{
	animation: vibrate .5s infinite ease-out;
	}
	
	.bar_left{
		position:absolute;
		top:35px;
		right:43px;
		width: 4px;
		height: 33px;
		border-radius:2px;
		box-shadow: 0 0 13px 3px rgba(0, 131, 177, 0.77);
		transition:transform 1s, width 1s;
		z-index:-2;
	}
	
	.change .bar_left{
	width:240px;
	transform: skewX(20deg);
	animation: op 1s;	
	}
	
	.bar_right{
		position:absolute;
		top:35px;
		left:43px;
		width: 4px;
		height: 33px;
		border-radius:2px;
		box-shadow: 0 0 13px 3px rgba(0, 131, 177, 0.77);
		transition: transform 1s,width 1s;
		z-index: -1;
	}
	
	.change .bar_right{	
	width:240px;
	transform: skewX(-20deg);
	animation: op 1s;
	}
	
	
	@keyframes op{
		0%{opacity:0;}
		20%{opacity:0;}
		100%{opacity:1;}
	}
	
.arc1 {
  content:"";
  position: absolute;
  width: 90%;
  height: 90%;
  left: 4.92%;
  top: 4.92%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  animation: rotate 4s linear infinite;
  text-align: center;
  line-height: 129px;
}
	
.line1 {
  border: 2px solid white ;
  border-left: 1px solid transparent;
  animation: rotate 5s linear infinite;
}

.line2 {
  border: 4px solid white;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  animation: rotate_anti 4s linear infinite;
}

.line3 {
  border: 2px solid white;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  animation: rotate 3s linear infinite;
}

.line4 {
  border: 4px solid white;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid transparent;
  animation: rotate_anti 2s linear infinite;
}
	
	/*main reactor*/
	
		
.reactor {
  position:absolute;
  background:#fff;
  width: 30%;
  height: 30%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  border: 5px solid rgba(2, 255, 255, 0.15);
  margin:30%;
  cursor: pointer;
}
.change .reactor{
		 animation: flicker .2s infinite;
	}
	
.reacttext{
		opacity:0;
		position:absolute;
		top:25%;
		margin:0 auto;
		color:rgba(0,0,0,1);
		font-size:14px;
		font-weight: 900;
		font-family: destructob;		
		transition: opacity 1s;
			}

	.change .reacttext{
		opacity:1;
	}
	
	
	/* Navigation css*/
	
	.bar_left>ul{
		padding: 0;
		margin:10px 70px 0 0px;
		list-style:none;
		transform: skewX(-20deg);
		
	}
	
	.bar_right>ul{
		padding:0;
		margin:10px 0 0 70px;
		list-style:none;
		transform: skewX(20deg);
		}
	
	li{margin:auto;
	}

	nav li a:hover{
		letter-spacing:2px;
	}
	
	.nav_top{
		display:none;
		flex-direction: row;
	}
	
	.change .nav_top{display: flex;}
	
	.nav_bottom{
		display:none;
		flex-direction:row-reverse;
	}
	.change .nav_bottom{display: flex;}

		
	/* ham style */
	
	.hamContainer{
		position: absolute;
		top:-6%;
		transition:opacity 1s;
	}
	
	.hbar1, .hbar2, .hbar3,.hbar4,.hbar5 {
    height: 2px;
   background-color:black;
	border-radius: 4px;
	margin:4px auto;
		
		
}

 
	.hbar1 {
width:15px;
animation: a 1s infinite;
animation-delay: .5s;
	
}

	

	.hbar2 {
	width:20px;
	animation:a 1s infinite;
	animation-delay: .5s;}

	.hbar3 {
	width: 30px;
	animation:a 1s infinite;
	animation-delay: .5s;
	}

	.hbar4 {
	width:20px;
	animation:a 1s infinite;
	animation-delay: .5s;
	}

	.hbar5 {
	width:15px;
	animation:a 1s infinite;
	animation-delay: .5s;
	}
	
	.change .hamContainer{
		opacity:0;
	}

	


@keyframes a {
    0% {
        
        transform: scaleX(1) skewX(10deg)  ;
    }
    50% {
        
        transform: scaleX(.7) skewX(20deg)  ;
    }
    100% {
        
        transform: scaleX(1) skewX(30deg);
    }
}

	
	/*ham style ends*/
	
	
	/*Animations*/
	
		@keyframes flicker{
  0% {
    box-shadow: 0px 0px 60px 25px rgba(150, 255, 255, 0.5), inset 0px 1px 4px 2px rgba(21, 211, 233, 0.3);
  }
  40% {
    box-shadow: 0px 0px 60px 25px rgba(150, 255, 255, 0.5), inset 0px 1px 4px 2px rgba(21, 211, 233, 0.3);
  }
  50% {
    box-shadow: 0px 0px 50px 17px rgba(150, 255, 255, 0.5), inset 0px 1px 100px 2px rgba(21, 211, 233, 0.3);
  }
  60% {
    box-shadow: 0px 0px 60px 25px rgba(150, 255, 255, 0.5), inset 0px 1px 4px 2px rgba(21, 211, 233, 0.3);
  }
  100% {
    box-shadow: 0px 0px 60px 25px rgba(150, 255, 255, 0.5), inset 0px 1px 4px 2px rgba(21, 211, 233, 0.3);
  }
}
	
	
@keyframes rotate {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}
	
	
@keyframes rotate_anti {
  0% {
    transform: rotateZ(360deg);
  }
  100% {
    transform: rotateZ(0deg);
  }
}

	
	
	
/* Animation Ends*/

              
            
!

JS

              
                function barWidth(){
var d =document.getElementsByClassName("cont_ainer");
d[0].classList.toggle("change");	
	}	
		
function navTog(x) {
    x.classList.toggle("change");
}		
	
              
            
!
999px

Console