Not that it's hidden in the depths of css or anything, position: sticky is not so well known/utilized IMO.
Same with CSS variables...
As I learned instead of writing six lines of JS to lock a nav bar I place, position:sticky; took care of it.
That made me think of this funny Tweet from @chriscoyier
today about position sticky.
i don’t know who needs to hear this but if you put a position: sticky; element in a rotated parent, it’s funny and weird. codepen.io/team/shoptalks…
18:35 PM - 14 Nov 2019
I think CSS variables are starting to gain steam. It makes a lot of sense for theming. DEV, for those who aren't aware, uses CSS variables quite a bit for theming.
recently talked about his heavy use of them for animations on a recent episode of Shop Talk.
Him and David Shaw have this awesome Twitch stream where they reverse engineer animations. They're called the Keyframers and you can follow them on Twitch or on the Twitters.
Navbar Nudging with @chriscoyier!Watch the very first #THREEFRAMERS guest collaboration where we tackle a deceptively difficult navigation toggle.💻 @CodePen Demo: cdpn.io/pen/xvoBrx📺 @YouTube Video: youtu.be/wdCgNoXFsgs#webdev #css #js #animation #tutorial
21:32 PM - 13 Aug 2019
It's really an amazing thing to watch.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.