Implemented a button action for the layout's rotation transform.