9:54:072 better alternatives to overflow: hidden
From the creator
Looking to up your CSS Game? Free & Premium courses π https://kevinpowell.co/courses?utm_campaign=general&utm_source=youtube&utm_medium=nomorehidden Overflow hidden is one of those features that seems like it should work in a very specific way, but it comes with a few strange side effects that can be incredibly frustrating and hard to fix. The powers who be have realized that there should probably be a better solution, and we have one with `overflow: clip`, which is basically a better version of `overflow: hidden`. I honestly donβt know if we need to bother with hidden at all anymore. Depending on the use case, we might want to use `contain: paint` instead though, which comes with some extra limitations, but also potential improvements to performance. π Links β Polypane: https://polypane.app/?ref=kevin (this is an affiliate link, so if you do purchase after visiting through this link, it would also help support my channel) β Killianβs article on overflow: clip: https://kilianvalkhof.com/2022/css-html/do-you-know-about-overflow-clip/ β Browser support for clip: https://caniuse.com/mdn-css_types_overflow_clip β Browser support for contain: paint: https://caniuse.com/mdn-css_types_overflow_clip β My CSS-only parallax video: https://youtu.be/Qj0Qx8HpNUo β My courses: https://kevinpowell.co/courses?utm_campaign=general&utm_source=youtube&utm_medium=nomorehidden β Timestamps 00:00 - Introduction 00:10 - The problems overflow: hidden can cause 01:15 - Target whatβs causing the
Published 2023-12-14 Β· Watch on YouTube β
Availability and playback restrictions are controlled by the original channel.





