add transition effect in cs code example Example: Using CSS transitions div { transition: <property> <duration> <timing-function> <delay>; }