risq / jquery-advanced-news-ticker

(deprecated) - A powerful, flexible and animated vertical news ticker plugin for JQuery.
http://risq.github.io/jquery-advanced-news-ticker
GNU General Public License v2.0
297 stars 104 forks source link

Start functionality needs improvement #16

Open daveshapiro opened 9 years ago

daveshapiro commented 9 years ago

The current start functionality is a little simplistic/naive given only 0/1 (false/true).

In my current scenario I would like the ticker to not start unless there's some work to be done (ie: total height of li's within the ul must exceed specified height of ul). My initial thought is that this should be a default behaviour, but in order to maintain backwards compatibility and to prevent causing issues for people who don't want this behaviour, I propose that autostart should be able to handle three values: 0/1/function. The function can then output 0/1/false/true in order to determine if the ticker should start.