Changing transform-origin to top center will make the animation rotate from the button. a