vue-sticky
vue-sticky
A directive to sticky element for vue.js(2.x).
for useage with Vue 1.x, see the 2.x branch
Install
npm install vue-sticky --save
Dev
run npm install and npm run dev
Import
import VueSticky from 'vue-sticky' // Es6 module
const VueSticky = VueSticky.default // Global variable
Use
directives: {
'sticky': VueSticky,
},
<ELEMENT v-sticky="{ zIndex: NUMBER, stickyTop: NUMBER, disabled: [true|false]}">
<div> <!-- sticky wrapper, IMPORTANT -->
CONTENT
</div>
</ELEMENT>
Related Packages
vue-affix
A Vue.js plugin that affixes an element in the window while you scroll, similar...
153,389
405
Version History
| Version | Released | License |
|---|---|---|
| 3.3.4 | ISC | |
| 3.3.3 | ISC | |
| 3.3.2 | ISC | |
| 3.3.1 | ISC | |
| 3.3.0 | ISC | |
| 3.2.0 | ISC | |
| 3.1.5 | ISC | |
| 3.1.4 | ISC | |
| 3.1.3 | ISC | |
| 3.1.2 | ISC | |
| 3.1.0 | ISC | |
| 3.0.1 | ISC | |
| 3.0.0 | ISC | |
| 2.1.3 | ISC | |
| 2.1.2 | ISC | |
| 2.1.1 | ISC | |
| 2.1.0 | ISC | |
| 2.0.0 | ISC | |
| 1.0.0 | ISC | |
| 0.1.2 | ISC | |
| 0.1.1 | ISC | |
| 0.1.0 | ISC |