diff --git a/demo/demo.jsx b/demo/demo.jsx
index 72afa5d..f5a2249 100644
--- a/demo/demo.jsx
+++ b/demo/demo.jsx
@@ -12,7 +12,7 @@ const Config = ({ name, example, description, children }) => (
{name}{example ? `e.g. ${example}` : null}
{description}
-
@@ -124,7 +124,12 @@ class Demo extends React.Component {
name="initialAnimation"
example="false"
description="Toggle whether to animate progress starting from 0% on initial mount."
- />
+ >
+
+
{
- this.setState({
- percentage: this.props.percentage,
+ window.requestAnimationFrame(() => {
+ this.setState({
+ percentage: this.props.percentage,
+ });
});
- }, 10);
+ }, 0);
}
}