Created
September 13, 2010 15:31
-
-
Save kahlil/577462 to your computer and use it in GitHub Desktop.
Make an element vibrate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* from http://prashant.es/labs/vibrating-notices/ */ | |
/* Github Project: http://github.com/phused/Vibrating-Notices */ | |
<script src="/path/to/jquery.min.js"></script> | |
<script src="/path/to/jquery.vibrating-notices.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('a.vibrate').bind('click', function() { | |
$('#message').vibrate('x', 10, 4, 85); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment