All Projects → FreekMencke → tox-progress

FreekMencke / tox-progress

Licence: MIT license
This JavaScript library was made to easily create animated radial progress bars.

Programming Languages

CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tox-progress

Mkringprogressview
⭕️ Ring progress view similar to Activity app on Apple Watch
Stars: ✭ 1,140 (+8669.23%)
Mutual labels:  progress, progress-bar, circle
mp-progress
专注于小程序圆环形进度条的小工具
Stars: ✭ 72 (+453.85%)
Mutual labels:  progress, progress-bar, circle
Jocircularslider
A highly customisable and reusable circular slider for iOS applications.
Stars: ✭ 128 (+884.62%)
Mutual labels:  progress, progress-bar, circle
Hgcircularslider
A custom reusable circular / progress slider control for iOS application.
Stars: ✭ 2,240 (+17130.77%)
Mutual labels:  progress, progress-bar, circle
Linearprogressbar
Material Linear Progress Bar for your iOS apps
Stars: ✭ 131 (+907.69%)
Mutual labels:  progress, progress-bar
Progress
基于Vue 2.x 的进度条,支持直线和环形(顺时针和逆时针)。Vue-based progress component, support line and circle(clockwise or couterclockwise).
Stars: ✭ 130 (+900%)
Mutual labels:  progress, circle
React Native Circular Progress
React Native component for creating animated, circular progress with ReactART
Stars: ✭ 1,901 (+14523.08%)
Mutual labels:  progress, circle
React Nprogress
⌛️ A React primitive for building slim progress bars.
Stars: ✭ 173 (+1230.77%)
Mutual labels:  progress, progress-bar
Terminal layout
The project help you to quickly build layouts in terminal,cross-platform(一个跨平台的命令行ui布局工具)
Stars: ✭ 98 (+653.85%)
Mutual labels:  progress, progress-bar
Vue Wait
Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
Stars: ✭ 1,869 (+14276.92%)
Mutual labels:  progress, progress-bar
ALProgressView
Animated and fully customizable progress view with 2 styles: ring and bar.
Stars: ✭ 72 (+453.85%)
Mutual labels:  progress-bar, circle
Progress
A PHP package to determine steps and progress.
Stars: ✭ 197 (+1415.38%)
Mutual labels:  progress, progress-bar
Ruby Progressbar
Ruby/ProgressBar is a text progress bar library for Ruby.
Stars: ✭ 1,378 (+10500%)
Mutual labels:  progress, progress-bar
Radialprogressbar
Radial ProgressBar inspired by Apple Watch OS. It is highly Customisable
Stars: ✭ 141 (+984.62%)
Mutual labels:  progress, progress-bar
Vue Ellipse Progress
A Vue.js component to create beautiful animated circular progress bars
Stars: ✭ 101 (+676.92%)
Mutual labels:  progress, circle
Ascii Progress
🍓 Ascii progress-bar(s) in the terminal.
Stars: ✭ 167 (+1184.62%)
Mutual labels:  progress, progress-bar
Alive Progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
Stars: ✭ 2,940 (+22515.38%)
Mutual labels:  progress, progress-bar
react-sweet-progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 250 (+1823.08%)
Mutual labels:  progress, progress-bar
Xlcircleprogress
iOS 圆环进度指示器
Stars: ✭ 93 (+615.38%)
Mutual labels:  progress, circle
Delayedprogress
ProgressDialog that waits a minimum time to be dismissed before showing. Once visible, the ProgressDialog will be visible for a minimum amount of time to avoid "flashes" in the UI.
Stars: ✭ 95 (+630.77%)
Mutual labels:  progress, progress-bar

ToxProgress

test

Click here for the live version

Introduction

This library was made to easily create animated radial progress bars.

The goal of these animated radial progress bars is to add a stylized way to show numbers/statistics on your website.

How to use

The way to include a ToxProgressBar to your website is to link the tox-progress.js and tox-progress.css files on your web page. You can then add a ToxProgressBar by using this tag:

<div class="tox-progress" data-size="180" data-thickness="12" data-color="#229922" data-background="#ffffff" data-progress="25" data-speed="500"></div>

The div needs to have the class="tox-progress". This makes the div visible to the library. There also are a few properties we can see:

  • Size: The diameter of the radial progress bar circle.
  • Thickness: This is the thickness of the radial progress bar.
  • Color: The foreground color. This is the color the radial progress bar will be.
  • Background: The background color. This should to be the same color as your website. You can also use another color to create some interesting effects
  • Progress: A number from 0-100 which marks the progress of the radial progress bar.
  • Speed: The speed in ms in which the animation would do a full circle.

There is also the possibility to add content inside the radial progress bar. Add this div inside the class="tox-progress" div:

<div class="tox-progress" data-size="180" data-thickness="12" data-color="#229922" data-background="#ffffff" data-progress="25" data-speed="500">
     <div class="tox-progress-content" data-vcenter="true">
         //Add content here
     </div>
 </div>

So first add the class="tox-progress-content" to the div. If you want this content vertically centered add the data-vcenter="true" property. You can add any content you want in here.

Then include the following code on your website:

<script type="text/javascript">
    document.addEventListener('DOMContentLoaded', function () {
        ToxProgress.create();
        ToxProgress.animate();
    });
</script>

The ToxProgress.create(); function generates everything needed. It has to be called before the ToxProgress.animate(); function. The ToxProgress.animate(); function can be called whenever you want.

If you want to reset the animation, call ToxProgress.create(); before you call ToxProgress.animate(); again.

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].