Bootstrap
Options There are certain options which can be passed via data attributes or JavaScript as listed in the following table: Option Name
Type/Default Value
Data attribute name
Description
offset
number function object Default: 10
data-offset
Pixels to offset from screen when calculating position of scroll. If a single number is provided, the offset will be applied in both the top and bottom directions. To provide a unique, bottom and top offset just provide an object offset: { top: 10 } or offset: { top: 10, bottom: 5 }. Use a function when you need to dynamically calculate an offset.
| |
246