3 Polymer('paper-progress', {
6 * The number that represents the current secondary progress.
8 * @attribute secondaryProgress
15 * Use an indeterminate progress indicator.
17 * @attribute indeterminate
26 'value secondaryProgress min max indeterminate': 'update'
31 this.secondaryProgress = this.clampValue(this.secondaryProgress);
32 this.secondaryRatio = this.calcRatio(this.secondaryProgress) * 100;
34 // If we use attribute/class binding, the animation sometimes doesn't translate properly
35 // on Safari 7.1. So instead, we toggle the class here in the update method.
36 this.$.activeProgress.classList.toggle('indeterminate', this.indeterminate);
39 transformProgress: function(progress, ratio) {
40 var transform = 'scaleX(' + (ratio / 100) + ')';
41 progress.style.transform = progress.style.webkitTransform = transform;
44 ratioChanged: function() {
45 this.transformProgress(this.$.activeProgress, this.ratio);
48 secondaryRatioChanged: function() {
49 this.transformProgress(this.$.secondaryProgress, this.secondaryRatio);