/TextShuffle.js

A jQuery plugin for text shuffling (alike the airport terminal).

Primary LanguageJavaScriptMIT LicenseMIT

TextShuffle.js

JavaScript Style Guide MIT

A jQuery plugin for text shuffling (alike the airport terminal).

Demo

Demo 1 Demo 2

Install

bower install textshuffle.js --save

Usage

$('#demo').textShuffle({chars: '1010'});

or

var shuffle = $('#demo').textShuffle();
shuffle.setChars('1010');

Parameters

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'

Methods

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

License

Licensed under MIT.