Textshake is jQuery plugin for shake characters
bower install textshake
- 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 !');
});
});