Tiny jQuery Plugin To Shake Html Elements Horizontally

Tiny jQuery Plugin To Shake Html Elements Horizontally
File Size: 7.12KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Nouishake is a super tiny jQuery script that allows you to horizontally shake any html elements with one JS call, no reliance on jQuery UI.

How to use it:

1. The Nouishake plugin requires the jQuery library already loaded.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
<script src="shake.js"></script>

2. Create an Html element you want to shake.

<p>Click me</p>

3. Call the plugin on the <p> element.

$('body').on('click','p',function(){
shake(this);
});

This awesome jQuery plugin is developed by jbhamilton. For more Advanced Usages, please check the demo page or visit the official website.