同位素同位素

时间:2020-07-22 11:19:36

标签: javascript html css jquery-isotope

我将此代码用于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”?

0 个答案:

没有答案
相关问题