Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 2.48 KB

README.md

File metadata and controls

37 lines (26 loc) · 2.48 KB

JLDN Meters v3.0.1

GitHub issues GitHub forks GitHub stars GitHub license GitHub repo size GitHub all releases

Description

The code contained in this package is a result of searching for a way to implement a meter with a gradient background, but with a reveal based on a set inner width. The result is animated, layered HTML elements designed to mimick the html meter / progress tag.

The CSS code and HTML layout provided has been edited from its original form. Both the CSS and HTML layout was designed by Chris Coyier @ CSS-Tricks.

These bars have been designed to 'reveal' a gradient that is hidden. The idea came about while working with a strength meter. The built HTML meter tag has the not the capability to reveal a section of the bar, nor does it allow full gradient spanning while having a visual indicator on the meter. These bars consist of 4 layers. Layer one contains a full spanning gradient, from red to green. Layer two consists of a striped layer with transparency. Layer three consists of cover, that reveals the gradients below. The last layer is a text layer that can always be seen.

Features

  • Meter length control
  • Meter height (thickness) control
  • Meter background color control
  • Meter shadow control
  • Font size control
  • Animation speed control
  • Reveal width control
  • Candystripe color control
  • Font color control

Instructions

All instructions and usage information can be found @ JLDN.org or Github IO.

The image below provides samples of the current meter styles in place. JLDN Meter Examples

Todo