jquery-masonry

Jquery Masonry loading over each other after Ajax div refresh

给你一囗甜甜゛ 提交于 2019-12-03 16:35:11
I am using ajax to refresh a div containing images. I use masonry to add layout initially. Then the ajax call returns a js that refreshes the div using the html() method. Now after it completes I am calling masonry('reloadItems') . But masonry loads all images onto one another. After a page resize it works. I tried manually triggering the page resize but it doesnt make masonry make the adjustments. JS: $('#timerange-select, #category_select').bind('change', function() { form=$('#images-filter-form'); $.get(form.action, form.serialize(),function(){ var $container = $('#images_container');

CSS system alternative to Masonry

时光总嘲笑我的痴心妄想 提交于 2019-12-03 15:01:33
问题 I remember a CSS grid system alternative to Masonry (Vanilla) http://masonry.desandro.com/ . That site was black background and displaying/arranging colored boxes (periodic table elements) . It also had filtering boxes based on their shapes and size (like round, square e.t.c) . It was also using hardware acceleration. I spend a lot of time to find it but no luck. Anyone knows this site? 回答1: Why not just check the source of its counterpart, Isotope: http://isotope.metafizzy.co/index.html 回答2:

How do you trigger a reload in angular-masonry?

余生长醉 提交于 2019-12-03 14:21:57
I got Masonry to work in my AngularJS app using the angular-masonry directive but I want to be able to call a function or method in my controller that will trigger a reload of items in the container. I see in the source code (lines 101-104) there is a reload method but I'm not sure how to invoke that. Any ideas? Thanks! In case it's of use to someone in the future, Passy watches for an event called masonry.reload. So, you can issue this event and Passy should call 'layout' on the masonry element, e.g. call $rootScope.$broadcast('masonry.reload'); In my case, I had some third-party javascript

jquery masonry collapsing on initial page load, works fine after clicking “home” menu button

你离开我真会死。 提交于 2019-12-03 13:04:29
问题 My jquery masonry setup is working strangely on initial page load. It seems to be placing the images in the first row fine, the second row is positioned overlapping the first and the same for the third row. After page load, you can click the home button or the logo and reload the page and it works fine. I have this code in the functions.php to put the masonry and jquery scripts in: if (!is_admin()) { wp_enqueue_script('jquery'); wp_register_script('jquery_min', get_template_directory_uri(). '

integrating jquery masonry into a zurb foundation grid

删除回忆录丶 提交于 2019-12-03 12:45:35
问题 I'm having issues integrating masonry with a Foundation grid layout. Essentially with identical width images with varying height, the masonry works as expected but at certain breakpoints the grid only will have a two column layout as opposed to the usual four. However if you keep minimizing the browser width, the four columns return so it can't be that there isn't the room to display them. var $container = $('#work_grid'); $container.imagesLoaded( function(){ $('#work_grid').masonry({

Execute jQuery once document is ready AND iframe content is loaded

人走茶凉 提交于 2019-12-03 11:55:43
As you can see on this page http://musicglaze.com/chase-status-let-you-go-feat-mali-feed-me-remix/#comments comment section is way out of place, After research I understood that it is caused because plugin responsible for styling ( http://masonry.desandro.com/ ) is called within $(document).ready(function(){ }); function. however, content is loaded into iframe after that, therefore changing its height, but as plugin takes into account its original height without content everything gets messed up. Is there something I can use which would behave similar to this pseudocode? Document ready AND

requireJS with JQuery, Masonry, & ImagesLoaded: Object [object Object] has no method 'imagesLoaded'

删除回忆录丶 提交于 2019-12-03 07:35:18
RequireJS newbie here. Trying to convert some JQuery code I had working fine in the old way to work w/ RequireJS. Header of my page loads three JS files via script tags -- require.js itself, my require.cfg.js, and boot/main.js with the site-specific functionality. Relevant require.cfg.js excerpt: ,paths: { 'boot': 'src/boot' ,'jquery': 'lib/jquery.min' ,'jquery.masonry': 'lib/plugins/masonry.pkgd.min' ,'jquery.imagesloaded': 'lib/plugins/imagesloaded.pkgd.min' } ,shim: { 'jquery': { exports: 'jQuery' } ,'jquery.masonry': ['jquery'] ,'jquery.imagesloaded': ['jquery'] } boot/main.js: require([

jquery masonry images are overlapping until a page resize is done

瘦欲@ 提交于 2019-12-03 06:00:15
I've found this template that demonstrates the issue I'm having with jquery masonry and image layout. Take a look at this twitter bootstrap template page : The very first time the page is loaded all the images are stacked on each other until a page refresh or re-size is done. The images are then displayed correctly. Here is my HTML and jQuery that has the same problem: HTML <div class="gallery-masonry masonry" style="position: relative; min-height:100px; height: auto;"> <div id="loading">Loading ...</div> </div> jQuery $.post("functions/photo_functions.php", { f: 'getallphotos'}, function(data

CSS system alternative to Masonry

穿精又带淫゛_ 提交于 2019-12-03 03:49:06
I remember a CSS grid system alternative to Masonry (Vanilla) http://masonry.desandro.com/ . That site was black background and displaying/arranging colored boxes (periodic table elements) . It also had filtering boxes based on their shapes and size (like round, square e.t.c) . It was also using hardware acceleration. I spend a lot of time to find it but no luck. Anyone knows this site? Why not just check the source of its counterpart, Isotope: http://isotope.metafizzy.co/index.html I'm using this. And it works great with Bootstrap. Basically instead of container, I am using WALL: <style>

integrating jquery masonry into a zurb foundation grid

拜拜、爱过 提交于 2019-12-03 03:16:47
I'm having issues integrating masonry with a Foundation grid layout. Essentially with identical width images with varying height, the masonry works as expected but at certain breakpoints the grid only will have a two column layout as opposed to the usual four. However if you keep minimizing the browser width, the four columns return so it can't be that there isn't the room to display them. var $container = $('#work_grid'); $container.imagesLoaded( function(){ $('#work_grid').masonry({ itemSelector: '.work_item', isAnimated: true, }); HTML <div class="row"> <div class="twelve columns"> <div id=