Giter Club home page Giter Club logo

percentify's Introduction

P e r c e n t i f y

Pure CSS3 Percentage Circle with icons and custom content support

Run Examples

Download repository

$ git clone https://github.com/pradeep1991singh/percentify.git

Run

$ cd percentify
$ yarn install
$ npm run start

Usage

Copy/Paste dist folder in your project And then add css file in head tag of html file

<link rel="stylesheet" href="dist/percentify.css">

Then add Percentage Circle template

<!-- 	With Android Icon -->
<div class="percentify p33 cfs100 orange active">
	<span class="android-icon ifs25"></span>
	<div class="slice">
		<div class="bar"></div>
		<div class="fill"></div>
	</div>
</div>

<!-- 	With Custom text -->
<div class="percentify p80 cfs200 thinner hover active">
	<span class="text ifs50">80%</span>
	<div class="slice">
		<div class="bar"></div>
		<div class="fill"></div>
	</div>
</div>

<!-- 	Template details 

	percentify: will define percentage main element
	p33: percentage of circle need to fill i.e. 33%
	cfs100: circle size i.e. 100px, range 12px-500px
	orange: orange theme
	thinner: border size, available thin, thinner or by default normal
	hover: for hover effects
	active: make circle inner content active 
					i.e. as theme is orange it will make inner content color orange
	android-icon: android icon class name
	ifs25: icon size i.e. 25px, range 12px-500px
	text: custom text class name
-->

Percentage Counter Circle Example

<script src="/dist/percentage-counter.js"></script>
<script src="/dist/scripts/percentage-counter.js"></script>
<div class="percentify p0 cfs400 green">
	<span class="text ifs100">0%</span>
	<div class="slice">
		<div class="bar"></div>
		<div class="fill"></div>
	</div>
</div>
<label for="example-android-icon" class="label label-example">
	<code>Percentage Progress Circle</code>
</label>
<script>
	window.onload = function () {
		percentify.percentageCounter({});
	};
</script>

Demo

Demo Examples

percentify's People

Contributors

pradeep1991singh avatar

Watchers

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