Implement css transition for search box