Here’s my codepen page if anyone wants to compare complexity and see what’s easier for your own brain.
(To be clear… I’m not convinced one approach is better than the other. I have an easier time applying the tailwind one to the stuff I do, probably due to years of backend brain warp. It would make sense to me if it broke differently for someone with a different background.)
Reading this makes me really appreciate the tailwindcss approach to breakpoints.
I find it far easier to wrap my mind around this:
Which results in this on a wide screen and in this on a narrow screen.
Here’s my codepen page if anyone wants to compare complexity and see what’s easier for your own brain.
(To be clear… I’m not convinced one approach is better than the other. I have an easier time applying the tailwind one to the stuff I do, probably due to years of backend brain warp. It would make sense to me if it broke differently for someone with a different background.)