A Simple vue scroll fixed navbar package which will help you to fix the top header or navbar while scrolling the screen.
With build systems
npm install --save vue-scroll-fixed-navbar
yarn add vue-scroll-fixed-navbar
In your main.js:
import VueScrollFixedNavbar from "vue-scroll-fixed-navbar";
Vue.use(VueScrollFixedNavbar);import {VueScrollFixedNavbar} from "vue-scroll-fixed-navbar";
export default {
name: 'YourComponent',
components: {
VueScrollFixedNavbar
}
}<template>
<VueScrollFixedNavbar>
your content
</VueScrollFixedNavbar>
</template>| Name | Type | Default Value | Description | Required |
|---|---|---|---|---|
isFixed |
Boolean |
true |
Defines whether to fixed the header or not. | false |
In order to stop fixing the navbar or header pass props
<template>
<VueScrollFixedNavbar :isFixed="false">
your content
</VueScrollFixedNavbar>
</template>You may use it under the terms of the MIT Licenses