New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Great, but needs control of speed #5
Comments
To control speed one can do the following: addPercent() {
const self = this;
this.setState({
percent: this.state.percent + 1,
});
setTimeout(function(){ self.changeState(); }, 100);
}
changeState() {
this.state.percent <= 99 ? this.addPercent() : this.setState({percent: 100});
} |
|
@ajayk800 Can you give a more complete example? In theory this can work for a css animation in general but this uses stroke-dasharray values and transitions. I don't think it's that simple. |
I did with one CSS line:
|
You can custom Line 15 in e4a262b
|
Thanks for making this, I wish there was control of speed though.
The text was updated successfully, but these errors were encountered: