tiny-slider icon indicating copy to clipboard operation
tiny-slider copied to clipboard

RTL support

Open ali-hellani opened this issue 6 years ago • 28 comments

will the plugin have RTL support in the future ?!

ali-hellani avatar Jul 09 '18 13:07 ali-hellani

Yes.

ganlanyuan avatar Jul 09 '18 13:07 ganlanyuan

Any release planned?

lbineau avatar Sep 03 '18 08:09 lbineau

Any news about this guys? If not, can you recommend a library that supports rtl?

asennoussi avatar Sep 18 '18 18:09 asennoussi

Supper busy recently. Won't be able to add this feature in 1 month.

ganlanyuan avatar Sep 27 '18 14:09 ganlanyuan

Any news about this feature?

santamaria7 avatar Dec 05 '18 10:12 santamaria7

Just finished center, will start work on this. But it will take some time due to the overall complexity.

ganlanyuan avatar Dec 13 '18 14:12 ganlanyuan

+1 for rtl support

andrepereiradasilva avatar Jan 15 '19 00:01 andrepereiradasilva

Any news about this feature?

QusaiNaim avatar Feb 07 '19 14:02 QusaiNaim

Any news about this feature, any idea when it will added?

wouterkroes avatar Feb 28 '19 09:02 wouterkroes

RTL support would be amazing. Any updates @ganlanyuan ? Thanks!!!

joeyrubio avatar Feb 28 '19 23:02 joeyrubio

It probably needs some more testing but looks like my quick fix added RTL support for horizontal carousel slider setup, just check: https://github.com/piotrku/tiny-slider/commit/a7b88d66e3513ebcd01df4bd062791271b1b3d24

piotrku avatar Mar 09 '19 22:03 piotrku

Any updates?

wouterkroes avatar Mar 18 '19 09:03 wouterkroes

Hi, any updates on this please? RTL support would be perfect, thanks

therayess avatar Apr 25 '19 12:04 therayess

Any updates?

mrk9776 avatar Jun 25 '19 07:06 mrk9776

Until a PR is approved or is developed. A quick fix is to make a wrapper to the dom object defined in your container, and make that wrapper have direction: ltr style. It doesn't look so bad on Arabic websites and it's a good solution if you want to continue using this lib.

yelsayed avatar Aug 27 '19 15:08 yelsayed

@ganlanyuan Hi, I'm not so advanced dev. I would like to try adding RTL support, if you don't mind and if no one is already doing it?

I'm setting up its dev env as documented in Contribute file. Please, let me if there any other important point I should be aware of or any advice.

I'm going to use this convention: dir="rtl" in HTML as switch, same CSS files for both LTR/RTL.

As documented in Drupal docs - CSS formatting guidelines.

sneetsher avatar Oct 22 '19 15:10 sneetsher

Any news about this ? @ganlanyuan

ali-joghataei avatar Mar 10 '20 15:03 ali-joghataei

@ganlanyuan Hi, any plan for adding RTL support?

alivazirinia avatar Jun 09 '20 09:06 alivazirinia

It probably needs some more testing but looks like my quick fix added RTL support for horizontal carousel slider setup, just check: piotrku@a7b88d6

@piotrku Thanks for this! In my test this worked like a charm.

Would be nice to be implemented in the original repo :)

samikeijonen avatar Jul 07 '20 07:07 samikeijonen

using

.tns-carousel {
  display: flex;
  flex-direction: row-reverse;
}

reverses the items but still it starts from left

sa8ab avatar Aug 03 '20 21:08 sa8ab

rtl repo: npm i tiny-slider-rtl --save

mahdinai avatar Apr 07 '21 23:04 mahdinai

is there an update? adding RTL support similar to owl slider: https://owlcarousel2.github.io/OwlCarousel2/demos/rtl.html

Thanks! Dan

danstramer avatar Jun 07 '22 14:06 danstramer

@danstramer check PR from jmfarina https://github.com/ganlanyuan/tiny-slider/pull/658

sneetsher avatar Jun 19 '22 19:06 sneetsher

Until a PR is approved or is developed. A quick fix is to make a wrapper to the dom object defined in your container, and make that wrapper have direction: ltr style. It doesn't look so bad on Arabic websites and it's a good solution if you want to continue using this lib.

many thanks

youth10313 avatar Aug 13 '22 12:08 youth10313

from tiny-slider.js inside this if (hasAutoplay) {} change

var autoplayDirection = options.autoplayDirection === 'forward' ? 1 : -1,

to var autoplayDirection = options.autoplayDirection === 'backward' ? 1 : -1,

to change direction i used this and worked

hamajamaldev avatar Jun 09 '23 13:06 hamajamaldev

.tns-carousel { display: flex; flex-direction: row-reverse; }

It also makes problem if Lazy load be on

mostafa-norouzi avatar Aug 21 '23 10:08 mostafa-norouzi

As tiny-slider seems dead totally, I switched to the Splide. It supports RTL very well

mostafa-norouzi avatar Aug 23 '23 08:08 mostafa-norouzi