Skip to content

Instantly share code, notes, and snippets.

@djrmom
Created February 21, 2019 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djrmom/e2f8811e3108a2a5c5f5489f9bef2348 to your computer and use it in GitHub Desktop.
Save djrmom/e2f8811e3108a2a5c5f5489f9bef2348 to your computer and use it in GitHub Desktop.
facetwp ascend theme masonry
(function($) {
$(document).on('facetwp-loaded', function() {
$(".init-masonry-intrinsic").each(function() {
var t = $(this)
, e = $(this).data("masonry-selector")
, i = !0;
$("body.rtl").length && (i = !1),
t.masonry({
itemSelector: e,
isOriginLeft: i
}),
t.find(".kt_item_fade_in").each(function(t) {
$(this).delay(75 * t).animate({
opacity: 1
}, 175)
})
})
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment