Skip to content

uuki/vue-sticky

Repository files navigation

Vue Sticky

Overview

Sticky plugin for Vue 2. Based on rguanghui/vue-sticky

Installation

$ yarn add vue-sticky-alter

or

$ npm install vue-sticky-alter
import Vue from 'vue'
import VueSticky from 'vue-sticky-alter'

Vue.use(VueSticky)

Usage

<ELEMENT v-sticky="{ zIndex: NUMBER, stickyTop: NUMBER }">
  <div> <!-- sticky wrapper, IMPORTANT -->
    CONTENT
  </div>
</ELEMENT>

About

Sticky directive for Vue 2.x. Based on https://github.com/rguanghui/vue-sticky

Resources

License

Stars

Watchers

Forks

Packages

No packages published