will help you I have simple animation with CSS on hover. My issue is when I hover on box first in animation is not smooth but animation out is smooth. , To avoid overriding your transition property, you should merge them :
jQuery .hover() animation not smooth - Small bump/jerk on hover effect
fixed the issue. Will look into that further addClass and removeClass api of Jquery doesn't provide any animation. They are just meant for adding or removing class. If you want to achieve animation, then you must add transition in the class you are adding.
I hope this helps . I am working on a codewars link (a div). I would like the svg inside the div to rotate continuously on hover. The resulting hover effect is far from smooth, the svg jumps when the mouse rolls over it. The mouseout event is commented out because it makes it worth. What is the best way to optimize this? Codepen: https://codepen.io/forTheLoveOfCode/pen/MOvRNb , Here, I deleted svg transformation and made CSS only solution.