Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
function init(){ //declaring textareas var tg = document.getElementById('debug'); var tg2 = document.getElementById('debug2'); var tg3 = document.getElementById('debug3');
//I think putting the text in a hidden element is a good practise for site indexing var ex_txt = document.getElementById('LoremIpsum').innerHTML;
//creating the 3 TextTween instances t1 = new TextTween(tg, 'value', ex_txt, Tween.strongEaseOut, 2); t2 = new TextTween(tg2, 'value', ex_txt, Tween.strongEaseOut, 2); t3 = new TextTween(tg3, 'value', ex_txt, Tween.strongEaseOut, 2);
//colorTween to show combination of tween types t4 = new ColorTween(tg.style, 'color', Tween.strongEaseOut, '000000', 'FF0000', 2); //creating a Tween sequence seq1 = new Sequence(); seq1.addChild(t1); seq1.addChild(t4); seq1.addChild(t2); seq1.addChild(t3);
//creating a Parralel for a set of Tweens to work together par1 = new Parallel(); par1.addChild(t1); par1.addChild(t2); par1.addChild(t3); par1.addChild(t4); }