JavaScript
Article

Vibrate Page Elements Using jRumble

By Sam Deering

jrumble

Hi guys, I’ve stumbled across a pretty cool jQuery plugin which you can use to make your page elements really stand out from the crowd! It takes any page element and makes it vibrate. Could be used to animate a mobile phone vibration? Maybe more useful for a washing machine website?!? ;-)

Demo
Download

Features

  • rumbleSpeed – Set the speed/frequency in milliseconds of the rumble (lower number = faster)
  • rumbleEvent – Set the event that triggers the rumble (‘hover’, ‘click’, ‘mousedown’, ‘constant’)
  • rangeRot/rumbleRange – Set the rotation range (degrees) and rumble range (pixels)
  • CSS compatability

Usage

$(document).ready(function(){
	$('#my-rumble-div').jrumble();
});

No Reader comments

Recommended

Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Get the latest in JavaScript, once a week, for free.