Navbar with 3D effect
How do I make an navbar with 3d effect?
What is a navbar with 3d effect? How do you make a navbar with 3d effect? This script and codes were developed by AxeLVaisper on 09 November 2022, Wednesday.
Navbar with 3D effect - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Navbar with 3D effect</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! */ @font-face { font-family: 'sansationregular'; src: url('sansation_regular-webfont.eot'); src: url('sansation_regular-webfont.eot?#iefix') format('embedded-opentype'), url('sansation_regular-webfont.woff') format('woff'), url('sansation_regular-webfont.ttf') format('truetype'), url('sansation_regular-webfont.svg#sansationregular') format('svg'); font-weight: normal; font-style: normal;
}
body { background-color:#edecec;
}
.nav-menu { display: block; background: #74adaa; width:1050px; margin: 50px auto 150px;
}
.nav-menu > li { display: inline; float:left; border-right:1px solid #94c0be;
}
.nav-menu > li:last-child { border-right: none;
}
.nav-menu li a { color: #fff; display: block; text-decoration: none; font-family: 'sansationregular'; -webkit-font-smoothing: antialiased; -moz-font-smoothing: antialiased; font-smoothing: antialiased; text-transform: capitalize; overflow: visible; line-height: 20px; font-size: 20px; padding: 15px 30px 15px 31px;
}
/* animation domination */
.three-d { perspective: 200px; transition: all .07s linear; position: relative;
}
.three-d:not(.active):hover { cursor: pointer;
}
.three-d:not(.active):hover .three-d-box,
.three-d:not(.active):focus .three-d-box { transform: translateZ(-25px) rotateX(90deg);
}
.three-d-box { transition: all .3s ease-out; transform: translatez(-25px); transform-style: preserve-3d; pointer-events: none; position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%;
}
.front { transform: rotatex(0deg) translatez(25px);
}
.back { transform: rotatex(-90deg) translatez(25px); color: #FFE7C4;
}
.front, .back { display: block; width: 100%; height: 100%; position: absolute; top: 0; left: 0; background: #74adaa; padding: 15px 30px 15px 31px; color: white; pointer-events: none; box-sizing: border-box;
}
.nav-menu li .active .front,
.nav-menu li .active .back,
.nav-menu li a:hover .front,
.nav-menu li a:hover .back { background-color: #51938f; background-size: 5px 5px; background-position: 0 0, 30px 30px; background-image: -*-linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480), linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480);
}
.nav-menu ul { position: absolute; text-align: left; line-height: 40px; font-size: 14px; width: 200px; transition: all 0.3s ease-in; transform-origin: 0px 0px; transform: rotateX(-90deg); backface-visibility: hidden;
}
.nav-menu > li:hover ul { display: block; transform: rotateX(0deg);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body>
<div id="nav"> <ul class="nav-menu clearfix unstyled"> <li><a href="#" class="three-d active"> Главная <span class="three-d-box"><span class="front">Главная</span><span class="back">Главная</span></span> </a></li> <li><a href="#" class="three-d"> Новости <span class="three-d-box"><span class="front">Новости</span><span class="back">Новости</span></span> </a></li> <li><a href="#" class="three-d"> Магазин <span class="three-d-box"><span class="front">Магазин</span><span class="back">Магазин</span></span> </a></li> <li><a href="#" class="three-d"> О нас <span class="three-d-box"><span class="front">О нас</span><span class="back">О нас</span></span> </a></li> <li><a href="#" class="three-d"> Связаться <span class="three-d-box"><span class="front">Связаться</span><span class="back">Связаться</span></span> </a></li> <li><a href="#" class="three-d"> Блог <span class="three-d-box"><span class="front">Блог</span><span class="back">Блог</span></span> </a> <ul class="clearfix unstyled drop-menu"> <li><a href="#" class="three-d"> HTML <span class="three-d-box"><span class="front">HTML</span><span class="back">HTML</span></span> </a></li> <li><a href="#" class="three-d"> CSS <span class="three-d-box"><span class="front">CSS</span><span class="back">CSS</span></span> </a></li> <li><a href="#" class="three-d"> JavaScript <span class="three-d-box"><span class="front">JavaScript</span><span class="back">JavaScript</span></span> </a></li> </ul> </li> </ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Navbar with 3D effect - Script Codes CSS Codes
@font-face { font-family: 'sansationregular'; src: url('sansation_regular-webfont.eot'); src: url('sansation_regular-webfont.eot?#iefix') format('embedded-opentype'), url('sansation_regular-webfont.woff') format('woff'), url('sansation_regular-webfont.ttf') format('truetype'), url('sansation_regular-webfont.svg#sansationregular') format('svg'); font-weight: normal; font-style: normal;
}
body { background-color:#edecec;
}
.nav-menu { display: block; background: #74adaa; width:1050px; margin: 50px auto 150px;
}
.nav-menu > li { display: inline; float:left; border-right:1px solid #94c0be;
}
.nav-menu > li:last-child { border-right: none;
}
.nav-menu li a { color: #fff; display: block; text-decoration: none; font-family: 'sansationregular'; -webkit-font-smoothing: antialiased; -moz-font-smoothing: antialiased; font-smoothing: antialiased; text-transform: capitalize; overflow: visible; line-height: 20px; font-size: 20px; padding: 15px 30px 15px 31px;
}
/* animation domination */
.three-d { perspective: 200px; transition: all .07s linear; position: relative;
}
.three-d:not(.active):hover { cursor: pointer;
}
.three-d:not(.active):hover .three-d-box,
.three-d:not(.active):focus .three-d-box { transform: translateZ(-25px) rotateX(90deg);
}
.three-d-box { transition: all .3s ease-out; transform: translatez(-25px); transform-style: preserve-3d; pointer-events: none; position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%;
}
.front { transform: rotatex(0deg) translatez(25px);
}
.back { transform: rotatex(-90deg) translatez(25px); color: #FFE7C4;
}
.front, .back { display: block; width: 100%; height: 100%; position: absolute; top: 0; left: 0; background: #74adaa; padding: 15px 30px 15px 31px; color: white; pointer-events: none; box-sizing: border-box;
}
.nav-menu li .active .front,
.nav-menu li .active .back,
.nav-menu li a:hover .front,
.nav-menu li a:hover .back { background-color: #51938f; background-size: 5px 5px; background-position: 0 0, 30px 30px; background-image: -*-linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480), linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480);
}
.nav-menu ul { position: absolute; text-align: left; line-height: 40px; font-size: 14px; width: 200px; transition: all 0.3s ease-in; transform-origin: 0px 0px; transform: rotateX(-90deg); backface-visibility: hidden;
}
.nav-menu > li:hover ul { display: block; transform: rotateX(0deg);
}
Developer | AxeLVaisper |
Username | AxeLVaisper |
Uploaded | November 09, 2022 |
Rating | 3.5 |
Size | 3,620 Kb |
Views | 28,336 |
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 |
Apple navbar | 2,873 Kb |
3D gallery | 3,170 Kb |
Tabs with Round Out Borders | 3,248 Kb |
Ribbons | 6,941 Kb |
Icofont hover effects | 5,719 Kb |
JQuery folder tabs | 4,342 Kb |
Metro KIT UI | 13,936 Kb |
Fade loading | 2,427 Kb |
Sliding Panel Menu using jQuery | 4,309 Kb |
Slideshow in css | 4,377 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 |
Pericles mi loro... | Judag | 4,125 Kb |
Flex Chart | James_zedd | 4,111 Kb |
Resume | Rottingroom | 5,483 Kb |
Mobile Nav Menu | AliKlein | 4,745 Kb |
3D Text in Sass | Bookcasey | 2,766 Kb |
Filtering with shuffle.js | Deyand | 2,712 Kb |
Count up | Alanshortis | 2,391 Kb |
Owl Carousel - jumpTo | OwlFonk | 2,553 Kb |
Placeholder support for contentEditable elements, without JavaScript | Flesler | 1,863 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 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!