Post #3510185
2026-07-01 10:53 UTC
RE: https://front-end.social/@kizu/116844135311018071
Asked here because search made me come across so many crappy ways to do this... ๐ญ
So boosting an approach without any of the issues I've seen over and over.
Replies (1)
-
@anatudor@mastodon.social 2026-07-01 11:44
Seriously, was this AI generated and that's why it's so bad? ๐ญ https://github.com/GoogleChrome/modern-web-guidance/blob/main/skills/modern-web-guidance/guides/user-experience/shrinking-header-on-scroll.md Modern CSS? Responsivity? LOL. Code contradicting text guidance attached to it? Checked. Do as the priest preaches, not as the priest does. Hardcoding the same values in both the CSS and JS so you have to modify them twice if you change something? Checked. Also, can't tell if that support test choice was trying to do another browser's imperfect early implementation dirty or if it's just plain stupid. ๐