tjenkinson/dynamic-marquee

Provide ability to get an items position in marquee and jump the marquee a number of pixels

Opened this issue · 0 comments

Rough plan:

  • appendItem() returns the element that was provided or automatically created
  • getItemOffset(item) returns the offset in pixels of the item from the start of the marquee or null if it's not in it
  • skip(pixels) jumps the marquee the provided number of pixels synchronously requesting as many new items as needed