tjenkinson / dynamic-marquee

A small library for creating marquees.
https://dynamic-marquee.tjenkinson.dev
Apache License 2.0
117 stars 14 forks source link

Support scroll to item in marquee #664

Open truongnc1 opened 3 months ago

tjenkinson commented 3 months ago

This isn't supported out of the box but it should be possible to achieve with the api

Could also potentially add an api method to get an array of all items that are currently visible and what position they are at

What exactly are you trying to achieve?

truongnc1 commented 3 months ago

I'm making a feature that when clicking on a button, it will scroll to an item in the marquee. can you help me?

tjenkinson commented 3 months ago

So you want them to be constantly looping until the button is clicked and then stop after the button is clicked when a specific item is on screen?

Not stop as soon as the button is clicked?

truongnc1 commented 3 months ago

@tjenkinson yep