The affix plugin toggles between three classes, each representing a particular state: .affix, .affix-top, and affix-bottom You must provide the styles, with the exception of position: fixed; on .affix, for these classes yourself (independent of this plugin) to handle the actual positions.