-
Notifications
You must be signed in to change notification settings - Fork 0
/
2023_06_01.html
79 lines (77 loc) · 2.19 KB
/
2023_06_01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div{
width: 100px;
height: 50px;
border: 1px solid black;
background-color: yellow;
transition: width 5s, height 5s, border 5s, transform 5s;
-webkit-transition: width 5s, height 5s, border 5s, transform 5s;
}
div:hover {
width: 200px;
height: 100px;
border: 10px solid red;
transform: rotate(180deg);
-webkit-transform: rotate(180deg);
}
.n1{margin-left: 10px;}
.n2{margin-left: 110px;}
.n3{margin-left: 210px;}
.n4{margin-left: 310px;}
</style>
</head>
<body>
<div class="n1">여기가 박스입니다.</div>
<div class="n2">여기가 박스입니다.</div>
<div class="n3">여기가 박스입니다.</div>
<div class="n4">여기가 박스입니다.</div>
</body>
</html> -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div{
width: 50px;
height: 50px;
border: 1px solid black;
background-color: yellow;
text-align: center;
transition: 5s;
}
div#box1:hover{
width: 100px;
background-color: purple;
}
div#box2:hover{
background-color: blue;
transform: translate(100px,0px);
}
div#box3:hover{
transform: scale(1.2,1.2);
background-color: red;
}
div#box4:hover{
transform: rotate(360deg);
background-color: green;
}
</style>
</head>
<body>
<div id="box1"></div>
<div id="box2"></div>
<div id="box3"></div>
<div id="box4"></div>
</body>
</html>