HTML CSS examples for CSS:Quiz
Set the transition of the <div> element to have a "0.5" second delay before starting.
<!DOCTYPE html> <html> <head> <style> div {<!--from ww w .j a v a2s. c o m--> width: 100px; height: 100px; background: red; transition: width 2s; transition-delay: 0.5s; } div:hover { width: 300px; } </style> </head> <body> <div></div> <p>Hover over the div element above.</p> </body> </html>