cotag / orbicular

A CSS based circular progress bar for AngularJS
MIT License
47 stars 15 forks source link

Changing Color #27

Open henrik-d opened 9 years ago

henrik-d commented 9 years ago

Hey, thanks for the great project. It would be cool, if one could change the color of the bar at runtime :)

stakach commented 9 years ago

You can with CSS and classes. Have to look at the resulting element and the elements you want to modify, shouldn't be too difficult

@import "../../bower_components/orbicular/orbicular.scss";
@include orbicular();
orbicular.changeColor {
  div.co-fill {
    background-color: blue;
  }
}

Now you can add / remove the change color class using JS.