-
Notifications
You must be signed in to change notification settings - Fork 1
/
transitions.html
57 lines (54 loc) · 1.44 KB
/
transitions.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>transitions</title>
<style>
.container{
box-sizing: border-box;
border: 9px solid purple;
height: 600px;
width: 1200px;
background-color: beige;
}
.box{
height: 200px;
width: 200px;
background-color: palevioletred;
margin: 5px;
border: 4px solid rgb(198, 64, 109);
transition-property: all;
transition-duration: 0.2s;
transition-timing-function: linear;
}
.box:hover{
border-radius: 150px;
height: 300px;
width: 300px;
}
.element{
background-color: palegreen;
height: 100px;
width: 100px;
border: 4px solid rgb(67, 167, 67);
margin: 5px;
transition-property: all;
transition-duration: 0.2s;
transition-timing-function: linear;
}
.element:hover{
width: 1160px;
height: 340px;
border-top-right-radius: 100px;
border-bottom-right-radius: 100px;
}
</style>
</head>
<body>
<div class="container">
<div class="box"></div>
<div class="element"></div>
</div>
</body>
</html>