Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function($){
- var $container = $('.related-posts-list')
- // initialize Isotope
- $container.isotope({
- // options...
- resizable: false, // disable normal resizing
- // set columnWidth to a percentage of container width
- masonry: { columnWidth: $container.width() / 4 }
- });
- // update columnWidth on window resize
- $(window).smartresize(function(){
- $container.isotope({
- // update columnWidth to a percentage of container width
- masonry: { columnWidth: $container.width() / 4 }
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement