How on JS to implement a smooth appearance of the button when you hover and a smooth disappearance? It is possible on jQuery.

  • one
    Change the transparency of the button with the animation () function in jQ and that's it. - metazet

1 answer 1

Try this (jQuery):

$("#something").hover(function () { // Устанавливает прозрачность в 1 при наведении $("#something").fadeTo("slow", 1.0); }, function () { // Устанавливает прозрачность в 0 при выведении $("#something").fadeTo("slow", 0.0); });