brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)

Home Page:https://brainhub.eu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RTL support

pkocak opened this issue · comments

Carousel doesn't support RTL. When i change my page dir RTL my images in ul with className=".BrainhubCarousel .BrainhubCarousel__trackContainer .BrainhubCarousel__track.BrainhubCarousel__track--transition" changes correctly however, this ul's translateX always gives minus number pixels.

Solution can be changing translateX to positive number pixels of ul with className=".BrainhubCarousel .BrainhubCarousel__trackContainer .BrainhubCarousel__track.BrainhubCarousel__track--transition" when page dir="rtl

For RTL use please add the RTL plugin to your carousel as described here
https://brainhubeu.github.io/react-carousel/docs/examples/rtl