CSS3 Creative Navigation Hover Effects

HTML
<section class="color-red"> <nav class="creativenav_SF"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Services</a></li> <li><a href="#">About</a></li> <li><a href="#">Products</a></li> </ul> </nav> </section> <section class="color-yellow"> <nav class="creativenav_SD"> <ul> <li><a href="#">Home</a></li> <li><a href="#">Aricles</a></li> <li><a href="#">Web Designing</a></li> <li><a href="#">Development</a></li> </ul> </nav> </section> <section class="color-pink"> <nav class="creativenav_3D"> <ul> <li><a href="#"><span data-title="silent">silent</span></a></li> <li><a href="#"><span data-title="Efficiency">Efficiency</span></a></li> <li><a href="#"><span data-title="travel">travel</span></a></li> <li><a href="#"><span data-title="agency">agency</span></a></li> </ul> </nav> </section> <section class="info"> <p>CSS3 Creative Navigation Hover Effects build with pure CSS. We use CSS3 animations to devalued them. You can find more details at <strong>codeconvey.com</strong> to read complete article with step by step guide. The code is optimized and easy to used. You need to copy the HTML code of effect that you most like and then find the CSS section for that. The CSS comment out for each effect so you can easily recognize.</p> </section>
CSS
*, *:after, *::before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } body { font-family: 'Raleway', sans-serif; font-size:14px; background:wheat; margin:0; padding:0; } section { clear: both; display: block; margin: 0 auto; padding: 2em 0; } .info { font-size: 16px; line-height: 25px; padding: 2em 5em; text-align: center; } /* Effect 1: Bottom Line*/ .creativenav_SF ul{ margin: 0; padding: 0; text-align:center; } .creativenav_SF ul > li { list-style: outside none none; display: inline-block; } .creativenav_SF a { padding: 20px 50px; position: relative; display: inline-block; outline: none; color: #435a6b; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; font-weight: 400; text-shadow: 0 0 1px rgba(255,255,255,0.3); } .creativenav_SF a:hover, .creativenav_SF a:focus { color:#fff; outline: none; background:#b82e20; -webkit-transition: opacity 0.3s, -webkit-transform 0.5s; -moz-transition: opacity 0.3s, -moz-transform 0.5s; transition: opacity 0.3s, transform 0.5s; -webkit-transform: translateY(10px); -moz-transform: translateY(10px); transform: translateY(10px); } .creativenav_SF a::after { position: absolute; top: 100%; left: 0; width: 100%; height: 4px; background: rgba(0,0,0,0.1); content: ''; opacity: 0; -webkit-transition: opacity 0.3s, -webkit-transform 0.5s; -moz-transition: opacity 0.3s, -moz-transform 0.5s; transition: opacity 0.3s, transform 0.5s; -webkit-transform: translateY(10px); -moz-transform: translateY(10px); transform: translateY(10px); } .creativenav_SF a:hover::after, .creativenav_SF a:focus::after { opacity: 1; -webkit-transform: translateY(0px); -moz-transform: translateY(0px); transform: translateY(0px); } /* Effect 2: Top To Bottom*/ .creativenav_SD ul{ margin: 0; padding: 0; text-align:center; } .creativenav_SD ul > li { list-style: outside none none; display:inline-block; } .creativenav_SD ul > li a{ color:#435a6b; outline: none; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; font-weight: 400; padding:20px 50px; position:relative; float:left; display:block; overflow:hidden; z-index:1000; list-style:none; text-align:center; text-transform:uppercase; cursor:pointer; -webkit-transition:all 0.3s cubic-bezier(.75,.06,.27,.98); -moz-transition:all 0.3s cubic-bezier(.75,.06,.27,.98); -ms-transition:all 0.3s cubic-bezier(.75,.06,.27,.98); -o-transition:all 0.3s cubic-bezier(.75,.06,.27,.98); transition:all 0.3s cubic-bezier(.75,.06,.27,.98); } .creativenav_SD ul > li a:hover{ -webkit-transition:all 0.7s cubic-bezier(.75,.06,.27,.98); -moz-transition:all 0.7s cubic-bezier(.75,.06,.27,.98); -ms-transition:all 0.7s cubic-bezier(.75,.06,.27,.98); -o-transition:all 0.7s cubic-bezier(.75,.06,.27,.98); transition:all 0.7s cubic-bezier(.75,.06,.27,.98); color:rgba(255,255,255,0.8); -webkit-box-shadow:inset 0px -3px 0px rgba(255,255,255,0.8),inset 0px 400px 0px #435a6b; -moz-box-shadow:inset 0px -3px 0px rgba(255,255,255,0.8),inset 0px 400px 0px #435a6b; box-shadow:inset 0px -3px 0px rgba(255,255,255,0.8),inset 0px 400px 0px #435a6b; } /* Effect 3: 3D Effect*/ .creativenav_3D ul li { display: inline-block; list-style: outside none none; } .creativenav_3D ul{ margin: 0; padding: 0; text-align:center; } .creativenav_3D a { padding: 20px 50px; position: relative; display: inline-block; outline: none; color: #435a6b; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; font-weight: 400; text-shadow: 0 0 1px rgba(255,255,255,0.3); } .creativenav_3D a { color: #f690b4; display: inline-block; text-decoration: none; overflow: hidden; vertical-align: top; -webkit-perspective: 600px; -moz-perspective: 600px; -ms-perspective: 600px; perspective: 600px; -webkit-perspective-origin: 50% 70%; -moz-perspective-origin: 50% 70%; -ms-perspective-origin: 50% 70%; perspective-origin: 50% 70%; } .creativenav_3D a:hover span { background: #e84b82; -webkit-transform: translate3d(0px, 0px, -30px) rotateX(90deg); -moz-transform: translate3d(0px, 0px, -30px) rotateX(90deg); -ms-transform: translate3d(0px, 0px, -30px) rotateX(90deg); transform: translate3d(0px, 0px, -30px) rotateX(90deg); } .creativenav_3D a span { display: block; position: relative; padding: 12px; -webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -ms-transition: all 0.5s ease; transition: all 0.5s ease; -webkit-transform-origin: 50% 0%; -moz-transform-origin: 50% 0%; -ms-transform-origin: 50% 0%; transform-origin: 50% 0%; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -ms-transform-style: preserve-3d; transform-style: preserve-3d; } .creativenav_3D a span:after { content: attr(data-title); display: block; position: absolute; left: 0; top: 0; padding: 12px; color: #fff; background: #e84b82; -webkit-transform-origin: 50% 0%; -moz-transform-origin: 50% 0%; -ms-transform-origin: 50% 0%; transform-origin: 50% 0%; -webkit-transform: translate3d(0px, 105%, 0px) rotateX(-90deg); -moz-transform: translate3d(0px, 105%, 0px) rotateX(-90deg); -ms-transform: translate3d(0px, 105%, 0px) rotateX(-90deg); transform: translate3d(0px, 105%, 0px) rotateX(-90deg); }
JAVASCRIPT
Expand for more options Login