textshake


License
MIT
Install
bower install textshake

Documentation

Textshake

Textshake is jQuery plugin for shake characters

Install

bower install textshake

How to use

  • Include jquery
  • Include textshake.js file into the index.html
<script src="textshake.js"></script> 
  • Init textShake
// $('yourselector').textShake(time, step, maintext, shaketext, aftershakefinishedfunction);
var mainText = 'Hii this is main text';
var shakeText = 'Hii this is shake text';
$('.mySelector').hover(function(){
  $(this).textShake(500, 100, mainText, shakeText, function(){
    console.log('Shake finished !');
  });
});

Try demo