Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 5, 2020 12:40 am GMT

Playing With (Fake) Container Queries With watched-box & resizeasaurus

Heydon’s <watched-box> is a damn fantastic tool. It’s a custom element that essentially does container queries by way of class names that get added to the box based on size breakpoints that are calculated with ResizeObserver. It’s like a cleaner version of what Philip was talking about a few years ago.

I’m sure I’d be happy using <watched-box> on production, as it’s lightweight, has no dependencies, and has a straightforward approach.

For development, I had the idea of using … Read article “Playing With (Fake) Container Queries With watched-box & resizeasaurus”

The post Playing With (Fake) Container Queries With watched-box & resizeasaurus appeared first on CSS-Tricks.


Original Link: https://css-tricks.com/playing-with-fake-container-queries-with-watched-box-resizeasaurus/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks