Interactive pricing slider w/ custom filled in area + thumb
Design comparison
Solution retrospective
Hey everyone!
For this project I became far more familiar with the range input! With vanilla javascript I could not add eventlisteners to the thumb. I attempted to take away all aesthetics of the original thumb and place a custom div over it to act as the thumb however this took away the functionality of the original slider thumb.
The issue became that the thumb had to be placed in front of the div to maintain functionality. I attempted to hard code the functionality of the slider into the div however this proved too complicated for such a small feature (adding mouseover and mousedown event listeners to the thumb for small aesthetic changes). Has anybody been able to find a reasonable way to add the desired behaviours to the thumb without interfering with the slider?
Community feedback
- @ManuelD10Posted over 3 years ago
Wow!! Tyson, your solution is great, you add an animation in the slider bar, that's a beautiful detail, with your permission I'll look at your code for reference, and again EXCELLENT solution !!
0
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