Jquery bouncing images hover

How to bounce images using jQuery when hovering images?

+3
source share
2 answers

It will be like

$('img').bind('mouseenter', function(){
     $(this).effect("bounce", { times:3 }, 300);
});

using jQuery user interface effects.

+4
source

I'm not sure exactly what you are looking for, but if you use jQueryUI it has an effect bounce.

Try: http://jsfiddle.net/G8Ste/

$('#myimage').mouseenter(function() {
    $(this).effect('bounce',500);
});​

Here you can test various effects:

http://jqueryui.com/demos/effect/

+4
source

Source: https://habr.com/ru/post/1751554/


All Articles