DEV Community

Discussion on: Share your CSS knowledge

Collapse
 
ben profile image
Ben Halpern
Collapse
 
gixxerblade profile image
Steve Clark 🤷‍♀️

As I learned instead of writing six lines of JS to lock a nav bar I place, position:sticky; took care of it.

Collapse
 
nickytonline profile image
Nick Taylor • Edited

That made me think of this funny Tweet from @chriscoyier today about position sticky.

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.

@davidkpiano 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.

It's really an amazing thing to watch.