site_oueb_2/wp-content/plugins/ocean-extra/assets/js/isotope.js

39 lines
899 B
JavaScript
Raw Permalink Normal View History

2022-11-22 20:23:31 +01:00
var $j = jQuery.noConflict();
$j( document ).ready( function() {
"use strict";
// Masonry grids
oceanwpMasonryGrids();
} );
$j( window ).on( 'orientationchange', function() {
"use strict";
// Masonry grids
oceanwpMasonryGrids();
} );
/* ==============================================
MASONRY
============================================== */
function oceanwpMasonryGrids() {
"use strict"
$j( '.blog-masonry-grid' ).each( function() {
var $this = $j( this ),
$transitionDuration = '0.0',
$layoutMode = 'masonry';
// Load isotope after images loaded
$this.imagesLoaded( function() {
$this.isotope( {
itemSelector : '.isotope-entry',
transformsEnabled : true,
isOriginLeft : oceanwpLocalize.isRTL ? false : true,
transitionDuration : $transitionDuration + 's'
} );
} );
} );
}