Get the latest tech news

Solving Shrinkwrap: New Experimental Technique


In this article, I present my new technique for solving a CSS problem that was deemed impossible — true shrinkwrapping of an element with auto-wrapped content. By using anchor positioning and scroll-driven animations, we can adjust our element’s outer dimensions by measuring its inner contents, demonstrating that for many cases this can already work and might unlock a future native feature.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of shrinkwrap

shrinkwrap

Related news:

News photo

Shrinkwrap 'Contract' Found At Costco On... Collagen Peptides