I have this HTML:
<nav>
<div id="nav-show">
<a class="m-btn rnd black mobile-hide" href="">Home</a>
<a class="m-btn rnd black mobile-hide" href="">About</a>
<a class="m-btn rnd black mobile-hide" href="">Projects</a>
<a class="m-btn rnd black mobile-hide" href="">Quality</a>
<a class="m-btn rnd black mobile-hide" href="">Products</a>
<a class="m-btn rnd black mobile-hide" href="">Contact Us</a>
<a class="m-btn rnd black mobile-hide" href="">Links</a>
</div>
How could I possibly implement something like this? (I am a JS noob)
As the article says:
The Idea
The idea is to have a highlight of some kind (a background or an underline) follow you around as you mouse over the different links in the navigation. This will happen with jQuery and it's animation abilities. As such, the "magic line" will only be appended via JavaScript. Once added to the list and styled, as you mouse over the different links, it figures out the left positioning and the width and animates to match
I don't really want to change the HTML due to various factors.
I have jQuery etc, it would need to be compatibe with IE8 up.
I did try this: Code here
Harley