vue-sticky-ssr

A directive to sticky element for vue.js.
1,357 161
Install
npm install vue-sticky-ssr@3.3.4
Latest Version:3.3.4
Vue:2
License:ISC
Last Updated:Oct 13, 2018
Links: GitHub  ·  npm
Maintainer: mindrudan

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-sticky

A directive to sticky element for vue.js.

115,846 161
vue-position-sticky

A Vue.js components to sticky to the page

5,657 11
vue-sticky-position

A Vue.js sticky position component

2,232 30
vue-position-sticky-b

A Vue.js components to sticky to the page

1,506 0
vue-affix

A Vue.js plugin that affixes an element in the window while you scroll, similar...

153,389 405

Version History

Version Released Vue License
3.3.4 ^2.5.16 ISC
Pre-releases (2)
Version Released Vue License
3.3.5-ssr-build.1 ^2.5.16 ISC
3.3.4-ssr ^2.5.16 ISC