{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/17819","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/17819/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/17819/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/17819/events","html_url":"https://github.com/twbs/bootstrap/issues/17819","id":110473247,"number":17819,"title":"v4: Replacement of affix with position:sticky does not address all use cases","user":{"login":"acch","id":11490209,"avatar_url":"https://avatars.githubusercontent.com/u/11490209?v=3","gravatar_id":"","url":"https://api.github.com/users/acch","html_url":"https://github.com/acch","followers_url":"https://api.github.com/users/acch/followers","following_url":"https://api.github.com/users/acch/following{/other_user}","gists_url":"https://api.github.com/users/acch/gists{/gist_id}","starred_url":"https://api.github.com/users/acch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acch/subscriptions","organizations_url":"https://api.github.com/users/acch/orgs","repos_url":"https://api.github.com/users/acch/repos","events_url":"https://api.github.com/users/acch/events{/privacy}","received_events_url":"https://api.github.com/users/acch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twbs/bootstrap/labels/js","name":"js","color":"ffc40d"},{"url":"https://api.github.com/repos/twbs/bootstrap/labels/meta","name":"meta","color":"444444"},{"url":"https://api.github.com/repos/twbs/bootstrap/labels/v4","name":"v4","color":"563d7c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-08T15:13:51Z","updated_at":"2015-10-08T19:23:04Z","closed_at":null,"body":"I understand that with v4 the affix js component is to be dropped. Instead, `position:sticky` (with or without polyfill) is supposed to take its place. I agree that for most scenarios `position:sticky` is a valid replacement - however, there are scenarios which can not be addressed with it.\r\n\r\nI use affix js on a few sites / apps in the following way: I have a fixed navbar on top, and use affix to apply a certain style / class upon scrolling. Initially (when window is scrolled to top), the navbar integrates seamlessly into the page (i.e. no shadow, no accentuation...) When scrolling the window, I apply a custom style / class to make the navbar stand out (i.e. drop shadow, etc.). This greatly improves the effect of the navbar 'hovering' above the page...\r\n\r\nThis is something which can not be addressed with `position:sticky`, and AFAIK no other bootstrap component provides this functionality (happy for being corrected on that one). Thus, removal of affix would break these kind of scenarios.\r\n\r\nPlease let me know how I can help...\r\nAll the best!\r\n\r\nAchim"},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/146661930","html_url":"https://github.com/twbs/bootstrap/issues/17819#issuecomment-146661930","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/17819","id":146661930,"user":{"login":"danimalweb","id":1168503,"avatar_url":"https://avatars.githubusercontent.com/u/1168503?v=3","gravatar_id":"","url":"https://api.github.com/users/danimalweb","html_url":"https://github.com/danimalweb","followers_url":"https://api.github.com/users/danimalweb/followers","following_url":"https://api.github.com/users/danimalweb/following{/other_user}","gists_url":"https://api.github.com/users/danimalweb/gists{/gist_id}","starred_url":"https://api.github.com/users/danimalweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danimalweb/subscriptions","organizations_url":"https://api.github.com/users/danimalweb/orgs","repos_url":"https://api.github.com/users/danimalweb/repos","events_url":"https://api.github.com/users/danimalweb/events{/privacy}","received_events_url":"https://api.github.com/users/danimalweb/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T19:23:04Z","updated_at":"2015-10-08T19:23:04Z","body":"I have message bar above my BS Navbar and use affix to lock the position of the navbar once the message bar has been scrolled past. Example: http://www.avantagesemark.com/\r\n\r\nI've checked out the docs for postion: sticky as I don't see how I can achieve the same. +1 for keeping Affix."}}