vue-sticky-ssr

3.3.5-ssr-build.1 • Public • Published

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>

Package Sidebar

Install

npm i vue-sticky-ssr

Weekly Downloads

29

Version

3.3.5-ssr-build.1

License

ISC

Unpacked Size

14.7 kB

Total Files

15

Last publish

Collaborators

  • mindrudan