var $boxes = $('.loop');
var $container = $('#content_masonry');
$container.imagesLoaded( function() {
$boxes.fadeIn();
$( ".popup-loader" ).hide();
$container.masonry({
itemSelector : '.loop',
columnwidth: 300,
gutter: 23,
isFitWidth: true,
isAnimated: !Modernizr.csstransforms
});
});
});
var msnry = $container.data('masonry');
$container.infiniteScroll({
path: '#page-nav a',
append: '.loop',
outlayer: msnry,
history: false
});
var msnry = $container.data('masonry');
path: '.pagination__next',
append: '.loop',
hideNav: '.pagination',
outlayer: msnry,
});
<p class="pagination">
<a class="pagination__next" href="<?php previous_posts_link() ?>"></a>
</p>
<div id="content_masonry"
data-infinite-scroll='{ "path": ".pagination__next", "append": ".post", "history": false }'>
$(document).ready(function() {
var $boxes = $('.loop');
var $container = $('#content_masonry');
$container.imagesLoaded( function() {
$boxes.fadeIn();
$( ".popup-loader" ).hide();
$container.masonry({
itemSelector : '.loop',
columnwidth: 300,
gutter: 23,
isFitWidth: true,
isAnimated: !Modernizr.csstransforms
});
});
});
var msnry = $container.data('#content_masonry');
// init Infinite Scroll
$container.infiniteScroll({
path: '#page-nav a',
append: '.loop',
history: false,
});
var msnry = $container.data('#content_masonry');
$(document).ready(function() {
var $boxes = $('.loop');
$boxes.hide();
var $container = $('#content_masonry');
$container.imagesLoaded( function() {
$boxes.fadeIn();
$container.masonry({
itemSelector : '.loop',
columnwidth: 300,
gutter: 23,
isFitWidth: true,
isAnimated: !Modernizr.csstransitions
});
});
});
$('#lk-conteyner').css('background-position-y', '50% '+(-scrolled*10)+'%');