Hi, I'm new at Greensock but very impressed with what it can do ! I'm also fairly new at coding but I catch on quick.
I'm trying to create a news style ticker for a Telethon using GSAP. Here's what I've tried :
I read a small .csv file into a <div> called "scrolltext"
Then I use simple TimelineLite and SplitText commands:
tl = new TimelineLite(),
Split = new SplitText("#scrolltext", {type:"lines", linesClass:"scroll"}),
lines = Split.lines;
tl.staggerTo(lines, 10, {x:-1920}, 2)
This works... but scrolls each line of text at the vertical position of each child element that it created with SplitText. Is there a way to scroll all the child elements on the same line for the news ticker ? Do I have to change the DOM child elements properties somehow, or can it be done using GSAP ?
thanks for your help,
Richard