https://github.com/websemantics/masonry-plus
Extends the masonry plugin (Cascading grid layout library) by David DeSandro to filter and shuffle items
https://github.com/websemantics/masonry-plus
Last synced: 4 months ago
JSON representation
Extends the masonry plugin (Cascading grid layout library) by David DeSandro to filter and shuffle items
- Host: GitHub
- URL: https://github.com/websemantics/masonry-plus
- Owner: websemantics
- License: mit
- Created: 2016-07-03T04:07:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T16:36:13.000Z (almost 9 years ago)
- Last Synced: 2025-06-13T11:03:23.869Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
```
─────┬─ ───┼─────┬ ── ─
╭────┬───┬──╮╭──────╮╭──────╮╭──────╮╭────┬─╮╭───┬──╮╭───╮╭─╮ ╭────╮ ─┼─────┴ ────┼──
│ │├──── ││ ────┤│ ╭╮ ││ ││ ││ ││ │ ╭──╯ ╰──╮
│ ╭╮ ╭╮ ││ ╭╮ ││ ││ ││ ││ ╭╮ ││ ╭─╯│ ╰╯ │ │ ─┼─ │ ─┬─────┬─ ┼──
│ ││ ││ ││ ╰╯ │├──── ││ ╰╯ ││ ││ ││ │ ├──── │ ╰──╮ ╭──╯ ┼─ ───┼─── ─
╰───╯╰──╯╰──╯╰───┴──╯╰──────╯╰──────╯╰───╯╰─╯╰────╯ ╰──────╯ ╰────╯ ┼─────┼──
───┴─ ──┴─── ─┴ ─
```
> Extends the [masonry](http://masonry.desandro.com) plugin by David DeSandro to filter and shuffle items.
[](https://raw.githubusercontent.com/websemantics/masonry-plus/master/LICENSE) [](https://github.com/websemantics/masonry-plus/network) [](https://github.com/websemantics/masonry-plus/stargazers)
[](http://isitmaintained.com/project/websemantics/masonry-plus "Percentage of issues still open") [](http://standardjs.com/)
#### See it in action @ [PyroCMS Cheatsheet](http://websemantics.github.io/pyrocms-cheatsheet)
## Install
Bower
```bash
Bower install masonry-plus
```
Node
```bash
npm install masonry-plus
```
## Usage
Vanilla JavaScript
```js
var masonry = new Masonry( '.grid', {'itemSelector': '.column'});
// layout a filtered list of items with 'data-filter' attribute is set to 'books'
masonry.layout({filter:'books'});
// shuffle the list of items
masonry.layout({shuffle:true});
// show all items
masonry.layout({filter:'*'});
```
jQuery
```js
// layout a filtered list of items with 'data-filter' attribute is set to 'books'
$('.grid').masonry('layout', {filter:'books'})
// combine filter and shuffle
$('.grid').masonry('layout', {filter:'books', shuffle:true})
```
## Support
Need help or have a question? post at [StackOverflow](https://stackoverflow.com/questions/tagged/masonry-plus+websemantics).
*Please don't use the issue trackers for support/questions.*
*Star if you find this project useful, to show support or simply for being awesome :)*
## Contribution
Contributions to this project are accepted in the form of feedback, bugs reports and even better - pull requests.
## License
[MIT license](http://opensource.org/licenses/mit-license.php) Copyright (c) Web Semantics, Inc.