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 gradients are hard to create #3678

Open
Saucistophe opened this issue Sep 9, 2024 · 0 comments
Open

Progress bar gradients are hard to create #3678

Saucistophe opened this issue Sep 9, 2024 · 0 comments

Comments

@Saucistophe
Copy link

The progress bar is animated using a transform: scaleX property.
This means that any styling that takes width into account is garbled. Let's say I wanted to create a rainbow, its gradient, even if spread over 100vw, is compressed over the current width of the bar:
image

Whereas using div width, I can either use the bar's width or the viewer's width as reference:

image

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