Gathering detailed insights and metrics for masonry-layout
Gathering detailed insights and metrics for masonry-layout
Gathering detailed insights and metrics for masonry-layout
Gathering detailed insights and metrics for masonry-layout
npm install masonry-layout
v4.2.2 - float position values
Published on 04 Jul 2018
v4.2.0 - horizontalOrder
Published on 20 Apr 2017
v4.1.1
Published on 16 Aug 2016
v4.1.0 - stagger option
Published on 27 Apr 2016
v4.0.0 - remove IE8 & 9 support
Published on 14 Jan 2016
v3.3.2
Published on 12 Jan 2016
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
16,453 Stars
451 Commits
2,104 Forks
459 Watching
3 Branches
10 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
HTML (58.51%)
JavaScript (36.99%)
CSS (4.49%)
Cumulative downloads
Total Downloads
Last day
-3.5%
34,587
Compared to previous day
Last week
3.7%
184,849
Compared to previous week
Last month
-9.6%
799,214
Compared to previous month
Last year
3%
10,034,559
Compared to previous year
Cascading grid layout library
Masonry works by placing elements in optimal position based on available vertical space, sort of like a mason fitting stones in a wall. You’ve probably seen it in use all over the Internet.
See masonry.desandro.com for complete docs and demos.
Link directly to Masonry files on unpkg.
1<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.js"></script> 2<!-- or --> 3<script src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script>
npm: npm install masonry-layout --save
Bower: bower install masonry-layout --save
Masonry has been actively maintained and improved upon for 8 years, with 900 GitHub issues closed. Please consider supporting its development by purchasing a license for one of Metafizzy's commercial libraries.
With jQuery
1$('.grid').masonry({ 2 // options... 3 itemSelector: '.grid-item', 4 columnWidth: 200 5});
With vanilla JavaScript
1// vanilla JS
2// init with element
3var grid = document.querySelector('.grid');
4var msnry = new Masonry( grid, {
5 // options...
6 itemSelector: '.grid-item',
7 columnWidth: 200
8});
9
10// init with selector
11var msnry = new Masonry( '.grid', {
12 // options...
13});
With HTML
Add a data-masonry
attribute to your element. Options can be set in JSON in the value.
1<div class="grid" data-masonry='{ "itemSelector": ".grid-item", "columnWidth": 200 }'> 2 <div class="grid-item"></div> 3 <div class="grid-item"></div> 4 ... 5</div>
Masonry is released under the MIT license. Have at it.
Made by David DeSandro
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 2/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More