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

Add ability to switch out parent container element for accessibility purposes #91

Open Shaderpixel opened 9 months ago

Shaderpixel commented 9 months ago

My use case of the marquee is to render a list of logos. From the semantic and web accessibility standpoint, the correct parent element in this case would be a <ul>

<ul>
      <li>marquee child 1</li>
      <li>marquee child 2</li>
      <li>marquee child ...</li>
</ul>

The current implementation doesn't allow a way to switch the immediate parent into the element that I need. Is there a way to provide a way to set the marquee parent as something other than a div?