The Forgotten CSS Position

Everyone knows how to use relative, absolute, and fixed positioning in CSS, but most people don’t even know about the amazing sticky position. Sticky position is a unique hybrid between relative and fixed position and makes creating elements that only act liked fixed elements after they are scrolled to a certain point incredibly easy. This used to be something that could only be accomplished in JavaScript, but sticky position makes it possible in CSS, and is much better for web performance. CodePen For Sti
Back to Top