diff --git a/docs/_includes/js/affix.html b/docs/_includes/js/affix.html index 86b9a98e8c..da2fb4127b 100644 --- a/docs/_includes/js/affix.html +++ b/docs/_includes/js/affix.html @@ -2,7 +2,7 @@

Affix affix.js

Example

-

The subnavigation on the right is a live demo of the affix plugin.

+

The affix plugin toggles position: fixed; on and off emulating the effect found with position: sticky;. The subnavigation on the right is a live demo of the affix plugin.


@@ -10,7 +10,7 @@

Use the affix plugin via data attributes or manually with your own JavaScript. In both situations, you must provide CSS for the positioning and width of your affixed content.

Positioning via CSS

-

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

+

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.

Here's how the affix plugin works:

  1. To start, the plugin adds .affix-top to indicate the element is in its top-most position. At this point no CSS positioning is required.