I would like to make the menu with the smooth magnification effect like the dock in macOS.
I took this example as a basis https://codepen.io/osublake/pen/BZNGyd but the animation does not work smoothly and only starts when you move to the next or previous element.
Is it possible to make the animation work smoothly and work at the slightest mouse movement? As in this example https://codepen.io/icebob/pen/bNZrEN
Any help with this question would be great.