Design comparison
SolutionDesign
Solution retrospective
I'm just starting to understand manipulating the DOM in JavaScript; so I thought I'd try and manipulate the slider. According to MDN docs, styling the input slider is "Non-standard – don't use in production". To create the gradient, I added a whole load of box-shadows to the ::-webkit-slider-thumb/::-moz-range-thumb (didn't bother with -ms). It works -sort of- but isn't elegant. Anyone have an easier/more elegant solution?
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord