amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-carousel: Support RTL

Open aghassemi opened this issue 8 years ago • 8 comments

aghassemi avatar Jul 08 '18 17:07 aghassemi

/cc @nainar

aghassemi avatar Jul 08 '18 17:07 aghassemi

Could you elaborate? Right to left ...?

nainar avatar Jul 10 '18 21:07 nainar

Yep, if we set dir= rtl on body, bunch of things should flip but carousel needs extra fixes. Next prev icons need to flip, last slide becomes first slide, loop autoplay should play backwards.

aghassemi avatar Jul 10 '18 21:07 aghassemi

also the carousel images will not load if the direction is set to "rtl" here is a screenshot from my project, surprisingly i have set the direction in the chrome developer tools and the images that were loaded before in not shown any more. untitled

mofidsky avatar Jul 11 '18 07:07 mofidsky

to be verified in carousel v2

aghassemi avatar Jun 19 '19 21:06 aghassemi

Hello, let me ask you about the situation since I also need this feature for my project. Does amp-carousel already support RTL, if so if there a documentation how to implement? Or is the feature under development? Thank you in advance :)

oimos avatar Jul 18 '19 10:07 oimos

Hello, let me ask you about the situation since I also need this feature for my project. Does amp-carousel already support RTL, if so if there a documentation how to implement? Or is the feature under development? Thank you in advance :)

amp-carousel currently has a few issues in RTL mode (see https://github.com/ampproject/amphtml/issues/16605#issuecomment-403974974 above) . We are working on releasing a version 0.2 that will fix those issues.

sparhami avatar Jul 18 '19 17:07 sparhami

Confirmed that this works with v0.2 but not 0.1

Check in amp.dev playground by adding dir="rtl" to a carousel

nainar avatar Apr 16 '20 00:04 nainar