add css transitino to form element