我将此代码用于js的ltr方向的投资组合:
var myTheme = window.myTheme || {},
$win = $( window );
myTheme.Isotope = function () {
// 4 column layout
var isotopeContainer = $('.isotopeContainer');
if( !isotopeContainer.length || !jQuery().isotope ) return;
$win.on('load', function() {
isotopeContainer.isotope({
itemSelector: '.isotopeSelector'
});
$('.isotopeFilters').on( 'click', 'a', function(e) {
$('.isotopeFilters').find('.active').removeClass('active');
$(this).parent().addClass('active');
var filterValue = $(this).attr('data-filter');
isotopeContainer.isotope({ filter: filterValue });
e.preventDefault();
});
});
};
myTheme.Isotope();
如何在此代码中向rtl方向使用“ originLeft:false”?