Implement css transition for search box

let's avoid styling with ids because they can cause specificity issues down the line