Giter Site home page Giter Site logo

sergio-apithy / vue-radial-progress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from athiwatp/vue-radial-progress

0.0 1.0 0.0 182 KB

Radial progress bar component for Vue.js

Home Page: https://wyzant-dev.github.io/vue-radial-progress/

License: MIT License

JavaScript 7.60% HTML 49.72% Vue 42.68%

vue-radial-progress's Introduction

vue-radial-progress npm package

A radial progress bar component for Vue.js. Uses SVG and javascript to animate a radial progress bar with a gradient.

Live Demo

Requirements

  • Vue.js ^1.0.0 (Compatible with Vue 1.0 or 2.0)
  • A module bundler such as webpack or use the minified version on its own.

Installation

$ npm install --save vue-radial-progress

Usage

<template>
  <radial-progress-bar :diameter="200"
                       :completed-steps="completedSteps"
                       :total-steps="totalSteps">
   <p>Total steps: {{ totalSteps }}</p>
   <p>Completed steps: {{ completedSteps }}</p>
  </radial-progress-bar>
</template>

<script>
import RadialProgressBar from 'vue-radial-progress'

export default {
  data () {
    return {
      completedSteps: 0,
      totalSteps: 10
    }
  },

  components: {
    RadialProgressBar
  }
}
</script>

Props

Name Default value Description
diameter 200 Diameter of the progress bar circle in pixels.
totalSteps 10 Total number of steps to complete progress bar.
completedSteps 0 Number of completed steps in the progress bar.
startColor #bbff42 The color of the leading edge of the progress bar gradient.
stopColor #429321 The secondary color of the progress bar gradient.
innerStrokeColor #323232 Background color of the progress bar.
strokeWidth 10 The width of the progress bar.
animateSpeed 1000 The amount of time in milliseconds to animate one step.
fps 60 The frames per second that the animation should run.
timingFunc linear The transition timing function to use for the CSS transition. See transition-timing-function.

Lint

npm run lint

Dev

npm run dev

License

The MIT License

vue-radial-progress's People

Contributors

dalehille avatar judocode avatar

Watchers

 avatar

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.