Skip to content

Instantly share code, notes, and snippets.

Created January 29, 2018 11:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Name Description
masonryLayout Lays out all item elements. layout is useful when an item has changed size, and all items need to be laid out again.
masonryLayoutItems Lays out specified items.
masonryStamp Stamps elements in the layout. Masonry will lay out item elements around stamped elements.
masonryUnstamp Un-stamps elements in the layout, so that Masonry will no longer layout item elements around them. See demo above.
masonryAppended Adds and lays out newly appended item elements to the end of the layout.
masonryPrepended Adds and lays out newly prepended item elements at the beginning of layout.
masonryAddItems Adds item elements to the Masonry instance. addItems does not lay out items like appended or prepended.
masonryRemoveItems Removes elements from the Masonry instance and DOM.
masonryReloadItems Recollects all item elements. For frameworks like Angular and React, reloadItems may be useful to apply changes to the DOM to Masonry.
masonryDestroy Removes the Masonry functionality completely. destroy will return the element back to its pre-initialized state.
masonryGetItemElements Returns an array of item elements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment