javascripthtmlcssjquery-masonryright-to-left

Can Masonry use as RTL (Right-To-Left) direction


Masonry worked fine with the text direction from LTR (Left-To-Right). Now I want to use masonry with the text direction RTL (Right-To-Left [Middle eastern languages such as Hebrew and Arabic are written predominantly right-to-left.] ).

Whenever I run masonry on the RTL (Right-To-Left) text direction, the masonry plugin setups all its grid layout in the LTR (Left-To-Right) format.

I also go through from the masonry plugin's documentation but didn't find any setting related to RTL (Right-To-Left) direction.

Any proposed solution?


Solution

  • It's about two years late, but I had the same problem and found the solution provided by Masonry.

    There is an option isRTL which arranges tiles from right to left:

    $('.tile-view').masonry({ 
        columnWidth: 200,
        isRTL: true
    });