Thursday, September 6th

Stick your landings! position: sticky lands in WebKit


position: sticky is a new way to position elements and is conceptually similar to position: fixed. The difference is that an element with position: sticky behaves like position: relative within its parent, until a given offset threshold is met in the viewport.

Great, native replacement for a simple scroll hack. Until this becomes an adopted standard, you may want to check out the Affix plugin in Twitter Bootstrap.

  1. scriptsht reblogged this from webkitbits
  2. sethrubenstein reblogged this from webkitbits
  3. webkitbits posted this