jquery-masonry

Masonry Plugin: Resizing div wont cause reshuffle

偶尔善良 提交于 2019-12-06 01:34:07
问题 Have Masonry items wrapped in 1000px wide div, I have a button to resize the div to 2000x using jQuery's addClass() , problem is Masonry won't reshuffle the items to fill the extra 1000px space, I know the resize works because resizing the browser window causes a reshuffle. Masonry: $(function(){ $('#container').masonry({ // options itemSelector : '.item', columnWidth : 240 }); }); Button: $("a.button").toggle(function(){ $(this).addClass("flip"); $("div#container").fadeOut("fast", function()

turbolinks with masonry is not working [closed]

好久不见. 提交于 2019-12-05 23:07:12
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center . Closed 7 years ago . I have installed turbolink gem https://github.com/rails/turbolinks in my rails app 3.2.8. I use this gem, masonry for show elements https://github.com/desandro/masonry . The problem is that masonry elements when I open a new page with turbolinks are not

Ember.js - jQuery-masonry + infinite scroll

丶灬走出姿态 提交于 2019-12-05 19:45:31
I'm trying to get infinite scrolling and masonry working in my ember project. The masonry 'bricks' are posts with text and an image. Currently I can get the first page to show on the initial load of the page and apply masonry (I still have to do a setTimeout though, trying to figure out how to get rid of that as well). I also have the basic infinite scroll code in. For now I'm simply grabbing the second page from the back end. When scrolled to the bottom of the page the second page of posts are loaded. What I'm trying to figure out is how to apply masonry to the new page upon insertion.

How to center Masonry Items?

若如初见. 提交于 2019-12-05 19:08:24
问题 I have set up masonry to display items as such: $('#list').masonry({ itemSelector: '.propitem', columnWidth: 230 }); This works, but all items ( .propitem ) float to the left. For example if my container #list is 600px wide there will be two columns to the left but a gap to the right of them where the remaining 140px is. I would like to center the 2 columns with a 70px 'margin' on either side. I have tried using css to centre these, but had no luck, eg: #list { text-align: center; } Would

Using Angular Masonry in AngularJS?

ⅰ亾dé卋堺 提交于 2019-12-05 16:54:31
I have a layout like this. I am using passsy extension for angular masonry . <masonry column-width="200"> <div class="masonry-brick" ng-repeat="data in comments"> <div ng-switch on="data.type"> <div ng-switch-when="hoots"> <article class="hoot_main"> //content goes here //hoot_main is the main class for this div layout </article> </div> </div> </div> <div ng-switch on="data.type"> <div ng-switch-when="article"> <article class="hoot_main"> //content goes here //hoot_main is the main class for this div layout </article> </div> </div> <div ng-switch on="data.type"> <div ng-switch-when="story">

Jquery Masonry not working with Google Fonts

江枫思渺然 提交于 2019-12-05 09:06:30
问题 I have an issue with overlapping in Masonry that I've discovered is caused by Google Fonts loading after the Masonry script. I've added the following code to fix this, but now Masonry doesn't work. Actually, it looks like Masonry is working for a split second and then suddenly stops working. $(document).ready(function () { WebFont.load({ google: { families: ['Chivo'] } }); WebFontConfig = { active: function() { $('#archive').masonry({ itemSelector : '.item', columnWidth: 350, gutterWidth: 20

Masonry/Dynamic Slideshow Height Issues

ⅰ亾dé卋堺 提交于 2019-12-05 02:43:17
问题 I'm a little confused with the next steps to take on a project I'm working on and hopefully you could give me some ideas/help. http://goo.gl/4d72h I'm using Wordpress, and a combination of Portfolio Slideshow Pro (http://madebyraygun.com/wordpress/plugins/portfolio-slideshow-pro/) and Masonry (http://masonry.desandro.com/index.html) to create the landing page of this project. As you can see by visiting the site, each 'post' is wrapped in a grid_6 float, allowing two floats per row, and then I

Pinterest style layout (Bootstrap 3 + Masonary) *final tweeks*

回眸只為那壹抹淺笑 提交于 2019-12-04 21:07:24
I'm building a site that needs a pinterest style home page. (but only 3 columns wide collapsing down to 2 and then 1 column using the col-lg-4 bootstrap class). I've searched and found many options of how to do this. However, I don't want to specify column widths in my css (I want it to inherit the bootstrap column widths) I dont want to use the new css3 column layout (for lack of older browser support) I dont want to do it in PHP as it stacks in the incorrect order. I've adapted some code taken from https://gist.github.com/justincarroll/5959773 which uses masonry to push the blocks around and

jQuery masonry with Wordpress and imagesLoaded

南楼画角 提交于 2019-12-04 16:05:08
I am using jquery masonry on a wordpress theme I am working on. After struggling with getting it to work for a while I found that this: <script type="text/javascript"> jQuery(function () { jQuery('#masonry-wrap').masonry({ itemSelector: '.masonry-box', columnWidth: 283 }); }) </script> Seems to be working fine for me... However checking the site in Chrome and Safari pushes the bottom of the containing elements into the following elements... Now I read somewhere, that this can be solved by using the imagesLoaded plugin and the code for that I found here: http://masonry.desandro.com/demos/images

jQuery Isotope - corner stamp issue

风格不统一 提交于 2019-12-04 16:04:53
I started using awsome JQuery Isotope plugin in my project. Everything works great, but I'm having one issue with corner-stapm option. Each element in my masnory grid has fixed width (220px + 5 margin) and random height (depending on its content) and I am using @media queries in CSS file to change columns number on different screen resolution (page width can be 230, 460, 690.. etc.). Problem with corner stamp occurs in the narrowest version (one column) - the corner stamp is covered with Isotope elements... The same issue occurs on Isotope official page in this demo: http://isotope.metafizzy