Shorthand way to achieve this grid?

Hello 👋

I'm trying to make a grid that alternates in items per row between 4 and 5 items.

Is there a shorter way to do this without having to name each area?

This is what I have so far: https://jsfiddle.net/bnamep5w/

I've also attached the effect I'm going for

Thanks!
Screenshot_2022-10-05_at_17.35.50.png
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
Was this page helpful?