3. If a bottom offset is defined, scrolling past it should replace .affix with .affix-bottom. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add position: absolute when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.