jquery-isotope

Define/call a function in isotope onLayout

[亡魂溺海] 提交于 2019-12-08 07:48:37
问题 I'm using http://isotope.metafizzy.co/docs/options.html#onlayout and it says this: "Similiar to a callback, onLayout is a function that will be triggered after every time an Isotope instance runs through its layout logic." $('#container').isotope({ onLayout: function( $elems ) { // `this` refers to jQuery object of the container element console.log( this.height() ); // callback provides jQuery object of laid-out item elements $elems.css({ background: 'blue' }); } }); That means that when

integrating bootstrap with isotope

时光毁灭记忆、已成空白 提交于 2019-12-08 06:15:07
问题 In the link below I wanna convert a list of DIV s to 3 columns Grid by adding class span4 of bootstrap (and masonry layout mode). Demo - twitter bootstrap & isotope $('#grid').on('click', function() { $('.item').hide().addClass('span4'); $('.item:nth-child(3n+1)').css('margin-left', 0); // remove extra margin-lefts $('.item').show(); $('#posts').isotope({ itemSelector: '.item', resizable: false, animationEngine: 'best-available' }); }); $(window).smartresize(function() { $('#posts').isotope(

TypeError: $container.isotope is not a function

久未见 提交于 2019-12-07 23:10:20
问题 Probably it could be duplicate question but I have tried every solution I found, I am newbie with imagesLoaded , can anyone please help to get rid out of it? The scripts I have included is in following order - <script type='text/javascript' src='{{asset('assets/includes/js/jquery/jquery-3.3.1.min.js')}}'></script> <script type='text/javascript' src='{{asset('assets/includes/js/jquery/jquery-migrate.min330a.js')}}'></script> <script type='text/javascript' src='{{asset('assets/js/imagesloaded

Isotope Gallery Error: Uncaught Error No layout mode packery line 8

醉酒当歌 提交于 2019-12-07 23:03:55
问题 I am trying to use packery as a layout for my gallery. I am using fancybox with the isotope gallery. I don't see fancybox being the issue. I'm using isotope v2 and the latest packery download. Every single other layout works, even the ones not included in isotope js like fitRows and fitColumns. But with packery I get this error from isotope: Uncaught Error: No layout mode: packery isotope.pkgd.js line 8 Here is an example on codepen: http://codepen.io/anon/pen/QwXEvr JS: jQuery('.fancybox')

How can I remove all images and add a new list of images?

谁说我不能喝 提交于 2019-12-07 21:56:44
问题 Using the Isotope plugin how can I remove all images that currently exist and load in a set of images on a press of a button? In the documentation it says do this to remove a single item: .isotope( 'remove', $items, callback ) How can I remove all the items and then load a new set of items? An example in jsfiddle would be wonderful. 回答1: I, too, recently needed to replace all isotope items with a new set of images. This worked for me: var $isoContainer = $('#image-feed'); $isoContainer

Using Angular Masonry in AngularJS?

风格不统一 提交于 2019-12-07 10:15:45
问题 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

jQuery: infinite scroll and the back button

强颜欢笑 提交于 2019-12-07 04:15:51
问题 OK so I know this causes problems with everyone, and it's causing problems with me too. I'm using the infinite scroll plugin on a client's site, in combination with the isotope plugin to load in their products sequentially, the problem is though as they have 1000's of products, anyone browsing the site then clicking into a product, when they click the back button they'll be returned back to the top (or just above the fold of page one), which is causing quite a lot of issues. My markup is as

Define/call a function in isotope onLayout

人走茶凉 提交于 2019-12-07 03:10:32
I'm using http://isotope.metafizzy.co/docs/options.html#onlayout and it says this: "Similiar to a callback, onLayout is a function that will be triggered after every time an Isotope instance runs through its layout logic." $('#container').isotope({ onLayout: function( $elems ) { // `this` refers to jQuery object of the container element console.log( this.height() ); // callback provides jQuery object of laid-out item elements $elems.css({ background: 'blue' }); } }); That means that when "Layout" has finished i can run this: $elems.css({ background: 'blue' }); I don't have "$elems" but from

How can I remove all images and add a new list of images?

喜夏-厌秋 提交于 2019-12-06 14:06:30
Using the Isotope plugin how can I remove all images that currently exist and load in a set of images on a press of a button? In the documentation it says do this to remove a single item: .isotope( 'remove', $items, callback ) How can I remove all the items and then load a new set of items? An example in jsfiddle would be wonderful. I, too, recently needed to replace all isotope items with a new set of images. This worked for me: var $isoContainer = $('#image-feed'); $isoContainer.isotope('remove', $isoContainer.isotope('getItemElements')); $isoContainer.isotope('appended', $newEntries);

TypeError: $container.isotope is not a function

自古美人都是妖i 提交于 2019-12-06 09:25:29
Probably it could be duplicate question but I have tried every solution I found, I am newbie with imagesLoaded , can anyone please help to get rid out of it? The scripts I have included is in following order - <script type='text/javascript' src='{{asset('assets/includes/js/jquery/jquery-3.3.1.min.js')}}'></script> <script type='text/javascript' src='{{asset('assets/includes/js/jquery/jquery-migrate.min330a.js')}}'></script> <script type='text/javascript' src='{{asset('assets/js/imagesloaded.js')}}'></script> <script type='text/javascript' src='{{asset('assets/js/imagesloaded.pkgd.js')}}'><