I use the animate () function to change the background position of the button on hover, the problem is that instead of βanimatingβ it just waits for the duration (500) and clicks in the new background position - without a smooth transition.
$('.confirm').hover(function() { $(this).animate({backgroundPosition: '0, -40px'}); }, function() { $(this).animate({backgroundPosition: '0, 0'}); });
What I use JS. Any ideas why this doesn't make a smooth transition? It acts like a timeout. I have both jQuery and UI.
Thanks!
source share