user1456021
user1456021

Reputation: 13

How to set masonryhorizontal layout in Isotope

I'm just a newbie when it comes to jquery, so I'm just editing my scripts through modifications. I used isotope for my experiment and here's the result: http://rvflores.com/SM-SCROLL/

I need help for the container to appear in masonryHorizontal layout mode without me having to click on the button on the top part to change it. I read the documentation but I can't seem to find how they set it, so I just copied the script from their website.

Any help and suggestions are welcome, thank you :)

Upvotes: 1

Views: 4802

Answers (1)

Potherca
Potherca

Reputation: 14650

For anyone who missed the actual answer in the comments:

The documentation for masonryHorixontal is missing the layoutMode property.
The correct code would be:

$('#container').isotope({
    layoutMode: 'masonryHorizontal',
    masonryHorizontal: {
        rowHeight: 360
    }
});

This issue is also the cause of this question.

Upvotes: 3

Related Questions