One of the holy grails of responsive web layouts is the “Masonry” grid commonly used on Pinterest and many other sites. With the advent of native features like Flexbox and CSS Grid, many layout woes are a thing of the past. However, this design pinnacle still stands strong as a challenge to frontend engineers, often requiring a mess of complex JavaScript to manipulate the DOM successfully. Now, there’s a light at the end of the tunnel! Let’s explore how we can build a MasonryGrid component with nothing more than CSS Grid and Ember’s modifier pattern, making this problem a thing of the past.

Original video was published with the Creative Commons Attribution license (reuse allowed). Link: