Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 679 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 679 Bytes

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