/click-and-drag

Day 2⃣7⃣ of #javascript30. Created a click and drag to scroll through a library. Used several event listeners (mousedown, mouseleave, mouseup and mousemove) to add and remove a classList. Also multiplied the "walk" by 2 to make it scroll smoother.

Primary LanguageHTML

Stargazers