GithubHelp home page GithubHelp logo

douglas-ds / progress-tracker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nigelotoole/progress-tracker

0.0 1.0 0.0 1.35 MB

A HTML component to illustrate the steps in a multi step process e.g. a multi step form, a timeline or a quiz.

Home Page: http://nigelotoole.github.io/progress-tracker/

License: MIT License

JavaScript 4.42% CSS 27.30% HTML 40.57% SCSS 27.70%

progress-tracker's Introduction

SASS Progress Tracker

A HTML component to illustrate the steps in a multi step process e.g. a multi step form, a timeline or a quiz.

Installation

$ npm install progress-tracker --save

Import

After installation you can import it into your Sass files with the statement below.

@import "node_modules/progress-tracker/src/styles/progress-tracker.scss";

The JS that is part of this site is just for demonstration purposes, add your own JS as needed to toggle the classes for the step states.

Markup

Follow the HTML code example below for basic usage; each demo sets the first two steps as complete, the third step as active and the last two steps as inactive.

For additional styles add modifier classes and additional markup as needed in the examples below. You can add multiple modifier classes to achieve additional styles that those shown below.

<ul class="progress-tracker">
  <li class="progress-step is-complete">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step is-complete">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step is-active">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step">
    <div class="progress-marker"></div>
  </li>
</ul>

Demo site

Clone or download from Github.

    $ npm install
    $ gulp serve

License

MIT © Nigel O Toole

progress-tracker's People

Contributors

nigelotoole avatar dependabot[bot] avatar

Watchers

James Cloos 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.