updated to css transitions