HTML CSS examples for CSS:Quiz
Set that the transition of the <div> element should have a "ease-in-out" speed curve.
<!DOCTYPE html> <html> <head> <style> div {<!-- w ww . j a v a 2 s. c o m--> width: 100px; height: 100px; background: red; transition: width 2s; transition-timing-function: ease-in-out; } div:hover { width: 300px; } </style> </head> <body> <div></div> <p>Hover over the div element above.</p> </body> </html>