Marquee Text Not Working

Marquee Text Not Working

BY 10 Sep 2015 Web Application Development

Hello!

I’m dynamically building a template and trying to use the Marquee tau widget when headline titles are too long. Currently, the ui-marquee styles work, but the dynamic widget does not scroll the text like it should and I’m having trouble trying to find the solution. Any help is welcome!

 

HTML Code:

My div has an id of “activityMainTitle” and a class of “ui-marquee”

JS Code:

...
var $activityMainTitle = $section.querySelector('#activityMainTitle'); 

// Marquee #activityMainTitle if too long 
if (activityMainTitle.length >= 12) { 
   marqueeWidget = tau.widget.Marquee($activityMainTitle);
   marqueeWidget.start();
}

 

Written by