Packery is a JavaScript library and jQuery plugin that makes gapless and draggable layouts. It uses a bin-packing algorithm to fill in empty gaps. Packery layouts can be intelligently ordered or organically wild. Elements can be stamped in place, fit in a specific spot, or dragged around. It’s perfect for draggable dashboard and seamless Masonry image galleries.
CDN
<script src="https://unpkg.com/packery@2/dist/packery.pkgd.js"></script>
<!-- or -->
<script src="https://unpkg.com/packery@2/dist/packery.pkgd.min.js"></script>
Package managers
Install with Bower:bower install packery --save
Install with npm:
npm install packeryWebsite