A jQuery plugin for text shuffling (alike the airport terminal).
bower install textshuffle.js --save
$('#demo').textShuffle({chars: '1010'});
or
var shuffle = $('#demo').textShuffle();
shuffle.setChars('1010');
Name | Type | Description | Default |
---|---|---|---|
chars |
string |
the character to be used during the shuffle | "01#/&%$?_-%*" |
animationSpeed |
int |
the animation speed in milliseconds | 10 |
bindEvent |
string |
the event to bind (e.g. click, mouseenter, mouseleave, ...) | 'mouseover' |
Name | Parameters Type | Description |
---|---|---|
setChars(newChars) |
string |
the character to be used during the shuffle |
setAnimationSpeed(newSpeed) |
int |
the animation speed in milliseconds |
play() |
triggers the shuffle animation |
Licensed under MIT.