Based on Chris Coyier's MagicLine from CSS Tricks (https://css-tricks.com/jquery-magicline-navigation/). This version uses CSS transforms and transitions to take advantage of hardware acceleration, which should improvement performance.
A Pen by Todd Miller on CodePen.
Hi Tod, thanks! Great improvement.
Only thing that buggin me, on page load first position of line is not 'stable'. It is dynamically animate to current item instead of starting on it. So after every click or refresh line just slide in from left. Can this be changed?
You can see the issue when you set current_page_item on other then first item.