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.16k stars 95 forks source link

Option to play when only overflow #103

Open vadymfrlv opened 3 months ago

vadymfrlv commented 3 months ago

I think it would be useful to have a property that would allow avoiding the use of marquee if there is no overflow.

Torenrob commented 3 months ago

I agree with this. I tried to hack this in my project but it was hard for me to figure out how to access the properties of the inner children and apply to the component state.

Update: Actually made a quick hack by setting a length check of the text I'm passing to the marquee. It will behave a little differently on different size screens but as I build out I can probably handle that pretty easily. Looking at the other issues on this project I don't think the creator is maintaining this at all so don't wait for it.