@crsimpson5
Posted
Hey Eileen, great job on your solution! Your code looks great--nice and clean.
One small change you could make is replacing the event listener on the slider from change
to input
. That way, the event is fired while the slider is being dragged, and the graphics/data will update instantly. The change
event only fires when the input is committed, which in this case is releasing the mouse button. It's a tiny change, but it makes a big difference!
Here's the MDN link to read more: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
Marked as helpful
@Eileenpk
Posted
@crsimpson5 good suggestion I'll make that change 🙂