Navigation
Posted in
6932
11:19 pm, December 5, 2021
Menu items with reveal swipe hover effect
Here is a nice scrolling animated reveal effect on mouse over for menu items.
Preview
Menu items with reveal swipe hover effect Demo
View Demo Full Screen View Demo New Tab
Menu items with reveal swipe hover effect Code
HTML
<ul class="menu-reveal">
<li class="current"><a href="#" data-hover="Home">Home</a></li>
<li><a href="#" data-hover="About Us">About Us</a></li>
<li><a href="#" data-hover="Blog">Blog</a></li>
<li><a href="#" data-hover="Services">Services</a></li>
<li><a href="#" data-hover="Products">Products</a></li>
<li><a href="#" data-hover="Contact">Contact</a></li>
</ul>
CSS
@import url(https://fonts.googleapis.com/css?family=Raleway:400,500,800);
.menu-reveal {
font-family: 'Raleway', Arial, sans-serif;
text-align: center;
text-transform: uppercase;
font-weight: 500;
}
.menu-reveal * {
box-sizing: border-box;
}
.menu-reveal li {
display: inline-block;
list-style: outside none none;
margin: 0 1.5em;
padding: 0;
}
.menu-reveal a {
padding: 0.5em 0;
color: rgba(255, 255, 255, 0.5);
position: relative;
letter-spacing: 1px;
text-decoration: none;
}
.menu-reveal a:before,
.menu-reveal a:after {
position: absolute;
-webkit-transition: all 0.35s ease;
transition: all 0.35s ease;
}
.menu-reveal a:before {
bottom: 0;
display: block;
height: 3px;
width: 0%;
content: "";
background-color: #2980b9;
}
.menu-reveal a:after {
left: 0;
top: 0;
padding: 0.5em 0;
position: absolute;
content: attr(data-hover);
color: #ffffff;
white-space: nowrap;
max-width: 0%;
overflow: hidden;
}
.menu-reveal a:hover:before,
.menu-reveal .current a:before {
opacity: 1;
width: 100%;
}
.menu-reveal a:hover:after,
.menu-reveal .current a:after {
max-width: 100%;
}
Add Comment
Other Items in Navigation
Related Search Terms
Other Categories in Code
404 pages animation animations background effects boxes buttons css css & javascript css animation css animations css backgrounds css cursors css framework css frameworks css modal css positions css reset css shadows css slider css text effects css text formatting css tips css tools css z-index content slider cookie alerts design html css sections html canvas html sections icons image zoom interactive images lightbox link effects loading animation modals mouse effects navigation notifications parallax profiles quick css seo sections text ui web developer checklists animations backgrounds bootstrap buttons css css animated css animations css framework css grid footers forms html image effects images javascript scroll effects sections show your work svg text animation timeline
css animations
css animations
HTML Canvas
javascript