[thelist] Scrolling ticker

Lee Kowalkowski lee.kowalkowski at googlemail.com
Thu Jun 7 15:45:56 CDT 2007


> Robert Gormley wrote:
> > ...
> >
> > The DIV is much bigger than its viewport, and we're scrolling by
> > adjusting its position, pulling it through x pixels every x msec.
> >
> > ...

You might be better off by manipulating the scroll position
(scrollLeft) of the element and hiding the scrollbars as opposed to
moving any elements physically.  I think this is actually more
performant/less flickery.

You should be able to use offsetLeft to calculate where to scroll to.
Have a play.

-- 
Lee



More information about the thelist mailing list