rect animate by click