8000 GitHub - EdwinHoksberg/vue-scroll-indicator: Scroll indicator component using Vue.js
[go: up one dir, main page]

Skip to content
  • < 8000 a href="/login?return_to=%2FEdwinHoksberg%2Fvue-scroll-indicator" rel="nofollow" id="repository-details-watch-button" data-hydro-click="{"event_type":"authentication.click","payload":{"location_in_page":"notification subscription menu watch","repository_id":null,"auth_type":"LOG_IN","originating_url":"https://github.com/EdwinHoksberg/vue-scroll-indicator","user_id":null}}" data-hydro-click-hmac="4fc7e057939cd82c3cf30b5678cae9b05a577a42f0b4e36556b9b1084e691a13" aria-label="You must be signed in to change notification settings" data-view-component="true" class="btn-sm btn"> Notifications You must be signed in to change notification settings
  • Fork 0

Scroll indicator component using Vue.js

License

Notifications You must be signed in to change notification settings

EdwinHoksberg/vue-scroll-indicator

 
 

Repository files navigation

Latest Version on NPM Total Downloads on NPM Software License Build Status

Vue-scroll-indicator

Scroll indicator component using Vue.js.

Demo

Link

Installation

$ yarn add vue-scroll-indicator --dev
# or ...
$ npm i vue-scroll-indicator --save-dev

Register the component:

import Vue from 'vue';
import { VueScrollIndicator } from 'vue-scroll-indicator';

Vue.component('vue-scroll-indicator', VueScrollIndicator);

Alternatively using Vue.use() to register the component:

import VueScrollIndicator from 'vue-scroll-indicator';

Vue.use(VueScrollIndicator);

Usage

Display the component using default style:

<vue-scroll-indicator></vue-scroll-indicator>

Display the component using custom style:

<vue-scroll-indicator
    height="7px"
    color="#11998e"
    background="none"
>
</vue-scroll-indicator>

Available properties

Prop Data Type Required Default Description
height String false 5px Scroll indicator height
color String false linear-gradient(to right, #ec008c, #fc6767) Scroll indicator color
background String false #eaeaea Scroll indicator background-color

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Scroll indicator component using Vue.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 50.2%
  • JavaScript 49.8%
0