Skip to content

Commit

Permalink
[CircularProgress] clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 3, 2015
1 parent 3f6d31a commit 7677be5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/circular-progress.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,13 @@ const CircularProgress = React.createClass({
if (!this.isMounted()) return;
if (this.props.mode !== "indeterminate") return;

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


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

Expand Down

0 comments on commit 7677be5

Please sign in to comment.