Hi, Diaco
On the stage I have a text element I named 'txtFraction' and I have this code in the creationComplete of the Stage:
var fracTextId = sym.lookupSelector("txtFraction"); //Obtains the global html id
var split = new SplitText(fracTextId + '> p', {type:"lines, words", position:"absolute", linesClass:"line++", wordsClass:"words++"});
var lineArr = split.lines;
var wordArr = split.words;
var re = /^|$/;
var i =0;
//This doesn't work:
for (i = 0; i < wordArr.length; i++){
var wordHtml = sym.$(".word" + i).html();
}
//console.log(wordHtml[0]);//returns undefined
Would this help? I don't know how to get codepen demo