Welcome to Help center

We are here to help

Mansory grid

Follow
HTML:
        <div class="grid">
            <div class="grid-item">...</div>
            <div class="grid-item">...</div>
            <div class="grid-item">...</div>
        </div>
    
Before </body> tag ends:
        <script type="text/javascript" src="assets/js/masonry.pkgd.min.js"></script>
    
Js
        function triggerMasonry() {
            if ( !$grid ) { return; }
            $grid.masonry({
                itemSelector: '.grid-item'
            });
        }
        
        $grid = $('.grid');
        triggerMasonry();
    

 

Have more questions?

Submit a request

Comments

Top
Powered by Zendesk