Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

142
Views
Adding grid items to isotope without breaking the UI

I have my HTML as below

<div class="blog-box">
    <div class="blog-item" >...</div>
    <div class="blog-item" >...</div>
    <div class="blog-item" >...</div>
</div>

and javascript with jquery and isotope js as

var $container=$('.blog-box');

try{
    $container.imagesLoaded( function(){
        $container.show();
        $container.isotope({

            filter:'*',
            layoutMode:'masonry',

            animationOptions:{
                duration:750,
                easing:'linear'
            }
        });
    });
} catch(err) {
}

When I try to add more blog item elements dynamically using javascript, the width of the blog-box item becomes zero. I have tried rerunning the js above every time I add items to the blog-box but it's not working out. How do I be able to add more blog-items without interfering with the layout?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!