Skip to content

Commit

Permalink
fix circular progress issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismcv committed Nov 2, 2015
1 parent ac357ec commit 3f6d31a
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/circular-progress.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,27 +99,26 @@ const CircularProgress = React.createClass({
if (!this.isMounted()) return;
if (this.props.mode !== "indeterminate") return;

wrapper.style.transform = null;
wrapper.style.transform = "rotate(0deg)";
AutoPrefix.set(wrapper.style, 'transform', null);
AutoPrefix.set(wrapper.style, 'transform', "rotate(0deg)");
wrapper.style.transitionDuration = "0ms";
wrapper.style = AutoPrefix.all(wrapper.style);


setTimeout(() => {
wrapper.style.transform = "rotate(1800deg)";
AutoPrefix.set(wrapper.style, 'transform', "rotate(1800deg)");
wrapper.style.transitionDuration = "10s";
wrapper.style.transitionTimingFunction = "linear";
wrapper.style = AutoPrefix.all(wrapper.style);
AutoPrefix.set(wrapper.style, 'transitionTimingFunction', "linear");
}, 50);
},

getDefaultProps() {
return {
mode: "indeterminate",
value: 0,
min: 0,
max: 100,
size: 1,
};
return {
mode: "indeterminate",
value: 0,
min: 0,
max: 100,
size: 1,
};
},

getTheme() {
Expand Down

0 comments on commit 3f6d31a

Please sign in to comment.