Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polymer/paper-progress

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymer/paper-progress

A material design progress bar

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.2K
increased by2.45%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

Demo and API Docs

##<paper-progress>

Material design: Progress & activity

The progress bars are for situations where the percentage completed can be determined. They give users a quick sense of how much longer an operation will take.

Example:

<paper-progress value="10"></paper-progress>

There is also a secondary progress which is useful for displaying intermediate progress, such as the buffer level during a streaming playback progress bar.

Example:

<paper-progress value="10" secondary-progress="30"></paper-progress>

Styling progress bar:

To change the active progress bar color:

paper-progress {
   --paper-progress-active-color: #e91e63;
}

To change the secondary progress bar color:

paper-progress {
  --paper-progress-secondary-color: #f8bbd0;
}

To change the progress bar background color:

paper-progress {
  --paper-progress-container-color: #64ffda;
}

Add the class transiting to a paper-progress to animate the progress bar when the value changed. You can also customize the transition:

paper-progress {
  --paper-progress-transition-duration: 0.08s;
  --paper-progress-transition-timing-function: ease;
  --paper-progress-transition-transition-delay: 0s;
}

The following mixins are available for styling:

Custom propertyDescriptionDefault
--paper-progress-container-colorMixin applied to container--google-grey-300
--paper-progress-transition-durationDuration of the transition0.008s
--paper-progress-transition-timing-functionThe timing function for the transitionease
--paper-progress-transition-delaydelay for the transition0s
--paper-progress-active-colorThe color of the active bar--google-green-500
--paper-progress-secondary-colorThe color of the secondary bar--google-green-100
--paper-progress-disabled-active-colorThe color of the active bar if disabled--google-grey-500
--paper-progress-disabled-secondary-colorThe color of the secondary bar if disabled--google-grey-300
--paper-progress-heightThe height of the progress bar4px

Keywords

FAQs

Package last updated on 02 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc