Full Screen Menu using pure css3 | Sanwebcorner

Full Screen Menu using pure css3

In this post we are going to see how to create full screen  menu using only css code. This is very simple concept to display menu in full screen mode, This is also like mobile toggle menu. Now a days all are want different types of designing concept in websites. This menu one of the different menu concept for websites. This menu contains the three bar in the right side corner when you click that particular menu it hiding the all home page contents and displays the menus. When you want to close the menu you should click the right corner close icon.

Now a days this type of common menu is using in the websites. This is also one of the user friendly. This menu fully done by using pure css3 code, Without any help of javascript and jquery. I hope this example is very useful for the developers. Here we have the demo page, Please check out the demo page in the below link. 


Html Code for Full Screen Menu:

<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Full Screen Menu using Css3 | sanwebcorner.com</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<label>
<input type='checkbox'>
<span class='menu'>
<span class='fullmenu'></span>
</span>
<ul>
<li><a href='http://www.sanwebcorner.com/'>Home</a></li>
<li><a href='http://demos.sanwebcorner.com/'>Demo</a></li>
<li><a href='https://www.facebook.com/sanwebcorner/'>About</a></li>
</ul>
</label>
<h1>San Web Corner - Full Screen Menu using css</h1>
</body>
</html>


Css for Full Screen Navigation Bar:

*,
*:before,
*:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

html {
font-size: 18px;
}

body {
font-size: 1.2em;
line-height: 1.6;
background: #8BC34A;
overflow-x: hidden;
}

label .menu {
position: absolute;
right: -100px;
top: -100px;
z-index: 100;
width: 200px;
height: 200px;
background: #FFF;
border-radius: 50% 50% 50% 50%;
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
-webkit-box-shadow: 0 0 0 0 #FFF, 0 0 0 0 #FFF;
box-shadow: 0 0 0 0 #FFF, 0 0 0 0 #FFF;
cursor: pointer;
}
label .fullmenu {
position: absolute;
top: 135px;
left: 50px;
width: 30px;
height: 2px;
background: #000;
display: block;
-webkit-transform-origin: center;
transform-origin: center;
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}
label .fullmenu:after, label .fullmenu:before {
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
content: "";
position: absolute;
display: block;
width: 100%;
height: 100%;
background: #000;
}
label .fullmenu:before {
top: -10px;
}
label .fullmenu:after {
bottom: -10px;
}
label input {
display: none;
}
label input:checked + .menu {
-webkit-box-shadow: 0 0 0 100vw #FFF, 0 0 0 100vh #FFF;
box-shadow: 0 0 0 100vw #FFF, 0 0 0 100vh #FFF;
border-radius: 0;
}
label input:checked + .menu .fullmenu {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
label input:checked + .menu .fullmenu:after {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
bottom: 0;
}
label input:checked + .menu .fullmenu:before {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
top: 0;
}
label input:checked + .menu + ul {
opacity: 1;
}
label ul {
z-index: 200;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
opacity: 0;
-webkit-transition: .25s 0s ease-in-out;
transition: .25s 0s ease-in-out;
}
label a {
margin-bottom: 1em;
display: block;
color: #000;
text-decoration: none;
}

h1 {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 80%;
text-align: center;
color:#fff;
}

Post a Comment

Labels

360 degree view product image 3d rotate 3d text 3step-form Accordion menu ajax All Browsers Animated Background Gradient animation audio controller auto complete Best accordion menu bootstrap border bounce effect on hover Breadcrumb calculate age by dob calendar Captcha change image on mouse move color chooser countdown Counter on scroll create random number Css css animation css buttons css hover css3 customized upload Button Date picker delete data from table Different scroll speed email otp verification email verifier Embed eventlist Expanding Menu feedbck form flash news section close button full screen menu Google custom search Google Maps Google reCAPTCHA Google site search gradient hide menu Horizontal News ticker Hover Htm Html html dropdown html form html5 html5 form validation Iframe image hover increment decrement textbox value based on select box Javascript Jquery js Layered image effect on mouse hover lock & unlock page scroll marquee marquee with close button mobile number validation mobile otp login Multi-level-drop-down-menu multi-level-form multi-select-checkbox Multi-Step-form Multiple File Upload in PHP mysql News ticker on hover change text to image our team page password generator password strength checker Photoshop PHP php mailer populate html selectbox Popup image on click the link pure css Question type form random number generate Random password Redirect page Based on the select box while submit the form responsive responsive menu responsive popup box Responsive Vertical Time line design rotate image selectbox based on select box simple coming soon page simple countdown based on end date simple typing effect slider sliding tab sms otp login statistic counter on scroll switch tag shape team member Time picker toggle toggle view transparent button underline animation up down slide validation vertical fixed sidebar Webtips whatsapp link website Youtube