Pure CSS Navigation
How do I make an pure css navigation?
What is a pure css navigation? How do you make a pure css navigation? This script and codes were developed by Michaela on 27 July 2022, Wednesday.
Pure CSS Navigation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure CSS Navigation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /* Fonts */
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,700);
@import url(http://weloveiconfonts.com/api/?family=fontawesome);
body { font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400;
}
[class*="fontawesome-"]:before { font-family: 'FontAwesome', sans-serif;
}
/* Styles */
input[type=checkbox] + label { -moz-transition: background-color 1s ease-in 0.25s, color 0.75s ease-in 0.1s; -o-transition: background-color 1s ease-in 0.25s, color 0.75s ease-in 0.1s; -webkit-transition: background-color 1s ease-in, color 0.75s ease-in; -webkit-transition-delay: 0.25s, 0.1s; transition: background-color 1s ease-in 0.25s, color 0.75s ease-in 0.1s; font-size: 2rem; font-weight: 700; background-color: white; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; cursor: pointer; padding: 0.3em 0.4em 0.3em 0.4em; position: fixed; top: 0; left: 0;
}
input[type=checkbox]:checked + label { color: white; background-color: black;
}
input[type=checkbox] ~ ul { list-style: none; position: absolute; top: 4.4em; left: 0;
}
.nav-item { -moz-transition: left 0.1s ease-in; -o-transition: left 0.1s ease-in; -webkit-transition: left 0.1s ease-in; transition: left 0.1s ease-in; padding: 0.7em 2.5em 0.7em 1em; position: relative; left: -100%; /* Animation delay function */
}
.nav-item:nth-child(1) { -moz-transition-delay: 0.1s; -o-transition-delay: 0.1s; -webkit-transition-delay: 0.1s; transition-delay: 0.1s;
}
.nav-item:nth-child(2) { -moz-transition-delay: 0.2s; -o-transition-delay: 0.2s; -webkit-transition-delay: 0.2s; transition-delay: 0.2s;
}
.nav-item:nth-child(3) { -moz-transition-delay: 0.3s; -o-transition-delay: 0.3s; -webkit-transition-delay: 0.3s; transition-delay: 0.3s;
}
.nav-item:nth-child(4) { -moz-transition-delay: 0.4s; -o-transition-delay: 0.4s; -webkit-transition-delay: 0.4s; transition-delay: 0.4s;
}
.nav-item a { color: black; text-decoration: none;
}
input[type=checkbox]:checked ~ ul .nav-item { left: 0;
}
input[type=checkbox]:checked ~ ul .nav-item:hover, input[type=checkbox]:checked ~ ul .nav-item:active { background-color: black;
}
input[type=checkbox]:checked ~ ul .nav-item:hover a, input[type=checkbox]:checked ~ ul .nav-item:active a { color: white;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <nav> <input id="toggleNavigation" type="checkbox"> <label for="toggleNavigation" class="fontawesome-reorder"></label> <ul> <li class="nav-item"><a href="#">About</a></li> <li class="nav-item"><a href="#">Projects</a></li> <li class="nav-item"><a href="#">Links</a></li> <li class="nav-item"><a href="#">Download CV</a></li> </ul>
</nav>
</body>
</html>
Pure CSS Navigation - Script Codes CSS Codes
/* Fonts */
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,700);
@import url(http://weloveiconfonts.com/api/?family=fontawesome);
body { font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400;
}
[class*="fontawesome-"]:before { font-family: 'FontAwesome', sans-serif;
}
/* Styles */
input[type=checkbox] + label { -moz-transition: background-color 1s ease-in 0.25s, color 0.75s ease-in 0.1s; -o-transition: background-color 1s ease-in 0.25s, color 0.75s ease-in 0.1s; -webkit-transition: background-color 1s ease-in, color 0.75s ease-in; -webkit-transition-delay: 0.25s, 0.1s; transition: background-color 1s ease-in 0.25s, color 0.75s ease-in 0.1s; font-size: 2rem; font-weight: 700; background-color: white; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; cursor: pointer; padding: 0.3em 0.4em 0.3em 0.4em; position: fixed; top: 0; left: 0;
}
input[type=checkbox]:checked + label { color: white; background-color: black;
}
input[type=checkbox] ~ ul { list-style: none; position: absolute; top: 4.4em; left: 0;
}
.nav-item { -moz-transition: left 0.1s ease-in; -o-transition: left 0.1s ease-in; -webkit-transition: left 0.1s ease-in; transition: left 0.1s ease-in; padding: 0.7em 2.5em 0.7em 1em; position: relative; left: -100%; /* Animation delay function */
}
.nav-item:nth-child(1) { -moz-transition-delay: 0.1s; -o-transition-delay: 0.1s; -webkit-transition-delay: 0.1s; transition-delay: 0.1s;
}
.nav-item:nth-child(2) { -moz-transition-delay: 0.2s; -o-transition-delay: 0.2s; -webkit-transition-delay: 0.2s; transition-delay: 0.2s;
}
.nav-item:nth-child(3) { -moz-transition-delay: 0.3s; -o-transition-delay: 0.3s; -webkit-transition-delay: 0.3s; transition-delay: 0.3s;
}
.nav-item:nth-child(4) { -moz-transition-delay: 0.4s; -o-transition-delay: 0.4s; -webkit-transition-delay: 0.4s; transition-delay: 0.4s;
}
.nav-item a { color: black; text-decoration: none;
}
input[type=checkbox]:checked ~ ul .nav-item { left: 0;
}
input[type=checkbox]:checked ~ ul .nav-item:hover, input[type=checkbox]:checked ~ ul .nav-item:active { background-color: black;
}
input[type=checkbox]:checked ~ ul .nav-item:hover a, input[type=checkbox]:checked ~ ul .nav-item:active a { color: white;
}
Developer | Michaela |
Username | Fischaela |
Uploaded | July 27, 2022 |
Rating | 3 |
Size | 3,649 Kb |
Views | 46,552 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Figure caption hover effect | 4,946 Kb |
WebGL Game Endless Runner | 6,354 Kb |
Animated progress bar | 3,495 Kb |
HTML5 game experiment with CreateJS | 4,135 Kb |
IPad app prototype template | 2,396 Kb |
News reading experiment | 6,961 Kb |
Geildanke products | 5,250 Kb |
Profile page scibble | 3,692 Kb |
Animation tests | 2,748 Kb |
Projects geildanke with new animations | 6,186 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Sidebar Thing | Jonambas | 2,779 Kb |
Nested flexbox layout for library catalog | Boycetrus | 3,271 Kb |
CSS3 Animated buttons | Cguillou | 3,737 Kb |
Factorial | KeithleySLHS | 1,158 Kb |
Get third wednesday | Wojtek1150 | 2,691 Kb |
Slick Slider | Wearebold | 5,913 Kb |
Owl Carousel - jumpTo | OwlFonk | 2,553 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
Portfolio Page | HuffmanJ25 | 5,240 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!