All Projects → jacoborus → Nanobar

jacoborus / Nanobar

Licence: mit
Very lightweight progress bars. No jQuery

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nanobar

yolov5 deepsort tensorrt cpp
This repo is a C++ version of yolov5_deepsort_tensorrt. Packing all C++ programs into .so files, using Python script to call C++ programs further.
Stars: ✭ 21 (-99.26%)
Mutual labels:  minimalist
MuditaOS
Mobile operating system based on FreeRTOS™ optimized for E Ink displays - developed for Mudita Pure minimalist phone
Stars: ✭ 349 (-87.72%)
Mutual labels:  minimalist
Examples Win32
Shows how to use Win32 controls by programming code (c++17).
Stars: ✭ 22 (-99.23%)
Mutual labels:  progressbar
angular-progress-bar
This component allow you to easy incorporate progress-bar to angular/ionic project, providing binding and color options
Stars: ✭ 26 (-99.09%)
Mutual labels:  progressbar
Examples Gtkmm
Shows how to use Gtkmm controls by programming code (c++17).
Stars: ✭ 23 (-99.19%)
Mutual labels:  progressbar
VHProgressBar
Vartical and Horizontal ProgressBar
Stars: ✭ 23 (-99.19%)
Mutual labels:  progressbar
DockProgressBar
Dock progress bar on Mac OS X
Stars: ✭ 18 (-99.37%)
Mutual labels:  progressbar
Focus Beamertheme
Focus: a minimalist presentation theme for LaTeX Beamer.
Stars: ✭ 263 (-90.75%)
Mutual labels:  minimalist
micro-rpg-catalog
A bunch of resources for micro-mini RPG systems
Stars: ✭ 98 (-96.55%)
Mutual labels:  minimalist
svelte-progressbar
A multiseries, SVG progressbar component made with Svelte
Stars: ✭ 85 (-97.01%)
Mutual labels:  progressbar
LineProgressbar
A light weight jquery progressbar plugin
Stars: ✭ 34 (-98.8%)
Mutual labels:  progressbar
castget
A simple, command-line based RSS enclosure downloader, primarily intended for automatic, unattended downloading of podcasts.
Stars: ✭ 76 (-97.33%)
Mutual labels:  minimalist
concrete.css
A simple and to the point classless CSS framework
Stars: ✭ 95 (-96.66%)
Mutual labels:  minimalist
kvm-host
A minimalist type 2 hypervisor using Linux Kernel Virtual Machine (KVM)
Stars: ✭ 60 (-97.89%)
Mutual labels:  minimalist
Youtube-Pagination-ProgressBar
Youtube app uses a nice ProgressBar for pagiantion.The ProgressBar goes down using transition and then dissapear when the process ends,so I created a Custom ProgresBar as youtube app has.
Stars: ✭ 25 (-99.12%)
Mutual labels:  progressbar
milligram-stylus
A minimalist CSS framework on Stylus version.
Stars: ✭ 19 (-99.33%)
Mutual labels:  minimalist
ffmpeg-progressbar-cli
A colored progress bar for FFmpeg.
Stars: ✭ 140 (-95.08%)
Mutual labels:  progressbar
Tonic
A Low Profile Component Framework. Stable, Minimal, Auditable, and Build-Tool-Free.
Stars: ✭ 265 (-90.68%)
Mutual labels:  minimalist
Circularprogressbar
A subclass of {android.view.View} class for creating a custom circular progressBar
Stars: ✭ 255 (-91.03%)
Mutual labels:  progressbar
MiniValine
A simple and minimalist comment system.
Stars: ✭ 30 (-98.94%)
Mutual labels:  minimalist

nanobar

Very lightweight progress bars (~699 bytes gzipped).

Compatibility: iE7+ and the rest of the world

npm version Bower version

Demo

See nanobar.jacoborus.codes

Installation

Download and extract the latest release or install with package manager:

Bower:

$ bower install nanobar

npm:

$ npm install nanobar

Usage

Load

Link nanobar.js from your html file

<script src="path/to/nanobar.min.js"></script>

or require it:

var Nanobar = require('path/to/nanobar');

Generate progressbar

var nanobar = new Nanobar( options );

options

  • id <String>: (optional) id for nanobar div
  • classname <String>: (optional) class for nanobar div
  • target <DOM Element>: (optional) Where to put the progress bar, nanobar will be fixed to top of document if no target is passed

Move bar

Resize the bar with nanobar.go(percentage)

arguments

  • percentage <Number> : percentage width of nanobar

Example

Create bar

var options = {
	classname: 'my-class',
  id: 'my-id',
	target: document.getElementById('myDivId')
};

var nanobar = new Nanobar( options );

//move bar
nanobar.go( 30 ); // size bar 30%
nanobar.go( 76 ); // size bar 76%

// size bar 100% and and finish
nanobar.go(100);

Customize bars

Nanobar injects a style tag in your HTML head. Bar divs has class .bar, and its containers .nanobar, so you can overwrite its values.

Default css:

.nanobar {
  width: 100%;
  height: 4px;
  z-index: 9999;
  top:0
}
.bar {
  width: 0;
  height: 100%;
  transition: height .3s;
  background:#000;
}

You should know what to do with that ;)




© 2016 jacoborus - Released under MIT License

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