
Magnet is a vanilla JavaScript library and a jQuery plugin to create gapless, filterable and sortable layouts. New in Magnet 2 Removed jQuery dependency. Magnet has been rewritten in Vanilla JavaScript. A bin- packing algorithm to create gapless layouts for ‘grid’ layout mode. A new layout mode ‘grid’ that replaces ‘masonry’ and ‘tiles’, creating gapless layouts that can be filled from left to right or top to bottom. Sorting. Magnet now emits custom events. New methods that extend Magnet’s functionality. More options for a deeper customization. Version Control Version 2.0.3. - Fixed: An error that caused the plugin to be unable to get items' sort data, therefore sorting was bugged in some cases. Version 2.0.2. - Fixe