Slick Carousal In RTL Mode

Slick Carousal In RTL Mode

I have been scratching my head all night to get this thing fixed! We have been using Slick Carousal in one of our projects and it breaks whenever ‘dir=”rtl” is injected into the body tag.

I wish I had came across this before because it costed me a good night sleep and 2 cups of coffee to make it work in the arabic version of the website.

The solution was plain simple, you basically have to use the following option when initializing the carousal:

$('.single-item-rtl').slick({ 

rtl: true 

});

Original Article: https://www.ahmadmushtaq.com/slick-carousal-in-rtl-mode/

Hazem Kassem

Strengthen businesses' financial performance through outsourcing services in F&A and Automation | FP&A | Business Analysis | Design processes to optimize use of Technology.

10 个月

Ahmad, thanks for sharing! ??

回复

要查看或添加评论,请登录

Ahmad Mushtaq , MBA的更多文章

社区洞察

其他会员也浏览了