Updated CSS for transitions