[#]CSS feature faceoff:
scroll triggered stuck nav (left)
vs
scroll driven animation nav (right)
which do you prefer?
try it
https://codepen.io/argyleink/pen/gbYGgrB
(use Canary for the scroll-state() support)
=> More informations about this toot | More toots from argyleink@front-end.social
@argyleink in terms of delight, I would probably be more likely to notice the one on the right and play with it by scrolling up and down, while the left feels less attention-grabbing. But you don't always want a nav bar to be attention-grabbing so I think both approaches have a place!
=> More informations about this toot | More toots from gyanreyer@fosstodon.org
@gyanreyer "both have a place" is where I'm at too! gotta assess the situation and choose
=> More informations about this toot | More toots from argyleink@front-end.social
@argyleink I prefer the SDA one, but I'm biased :) https://kizu.dev/scroll-driven-animations/#stuck-states-for-the-sticky-headers
=> More informations about this toot | More toots from kizu@front-end.social
@argyleink I prefer when the nav bar is always visible in white, so I can immediately see the menu button without scrolling.
=> More informations about this toot | More toots from niutech@fosstodon.org
@argyleink I like the left one the best. Mostly because I think the text and hamburger button should be white against that dark background when the header is transparent. Therefore, when transitioning those from white to black gradually when scrolling down, it would make them difficult to read during the transition.
=> More informations about this toot | More toots from burkybang@mastodon.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini