css code for smooth transition of block code example Example: css opacity transition div { transition: opacity seconds; }