Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 4 years ago

Interactive pricing slider w/ custom filled in area + thumb

Tyson W•305
@Tyson-Wellings
A solution to the Interactive pricing component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Tyson W's solution.

Join 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License