Add transitions to css