A couple of cool things you can do with CSS position sticky

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI13 min

About this video

Kevin Powell demonstrates a couple of practical uses of CSS position sticky, with linked CodePen examples and articles on sliding effects and how sticky compares to fixed positioning. It suits developers and designers who already write CSS for interfaces.

What you’ll learn

  • Apply position sticky to create a sliding effect in a layout
  • Compare position fixed and position sticky for page elements
  • Build the two sticky examples from the linked CodePens