Implement css transition for search box

lets give this a class also so that we don't have to style using the id