yaodingyd / react-flickity-component

A React.js component for using @desandro's Flickity
314 stars 51 forks source link

RTL support #98

Closed khanbaba closed 4 years ago

khanbaba commented 4 years ago

Hi, thanks for this good library. I need RTL support. Does it support ?

TheKingDave commented 4 years ago

Yes Flickity does support RTL

Example:

<Flickity
  options={{
    rightToLeft: true,
  }}
>
  <div>1</div>
  <div>2</div>
  <div>3</div>    
</Flickity>

You can find further options on the official site of Flickity. https://flickity.metafizzy.co/options.html#righttoleft

khanbaba commented 4 years ago

Thanks. That's it.

goldylucks commented 4 years ago

Would be easier to find it if it were documented in the readme file :)