GithubHelp home page GithubHelp logo

lrnwebcomponents / circle-progress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from startpolymer/s-circle-progress

0.0 4.0 0.0 9 KB

Polymer-based web component displaying a circular progress bar.

HTML 100.00%

circle-progress's Introduction

Published on webcomponents.org

<circle-progress>

Polymer-based web component displaying a circular progress bar.

Inspired by element <s-circle-progress>.

Demo

Full demo

Usage

<circle-progress value="6" max="10">
  60%
</circle-progress>

<circle-progress value="30" angle="90" stroke-width="8">
  <b>30s</b>
</circle-progress>

Styling

The following custom properties and mixins are available for styling:

Custom property Description Default
--circle-progress-bg-stroke-color The background color of the circle --paper-grey-100
--circle-progress-stroke-color The stroke color of the circle --accent-color
--circle-progress-stroke-linecap The stroke-linecap svg attribute of the circle round
--circle-progress-width The width of the circle 64px
--circle-progress-height The height of the circle 64px

Installation

bower i circle-progress -S

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.

Viewing Your Application

$ polymer serve

Building Your Application

$ polymer build

This will create a build/ folder with bundled/ and unbundled/ sub-folders containing a bundled (Vulcanized) and unbundled builds, both run through HTML, CSS, and JS optimizers.

You can serve the built versions by giving polymer serve a folder to serve from:

$ polymer serve build/bundled

Running Tests

$ polymer test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

License

MIT: Shah-Parth/license

circle-progress's People

Contributors

btopro avatar josefjezek avatar shah-parth avatar

Watchers

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