masonry

Masonry in materializecss

懵懂的女人 提交于 2019-12-04 17:11:00
I would like to know if there is any way to have materializecss cards in a masonry-like display. I would like to avoid plugins like masonry, or having to compile sass, because this will be used on an aurelia application, and the configuration of external libraries and such pains me dearly. The closest thing I have come across is this: http://codepen.io/mike-north/pen/MwVoYp?editors=1100 , which does so through: .cards-container { column-break-inside: avoid; .card { display: inline-block; overflow: visible; } } Alas, I have been unable to get it to work using a sass to css compiler. The problem

Masonry items not reloaded when cliking ajax load more button

孤街醉人 提交于 2019-12-04 15:23:20
问题 Hi everyone i have one problem about masonry items. I have created this DEMO from codepen.io In this demo you can see there is this javascript code: $(window).load(function() { $( function() { var $container = $('.posts-holder'); $container.masonry({ isFitWidth: true, itemSelector: '.kesif-gonderi-alani' }); }); }); I show only 10 posts when a page is opened. If user want to show other 10 posts then user needs to click (show more button). I created this ajax function for show more posts. $('

AngularJS Masonry for Dynamically changing heights

风格不统一 提交于 2019-12-04 07:41:21
I have divs that expand and contract when clicked on. The Masonry library has worked great for initializing the page. The problem I am experiencing is that with the absolute positioning in place from Masonry and the directive below, when divs expand they overlap with the divs below. I need to have the divs below the expanding div move down to deal with the expansion. My sources are: http://masonry.desandro.com/ and https://github.com/passy/angular-masonry/blob/master/src/angular-masonry.js /*! * angular-masonry <%= pkg.version %> * Pascal Hartig, weluse GmbH, http://weluse.de/ * License: MIT *

Bootstrap grid not displaying correctly

时光怂恿深爱的人放手 提交于 2019-12-04 05:51:12
问题 how can I display correctly my grid without huge space, and look good? my photo My code: <div class="first"> <div class="container"> <div class="row"> <div class="col-md-6"> <img src="http://img.uefa.com/MultimediaFiles/Photo/competitions/General/02/35/49/87/2354987_w2.jpg" class="img-responsive"/> </div> <div class="col-md-3"> <img src="http://img.uefa.com/MultimediaFiles/Photo/competitions/Comp_Matches/01/83/81/26/1838126_s2.jpg" class="img-responsive"/> </div> <div class="col-md-3"> <img

tumblr masonry + infinite scrolling overlapping posts despite using desandro and new jquery

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to javascript and stuff and now I have a frustrating issue with masonry and infinite scroll on tumblr. I have read nearly all the forum questions about those issues but nothing solved my problem. So, I have a tumblr blog ( http://jessman5.tumblr.com ) and despite of using: //ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js http://masonry.desandro.com/jquery.masonry.min.js http://masonry.desandro.com/js/jquery.infinitescroll.min.js and this code: <script> $(function(){ var container = $('#container'); container.infinitescroll

Masonry items not reloaded when cliking ajax load more button

给你一囗甜甜゛ 提交于 2019-12-03 08:56:50
Hi everyone i have one problem about masonry items. I have created this DEMO from codepen.io In this demo you can see there is this javascript code: $(window).load(function() { $( function() { var $container = $('.posts-holder'); $container.masonry({ isFitWidth: true, itemSelector: '.kesif-gonderi-alani' }); }); }); I show only 10 posts when a page is opened. If user want to show other 10 posts then user needs to click (show more button). I created this ajax function for show more posts. $('.showmore').live("click",function(event) { event.preventDefault(); var ID = $(this).attr("id"); var P_ID

Masonry and Lazy load integration

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on this website The products on the center and right column are in a masonry container. The problem I have is that If I apply the lazy load plugin to it, since it has different heights the images overlaps the others container: This is how it looks ( when not using lazy load ): Any ideas on how to make it work? This is my script: Posts.prototype.onBeforeRender = function() { var container; /* log("Msnry!"); */ container = document.querySelector('#products_tmpl'); App.msnry = new Masonry(this.el, { itemSelector: '.product',

Masonry - imagesLoaded - Not a function

匿名 (未验证) 提交于 2019-12-03 07:47:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Masonry and imagesLoaded should be loaded and work correctly. A similar site has been made, and there it works correctly. I have no idea where my problem is, so I am hoping that you maybe see the problem. There should be something missing. In Chrome Inspect I get the following error: Uncaught TypeError: $(...).imagesLoaded is not a function By what I have understood this means that .imagesLoaded and Masonry should be correctly loaded? Else I would have recieved the error $container.imagesLoaded is not a function ? What I have tried Checking

Using masonry with imagesloaded

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm a js newbie and hope this questions doesn't seem too stupid. I'm using masonry for my site - works fine. I wanted to let my boxes appear just when masonry finished loading. Searching in the internet I found several posts recommending to use imagesloaded Plugin to solve this issue. It just doesn't change anything. That means: my layout and content boxes keep being messed up until masonry finished loading, just then the boxes suddenly jump to their right positions. My code: $(document).ready(function() { var $container = $('#post-area');

jQuery Masonry conflict with jQuery UI Sortable

匿名 (未验证) 提交于 2019-12-03 02:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: jQuery UI Sortable is not working when using Masonry. Any idea how to avoid this conflict? Any help would be appreciated. 回答1: I think i had a similar problem. I managed to fix it by simply recalling masonry within the code for setting up the sortable elements. (there might be a better way, i'm not sure?) $(function() { $("#youritem").sortable({ opacity: 0.9, cursor: 'move', update: function() { var order = $(this).sortable("serialize") + '&action=updateRecordsListings'; $.post("dosomething.php", order, function(theResponse){ //you can see