add transitions to css