All Projects â†’ dreambo8563 â†’ easy-circular-progress

dreambo8563 / easy-circular-progress

Licence: MIT license
easy circular progress component with counting effect đŸ’«đŸș🎡

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
Vue
7211 projects
CSS
56736 projects
SCSS
7915 projects
Makefile
30231 projects

Projects that are alternatives of or similar to easy-circular-progress

Rn Countdown
⏰ çșŻ JavaScript 漞现的针ćŻč React Native App çš„ć€’èźĄæ—¶ç»„ä»¶ă€‚
Stars: ✭ 19 (-83.33%)
Mutual labels:  countdown
React Timer Hook
React timer hook
Stars: ✭ 118 (+3.51%)
Mutual labels:  countdown
CircularCountdown
Android library to create a circular countdown, fully written in Kotlin
Stars: ✭ 24 (-78.95%)
Mutual labels:  countdown
React Native Timer Countdown
⏱ A minimal and customizable countdown timer for React Native (iOS and Android)
Stars: ✭ 53 (-53.51%)
Mutual labels:  countdown
Countdownbutton
⏳A button component with a countdown function
Stars: ✭ 87 (-23.68%)
Mutual labels:  countdown
Flipdown
⏰ A lightweight and performant flip styled countdown clock
Stars: ✭ 136 (+19.3%)
Mutual labels:  countdown
Countdownlabel
Simple countdown UILabel with morphing animation, and some useful function.
Stars: ✭ 714 (+526.32%)
Mutual labels:  countdown
use-countdown
⏳ useCountdown hook
Stars: ✭ 79 (-30.7%)
Mutual labels:  countdown
Use Timer
A timer hook for React
Stars: ✭ 113 (-0.88%)
Mutual labels:  countdown
React Countdown Circle Timer
Lightweight React/React Native countdown timer component with color and progress animation based on SVG
Stars: ✭ 220 (+92.98%)
Mutual labels:  countdown
React Countdown
React Component showing a countdown to certain date and time.
Stars: ✭ 58 (-49.12%)
Mutual labels:  countdown
Flip Clock
A flip clock, timer and countdown made with Polymer
Stars: ✭ 69 (-39.47%)
Mutual labels:  countdown
React Native Countdown Component
React Native CountDown
Stars: ✭ 193 (+69.3%)
Mutual labels:  countdown
Snore
sleep with feedback
Stars: ✭ 47 (-58.77%)
Mutual labels:  countdown
react-use-countdown
React hook for countdown state.
Stars: ✭ 19 (-83.33%)
Mutual labels:  countdown
Termdown
Countdown timer and stopwatch in your terminal
Stars: ✭ 749 (+557.02%)
Mutual labels:  countdown
Ngx Countdown
Simple, easy and performance countdown for angular
Stars: ✭ 133 (+16.67%)
Mutual labels:  countdown
CountdownTimer-TeLeTiPs
The very first powerful Telegram bot to countdown to your important events in any group chat. Live countdown timer (days : hours : minutes : seconds)
Stars: ✭ 122 (+7.02%)
Mutual labels:  countdown
SyoTimer
jQuery plugin of countdown on html-page
Stars: ✭ 18 (-84.21%)
Mutual labels:  countdown
Countdownlist
CountDown ć€’èźĄæ—¶çš„ć„ç§èŠ±ćŒćźžçŽ°
Stars: ✭ 222 (+94.74%)
Mutual labels:  countdown

Codacy Badge All Contributors codecov License: MIT npm Build Status FOSSA Status Greenkeeper badge Known Vulnerabilities

easy-circular-progress

Install

npm install easy-circular-progress --save

Quick Start

<template>
  <div id="app">
    <Progress value="16.88">
      <!-- <template v-slot:footer>
        <b>goood</b>
      </template>-->
    </Progress>
    <Progress strokeColor="#FF00AA" value="16.88">
      <template v-slot:footer>
        <b>More Color</b>
      </template>
    </Progress>

    <Progress :radius="50" :strokeWidth="10" value="86.12">
      <template v-slot:footer>
        <b>Bolder & Bigger One</b>
      </template>
    </Progress>

    <Progress
      :transitionDuration="5000"
      :radius="50"
      :strokeWidth="10"
      value="86.12"
    >
      <template v-slot:footer>
        <b>Slow One</b>
      </template>
    </Progress>

    <Progress
      :transitionDuration="5000"
      :radius="55"
      :strokeWidth="10"
      value="86.12567"
    >
      <template v-slot:footer>
        <b>More Precise</b>
      </template>
    </Progress>

    <Progress :transitionDuration="5000" :radius="55" :strokeWidth="10" value="86.12567">
      <div class="content">hello</div>
      <template v-slot:footer>
        <b>More Precise</b>
      </template>
    </Progress>
  </div>
</template>

<script>
import Progress from "easy-circular-progress";

export default {
  name: "app",
  components: {
    Progress
  }
};
</script>

<style lang="scss">
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  height: 100vh;
  color: #fff;
  background: #3e423a;
  display: flex;
  justify-content: center;
  align-items: center;
}
body {
  margin: 0;
  padding: 0;
}
</style>

Prop Types

Property Type Required? Description
strokeWidth Number default is 4, the width of the progress circle, the bigger the bolder
radius Number the inner circle radius, default is 38
transitionDuration Number default is 1000, transitionDuration for the animation
strokeColors String default is "#aaff00"
value Number | String default is 0.0, should be less or equal then 100

Slot

Slot Name Description
footer we can add a footer for the circle
default the content displayed in the circle

if default slot provided, the coutdown effect will be ignored.

Advance Guide

Customized Theme

  • In your customized scss file (demo.scss)
$--circular-progress-int-fz: 28px;
$--circular-progress-dec-fz: 12px;
@import '~easy-circular-progress/src/index';
  • import the scss to override the default theme in main.js (entry file) before you import the Draw component
import './demo.scss';

variables

We split the number into two parts (int, dec) We can define the font-size for each part

  • $--circular-progress-int-fz: 28px;
  • $--circular-progress-dec-fz: 12px;

Possibly Polyfill

Number.isNaN =
  Number.isNaN ||
  function(value) {
    return value !== value;
  };

License

FOSSA Status

Contributors

Thanks goes to these wonderful people (emoji key):

Vincent Guo
Vincent Guo

đŸ’» 📖 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].