I am currently working on implementing a menu item behaviour in the header similar to the one found at: . On this webpage, there is a bar that slides back and forth when hovering over elements. However, I am unable to add another element to my header, so I have opted to achieve this effect using only CSS by utilizing the after
pseudo-element.
You can view an example of what I have done so far here: https://jsfiddle.net/1czmx08y/
At the moment, there seems to be a noticeable delay when moving between items, and if I decrease the transition time, the animation starts to twitch.
I am seeking advice on how to prevent this unwanted behaviour. It seems like my transition settings may be incorrect.