|
@@ -0,0 +1,31 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Document</title>
|
|
|
+ <style>
|
|
|
+ .box{
|
|
|
+ width: 200px;
|
|
|
+ height: 50px;
|
|
|
+ background-color: red;
|
|
|
+ /* transition:all 1s; */
|
|
|
+ /* transition-property: width, height; */
|
|
|
+ transition-property: all;
|
|
|
+ transition-duration: 0.5s;
|
|
|
+ /* transition-timing-function: linear; */
|
|
|
+ transition-timing-function: ease-in-out;
|
|
|
+ transition-delay: 1s;
|
|
|
+
|
|
|
+ }
|
|
|
+ .box:hover{
|
|
|
+ width: 400px;
|
|
|
+ height: 100px;
|
|
|
+ background-color: blue;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <div class="box"></div>
|
|
|
+</body>
|
|
|
+</html>
|