Elektrine lite

โ† Feed

@anatudor@mastodon.social

Post #3510184

2026-07-01 11:44 UTC

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. ๐Ÿ‘€

Replies (1)

  • @anatudor@mastodon.social 2026-07-01 12:14

    Whatever you do, don't do this... It can produce choppy animations. Fixed pixel heights = fuck responsivity. If all is !important, nothing is !important. And for the love of satan, stop putting prefixed versions last!

    Open ##3510183