Animated Menu link underline Effect in wordpress or HTML Css
How to add animated Menu link underline effect in wordpress or HTML Css
Find your menu li class and insert below CSS code ,
Ist Code
.main-navigation li a:before { content: ""; position: absolute; width: 100%; height: 2px; bottom: 0; left: 0; background-color: #000; visibility: hidden; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transition: all 0.3s ease-in-out 0s; transition: all 0.3s ease-in-out 0s; }
And that’s it! Firefox has had support for2nd Code
.main-navigation li a:hover:before { visibility: visible; -webkit-transform: scaleX(1); transform: scaleX(1); }
Enjoy!
animation
and transform
without the moz
prefix since version 16.0 (for over a year), so I’ve left out the prefix in the code. If you want to be safe, you should add -o
and -moz
to all animations and transforms.
No Comment to " Animated Menu link underline Effect in wordpress or HTML Css "