vue-position-sticky
A Vue.js component to sticky to the page
Install
$ npm install vue-position-sticky
Usage
Vue
or
<!-- must place this line after vue.js -->
Demo
sticky slot
Options
Property | Description | Type | Default |
---|---|---|---|
offsetTop | distance to the top | Number | 0 |
offsetBottom | distance to the bottom | Number | undefined |
stickyClass | vue-position-sticky component class | String | '' |
Callback
Name | Description |
---|---|
change | when sticky will emit |