-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: Vertical Range Slider #1483
Comments
There's also a much easier CSS only trick I just found out about which is using transforms. |
Might be the better approach. But will wait on your input. |
I'm not sure about this one. A vertical range slider is not a common thing and there's no such thing in HTML... Here's a quick example to fit it in a div: <div class="m-10 w-6 h-40 relative bg-red-200">
<input type="range" min="0" max="100" value="40" class="range w-40 -rotate-90 origin-left absolute -bottom-3 left-3" />
</div> Let me know if you have any questions. |
It kinda is now... https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_writing_modes/Vertical_controls#range_sliders_meters_and_progress_bars . I'll give it a crack, I guess! |
@TheBrenny Interesting! |
It'd be great if we had a standardized vertical range slider. I know this is rather tricky to do, but aren't framework there for this. :)
Here's a cross browser approach which should also be helpful when ignoring the JS wrap:
https://dev.to/konnorrogers/creating-a-vertical-slider-using-input-typerange-1pen
What do you think?
The text was updated successfully, but these errors were encountered: