jq.typewrite

basic typewrite

var typewrite1 = $.typewrite($('#typewrite1'));
$('#do_typewrite1').click(function() {
    typewrite1.play();
});

This is typewrite

with options and using deferred

var typewrite2 = $.typewrite($('#typewrite2'), {
    duration: 2,
    hide: false,
        end: '|'
});
$('#do_typewrite2').click(function() {
    typewrite2.play().done(function() {
        alert('completed');
    });
});

This is typewrite
This is typewrite

Using adding wait

var typewrite3 = $.typewrite($('#typewrite3'));
$('#do_typewrite3').click(function() {
    typewrite3.play(4);
});

句点、読点。があると少し待ちます。
ビックリマークがあっても少し待ちます!待ってるよね?たぶん。

Using as a plugin


  

Using as a jQuery plugin