html - jQuery isn't loading function on hover -


i have following code: http://jsfiddle.net/7pm2b/167/

this jquery code:

    $('#change_opacity').hover(function(){     $(this).trigger('startrumble');     }, function(){     $(this).trigger('stoprumble');     }); 

what trying achieve on hover want image shake, i'm using jrumble library "shaking" can't seem on hover working. missing?

demo

this works:

$(function () {     $('#change_opacity').jrumble();      $('#change_opacity').hover(function () {         $(this).trigger('startrumble');     }, function () {         $(this).trigger('stoprumble');     }); } 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -