Simple and cross-browser friendly fixed header component for Vue.js.
npm install vue-fixed-header






Simple and cross-browser friendly fixed header component for Vue.js.


``bash`
yarn add vue-fixed-header
`html
`
The Vue Fixed Header always assigns the vue-fixed-header CSS class to the slot's root element.vue-fixed-header - isFixed
Also, when matching the fixed condition, we give the CSS class.
These can also be changed with headerClass prop and fixedClass prop.
The threshold value for determining the scroll state.
`html
``
CSS class for fixed-header root Element.
It is always attached to fixed header root Element.
- type: String,
- required: false
- default: 'vue-fixed-header'
CSS class for fixed header.
When fixed-header position is relative, it removed to DOM Element.
When fixed-header position is fixed, it added to DOM Element.
- type: String
- required: false
- default: 'vue-fixed-header--isFixed'
MIT © potato4d
Thanks goes to these wonderful people (emoji key):
HANATANI Takuma π» π π π‘ π¬ π | EGOIST π§ | Johnny Cavalcante π | James Wright π | Sid β οΈ | AndrΓ© Van Dal π» | Patrik π |
This project follows the all-contributors specification. Contributions of any kind welcome!