I\'m trying to implement a bouncing element around the edges of the viewport. I\'ve successfully implemented the bouncing mechanism, but can\'t figure out how to make it rot