Add CSS transitions.