justin-chu / react-fast-marquee

A lightweight React component that harnesses the power of CSS animations to create silky smooth marquees.
https://react-fast-marquee.com
MIT License
1.23k stars 98 forks source link

Need a way to add ref to <div className="marquee-container"> #44

Closed Github010101011 closed 1 year ago

Github010101011 commented 2 years ago

I need to add a ref to:

<div className="marquee-container ref={ref}>
</div>

Is there anyway I can do so? I tried adding it to the tag but it doesn't appear to work. This is needed for nextjs image's lazy load: lazyboundary. or the images are loading too slow.

<Marquee ref={ref}>
</Marquee>
justin-chu commented 1 year ago

Added support for this in 1.5.0