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

I am not able to make the children horizontally aligned, there should be a alignItems property in the props #80

Closed mh-jsx closed 11 months ago

mh-jsx commented 1 year ago

Introduces the alignItems property, enabling horizontal alignment of children within a container.

Current Solution using CSS:

.initial-child-container,
.marquee {
    align-items: center;
}
mh-jsx commented 1 year ago

The "align-items: center " is already added in the "marquee"class element. But for the "intial-child-container" element, it is missing. That's why we see multiplied children or duplicate children are aligned already in center.

We just need to update the scss for .intial-child-container with align-items: center property

justin-chu commented 11 months ago

Added in v1.6.1!