Giter Site home page Giter Site logo

hosein2398 / vue-progress-scroll Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 2.0 87 KB

A vue plugin to show a progress bar while reading

Home Page: https://hosein2398.github.io/vue-progress-scroll/

License: MIT License

Vue 43.09% JavaScript 56.91%
vue vue-plugin vue-progress-scroll

vue-progress-scroll's Introduction

vue-progress-scroll

Tiny Vue plugin to show a progress bar while user is reading an article or ...

Installing

Get from npm:

npm i -D vue-progress-scroll

And use this inside your app:

import Vue from 'vue'
import App from './App.vue'
import Progress from 'vue-progress-scroll'

Vue.use(Progress);
new Vue({
  el: '#app',
  render: h => h(App)
})

And if you want to use from browser, simply :

<script src='./vue-progress-scroll.js'></script>

Usage

Usage is really simple, just put the content inside progress-scroll tag.

Example:

<progress-scroll>
	Here is the article main part.
	lorem...
	....
	...
	..
</progress-scroll>

Events

vue-progress-scroll fires complete event when you reach end of scroll. Example:

<progress-scroll @complete='runMyMethod'>
	Here is the article main part.
	lorem...
	....
	...
	..
</progress-scroll>

Props

There is a background prop which defines the background color of bar:

<progress-scroll background='#abfbc6'>
	Here is the article main part.
	lorem...
	....
	...
	..
</progress-scroll>

vue-progress-scroll's People

Contributors

hosein2398 avatar

Stargazers

Roman avatar Trev avatar Juan Fuentes avatar Wojciech Połowniak avatar Inani El Houssain avatar  avatar Goran avatar Vikram Rojo avatar Stevens Clessens avatar  avatar  avatar  avatar Pascal Tbf avatar

Watchers

James Cloos avatar  avatar

vue-progress-scroll's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.