krisk / textualizer

A jQuery plug-in which transitions through blurbs of text, animating each character

Home Page:http://krisk.github.io/textualizer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blurb get mixed up when changing data

croudet opened this issue · comments

When I try to change data, some character of the previous batch get mixed up with the new one.
Tested on firefox 14 and chrome 20.

     var list = ['This should provide', 'A lovely rendering experience', 'Try me out!'];
      var txtlizer = $('#txtlizer');
      txtlizer.textualizer(list, {
      effect: 'random',
      duration: 2000,
      rearrangeDuration: 200
      });
      txtlizer.textualizer('start');

      var f = function() {
          console.log('change data');
          var list = ['A second batch', 'Of text to textualize', 'This should be nice as well!'];
          var txtlizer = $('#txtlizer'); 
          txtlizer.textualizer('data', list);
          txtlizer.textualizer('start');
      };
      setTimeout(f, 20000);