#48 Implemented animation for setFocus method