Filter & sort magical layouts http://isotope.metafizzy.co
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.9 KiB

# Isotope
_Filter & sort magical layouts_
See [isotopejs.com](http://isotopejs.com) for complete docs and demos.
## Install
A packaged source file includes everything you need to use Isotope.
11 years ago
+ [isotope.pkgd.js](http://isotope.metafizzy.co/isotope.pkgd.js)
+ [isotope.pkgd.min.js](http://isotope.metafizzy.co/isotope.pkgd.min.js)
If you are cool with the command line...
Install with [Bower](http://bower.io): `bower install isotope`
[Install with npm](https://www.npmjs.org/package/isotope-layout): `npm install isotope-layout`
## License
Isotope may be used in commercial projects and applications with the one-time purchase of a commercial license. If you are paid to do your job, and part of your job is implementing Isotope, a commercial license is required.
http://isotope.metafizzy.co/license.html
For non-commercial, personal, or open source projects and applications, you may use Isotope under the terms of the [GPL v3 License](http://choosealicense.com/licenses/gpl-v3/). You may use Isotope for free.
## Initialize
### In JavaScript
``` js
// jQuery
$('#container').isotope({
// options...
itemSelector: '.item',
masonry: {
columnWidth: 200
}
});
```
``` js
// vanilla JS
var container = document.querySelector('#container');
var iso = new Isotope( container, {
// options...
itemSelector: '.item',
masonry: {
columnWidth: 200
}
});
```
### In HTML
Add a class of `js-isotope` to your element. Options can be set in JSON in `data-isotope-options`.
``` html
<div class="js-isotope" data-isotope-options='{ "itemSelector": ".item", "masonry": { "columnWidth": 200 } }'>
<div class="item"></div>
<div class="item"></div>
...
</div>
```
## Support
[CodersClan has a dedicated support forum for Isotope](https://www.codersclan.net/?repo_id=1), where you can get personal support from experienced developers.
#### [Get support on CodersClan](https://www.codersclan.net/?repo_id=1)
* * *
By [Metafizzy](http://metafizzy.co)