Loop Homework
https://glitch.com/edit/#!/sandy-aeolian-barber?path=script.js%3A13%3A0
I had a lot of trouble trying to get the computer to understand and distinguish between down motion and up motion and succeeded at binding the background and the objects color to this but don’t understand how to make the buttons exclusively move it down or up respectively and therefore the colors. I can only manage to get them to invert which is different from returning it to a set state. I attempted multiple approaches but haven’t found something that worked perfectly.














