"Anirudha Bhowmik menu hover"
Bootstrap 4.0.0 Snippet by anirudhabhowmik

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/hogshouse/pen/jaksE?limit=all&page=10&q=nav" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'><script src='https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js'></script> <style class="cp-pen-styles">@import url(https://fonts.googleapis.com/css?family=PT+Sans+Narrow:700); </style></head><body> <nav> <ul> <li><a href="https://www.youtube.com/channel/UCXTfDJ60DBmA932Du6B1ydg" class="current" data-hover="Home">Home</a></li> <li><a href="https://www.youtube.com/channel/UCXTfDJ60DBmA932Du6B1ydg" data-hover="About">About</a></li> <li><a href="https://www.youtube.com/channel/UCXTfDJ60DBmA932Du6B1ydg" data-hover="Portfolio">Portfolio</a></li> <li><a href="https://www.youtube.com/channel/UCXTfDJ60DBmA932Du6B1ydg" data-hover="Contact">Contact</a></li> </ul> </nav> <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script> </body></html>
* { box-sizing: border-box; } html { background: url("http://www.wordstream.com/images/cook-associates-nyc-hiring-trends.jpg") no-repeat center center fixed; background-size: cover; } body { font-family: "PT Sans Narrow", sans-serif; } nav { background: rgba(233, 233, 233, 0.8); margin: 3em 2rem; } nav ul { list-style: none; } nav ul li { display: inline-block; text-transform: uppercase; font-size: 1.5rem; letter-spacing: 0.05rem; } nav ul li a { display: inline-block; padding: 1rem; color: #000; text-decoration: none; transition: transform 0.3s ease 0s; transform-origin: 50% 0px 0px; transform-style: preserve-3d; } nav ul li a.current { color: #7AB1C1; } nav ul li a:hover { background: rgba(233, 233, 233, 0.8); color: #000; transform: rotateX(90deg) translateY(-22px); } nav ul li a::before { position: absolute; top: 100%; left: 0px; width: 100%; padding: 4px 0px; text-align: center; line-height: 50px; background: none repeat scroll 0% 0% #7AB1C1; color: #FFF; content: attr(data-hover); transition: #6363CE 0.3s ease 0s; transform: rotateX(-90deg); transform-origin: 50% 0px 0px; }

Related: See More


Questions / Comments: