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

Possible to use a gradient as background for the slider? #291

Open
Fuxx117 opened this issue May 8, 2023 · 1 comment
Open

Possible to use a gradient as background for the slider? #291

Fuxx117 opened this issue May 8, 2023 · 1 comment

Comments

@Fuxx117
Copy link

Fuxx117 commented May 8, 2023

Hey guys,

is it possible to use a gradient as the background for the slider? We always have the sliderTrack-0 and the sliderTrack-1. But with this i cant achieve the one im searching for. I already use the slider on my project, so i dont want to implement another slider. Are there any suggestions? Below you can see a screenshot what im trying to achieve.

123

Thanks in advance.

@moloko
Copy link
Contributor

moloko commented Jun 6, 2023

you just do something like:

.sliderTrack-0 {
    background: linear-gradient(90deg, rgb(246, 192, 3) 0%, rgb(255, 255, 255) 100%);
}
.sliderTrack-1 {
    background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(118, 244, 246) 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

2 participants