three elements moving automatically or with key press