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

              
                <nav role="navigation">
	<div id="clickNav">
		<input type="checkbox" />
		
		<span></span>
		<span></span>
		<span></span>
		
		<ul class="nav-data" role="list">
			<li><a href="http://dograsweblog.com/" data-title="Home" aria-label="Home">Home</a></li>
			<li><a href="http://dograsweblog.com/nishant-dogra/" data-title="About" aria-label="About">About author</a></li>
			<li><a href="http://dograsweblog.com/expertise/" data-title="My Expertise" aria-label="My Expertise">Expertise</a></li>
			<li><a href="http://dograsweblog.com/articles/" data-title="My Technical articles" aria-label="My Technical articles">Tech Articles</a></li>
			<li><a href="http://dograsweblog.com/moments/" data-title="My twitter moments" aria-label="My twitter moments">Moments</a></li>
			<li class="separator"></li>
			<li><a href="http://dograsweblog.com/force-framework/?utm_medium=DograsWeblog" data-title="Force Framework" aria-label="Force Framework">Force Framework</a></li>
			<li><a href="http://dograsweblog.com/drive/good-time-game/?utm_medium=DograsWeblog" data-title="Don't Waste Good Time" aria-label="Don't Waste Good Time">Don't Waste Good Time</a></li>
			<li><a href="http://dograsweblog.com/drive/quotes-by-dogra/?utm_medium=DograsWeblog" data-title="QuotesByDogra" aria-label="QuotesByDogra">#QuotesByDogra</a></li>
			<li><a href="http://dograsweblog.com/engine/?utm_medium=DograsWeblog" data-title="Force Framework" aria-label="Force Framework">Custom Search Engine</a></li>
			<li><a href="http://dograsweblog.com/drive/?utm_medium=DograsWeblog" data-title="DograsWeblog Free Themes" aria-label="DograsWeblog Free Themes">DW Themes</a></li>
			<li class="separator"></li>
			<li><p><strong> © DOGRA'S WEBLOG</strong></p></li>
		</ul>
	</div>
</nav>

<div class="container">
<div class="horizontal">
		<div class="vertical">
			<h1 style="position: relative; text-align: center; top: 100px; color: #fff; font-weight: bold;">Pure CSS navigation - Force Framework</h1>
		</div>
	</div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Roboto');
* { margin: 0; padding: 0;}
body { margin: 0; padding: 0; background: #232323; color: #cdcdcd; font-family: 'Roboto', sans-serif;}
a { text-decoration: none; color: #232323; transition: color 0.3s ease;}
a:hover, a:active, a.active { color: #ed8300;}
nav { float: left; width: 0; height: 0;}
.nav-data { position: absolute; width: 240px; margin: -100px 0 0 -50px; padding: 125px 10px 40px; background: #ededed; list-style-type: none;}
.nav-data li { padding: 10px 25px; font-size: 16px;}
.nav-data li a { padding: 0;} /* padding: 25px 50px */
.nav-data .separator { padding: 0; border-bottom: 3px solid #e6e7ea; cursor: default; margin: 6px 0;}
#clickNav { display: block; position: relative; top: 50px; left: 50px; z-index: 1;}
#clickNav input { display: block; width: 40px; height: 32px; position: absolute; top: -7px; left: -5px; cursor: pointer; opacity: 0; z-index: 9999; -webkit-touch-callout: none;}
#clickNav input:checked ~ ul { -webkit-transform: none; transform: none;}

#clickNav span { display: block; width: 33px; height: 4px; margin-bottom: 5px; position: relative; background: #f89c2b; border-radius: 3px; z-index: 1;}
#clickNav span {
-webkit-transform-origin: 4px 0px;
transform-origin: 4px 0px;
transition: background 0.5s cubic-bezier(0.77,0.2,0.05,1.0), 
opacity 0.55s ease,
-webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
opacity 0.55s ease;
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
opacity 0.55s ease,
-webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#clickNav span:first-child { 
	-webkit-transform-origin: 0% 0%; 
	transform-origin: 0% 0%;
}
#clickNav span:nth-last-child(2) { 
	-webkit-transform-origin: 0% 100%; 
	transform-origin: 0% 100%;
}

#clickNav input:checked ~ span { 
	opacity: 1; 
	-webkit-transform: rotate(45deg) translate(-2px, -1px); 
	transform: rotate(45deg) translate(-2px, -1px); 
	background: #232323;
}

#clickNav input:checked ~ span:nth-last-child(3) {
	opacity: 0;
	-webkit-transform: rotate(0deg) scale(0.2, 0.2);
	transform: rotate(0deg) scale(0.2, 0.2);
}

#clickNav input:checked ~ span:nth-last-child(2) {
	-webkit-transform: rotate(-45deg) translate(0, -1px);
	transform: rotate(-45deg) translate(0, -1px);
}

.nav-data {
	-webkit-transform-origin: 0% 0%;
	transform-origin: 0% 0%;
	-webkit-transform: translate(-100%, 0);
	transform: translate(-100%, 0);
	transition: -webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
	transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
	transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), -webkit-transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}
              
            
!

JS

              
                // Hamburger Pure CSS navigation and mobile responsive - Force Framework 
// Author: Force Framework
// Created Date: 09/02/2019
// Modified Date: 15/12/2023
// Website: https://letsforce.com/
// #ForceFramework
              
            
!
999px

Console