adding transitionn in css code example Example: Using CSS transitions div { transition: <property> <duration> <timing-function> <delay>; }