This plugin allows to change one text to another on hover or click. Every symbol of the current text moves shortest way within its category (letters, digits, symbols…) and stops when it reaches the goal. As a result, we see how the desired text appears out of rotating chaos. Demo is [URL=”http://contorra.ru/ru/ttt-jquery-plagin-animacii-teksta”]here
Installing manual:
[LIST=1][*]
enable jQuery
[URL=”http://contorra.ru/sites/default/files/ttt-1.0.min.js”]download plugin file (2 kb)
add to HTML something like this:
[CODE]<div data-ttt-new=”Future text”>Current text</div>
call TTT plugin …
[CODE] $(document).ready(function() {
$(‘div’).ttt();
});
When you hover that object, old text changes to new one, no hover – it goes back to old, with 60 fps speed.
Some settings:
[LIST][*]
set object to call event: ‘btn’:’selector’
set event type on click: ‘event’:’click’
symbol change speed: ‘fps’:any number of frames per second
Example:
[CODE] $(‘div’).ttt({
‘btn’:’div’,
‘event’:’click’,
‘fps’:15
});
No callback in current plugin version.