Implement css transition for search box

same as above