Skip to content
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

Progress Bar, not animating on inactive tab. #298

Open
herryG opened this issue Jun 10, 2022 · 0 comments
Open

Progress Bar, not animating on inactive tab. #298

herryG opened this issue Jun 10, 2022 · 0 comments

Comments

@herryG
Copy link

herryG commented Jun 10, 2022

I have progress bar and I am using signalR to trigger animation, It workes perfectly when I am on the tab but when the tab is inavtive it pauses the animation.

var bar = new ProgressBar.Line("#su_progress-spinner", {
strokeWidth: 4,
easing: 'easeInOut',
duration: 1400,
color: '#1dc9b7',
trailColor: '#eee',
trailWidth: 1,
svgStyle: {width: '100%', height: '100%'},
text: {
style: {
// Text color.
// Default: same as stroke color (options.color)
color: '#999',
position: 'absolute',
right: '0',
top: '30px',
padding: 0,
margin: 0,
transform: null
},
autoStyleContainer: false
},
from: {color: '#1dc9b7'},
to: {color: '#1dc9b7'},
step: (state, bar) => {
bar.setText(Math.round(bar.value() * 100) + ' %');
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant