According to Bootstrap 3 docs I have added following attributes to a navbar:
As per Vucko's quote within the Mirgation docs, ScrollPos-Styler library suited me quite well.
.js ScrollPos-Styler (scrollPosStyler.js) file to your page. you wish to make 'sticky'
- Apply
sps sps--abv class
- Add
.css styles you wish to have triggered once the element has become sticky (As per the demo page.
/**
* 'Shared Styles'
**/
.sps {
}
/**
* 'Sticky Above'
*
* Styles you wish to apply
* Once stick has not yet been applied
**/
.sps--abv {
padding: 10px
}
/**
* 'Sticky Below'
*
* Styles you wish to apply
* Once stick has been applied
**/
.sps--blw {
padding: 2px
}