Active classname for all visible elements
See original GitHub issueIs your feature request related to a problem? Please describe. I’m not 100% sure if it’s a feature request, bug or is it already possible with current version.
Describe the solution you’d like
Right now if slidesPerPage > 1
, only one item gets className BrainhubCarouselItem--active
. Is there a way to add this className to every currently visible element? Or something else, like BrainhubCarouselItem--visible
etc…
Describe alternatives you’ve considered I tried working around it by altering classnames of children passed down to carousel and calculating (or assuming) when they are visible, but I think it’s mixing responsibilities, so I dropped this idea.
Additional context Add any other context or screenshots about the feature request here.
Thanks in advance for your help!
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
I’ll try to approach this today 😃
@PiotrSzlagura
So I’m OK with that, it can be a non-integer.