converted jquery animations to css transitions