[go: nahoru, domu]

Skip to content

Easily add Masonry-style dynamic layouts to Meteor. Depends on the new Blaze UI

Notifications You must be signed in to change notification settings

voodoohop/meteor-masonrify

Repository files navigation

meteor-masonrify

Easily add Masonry-style dynamic layouts to Meteor. Depends on the new Blaze UI.

Currently uses Isotope as the layouting engine.

usage:

$ meteor add voodoohop:masonrify

The container div is created using the #masonryContainer block helper. For each masonry instance you wish to use define one id for the container, e.g. id="MasonryContainer".

You can pass options directly to packery (http://packery.metafizzy.co/options.html). It is a good idea to define the columnWidth here for example.

      {{#masonryContainer columnWidth=115 transitionDuration="0.1s" id="MasonryContainer" }}
        ...
      {{/masonryContainer}}

Use the {{#masonryElement}} block helper to create the individual elements to be layouted. Pass the id previously defined...

  {{#masonryContainer columnWidth=115 transitionDuration="0.1s" gutter=2 id="MasonryContainer" }}
     {{#each exampleContentCollection}}
       {{#masonryElement "MasonryContainer"}}
         ... content ...
       {{/masonryElement}}
     {{/each}}
  {{/masonryContainer}}

About

Easily add Masonry-style dynamic layouts to Meteor. Depends on the new Blaze UI

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •