JavaScript
Article
By Sam Deering

jQuery Simulate RSS Feedburner Image Shake

By Sam Deering

shake-it

Ok so I wanted to animate my new subscribe to RSS image (It’s basically a can with an RSS symbol on it but i like it!). I thought i’d make it shake when the page loads for a few seconds and then when the mouse hovers it.

To achieve this I used a plugin called jRumble and simulated click events using the timeout/ function to simulate the shake.

So, I basically downloaded the plugin, referenced it and included this simple jQuery snippet into my header file in WordPress.

jQuery Snippet to Simulate Shake



--ADVERTISEMENT--

HTML


Subscribe to RSS Feed

Demo

Simply refresh the page and look at the can at the top! Then mouse over it! Then click on the can and subscribe to our RSS feed! ;-)

Login or Create Account to Comment
Login Create Account
Recommended
Sponsors
Get the most important and interesting stories in tech. Straight to your inbox, daily.