add transition to element with css code example Example: Using CSS transitions div { transition: <property> <duration> <timing-function> <delay>; }