HTML CSS examples for CSS:Quiz
Set transition of width for the <div> element to have: "2" second duration, "ease-in-out" speed curve, and a "0.5" second delay before starting.
<!DOCTYPE html> <html> <head> <style> div {<!--from w ww . ja v a2 s. c om--> width: 100px; height: 100px; background: red; transition: width 2s ease-in-out 0.5s; } div:hover { width: 400px; } </style> </head> <body> <div></div> <p>Hover over the div element above.</p> </body> </html>