-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
64 lines (51 loc) · 1.33 KB
/
index.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
<!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>
body {
display: grid;
place-items: center;
block-size: 100dvh;
}
.container {
position: relative;
display: inline-block;
}
img:first-of-type {
position: absolute;
inset-inline-start: 0;
inset-block-start: 20px;
transition: all 0.3s ease;
}
.container:hover img:first-of-type {
translate: -18px 0;
}
img:nth-of-type(2) {
filter: grayscale(1);
transition: all 1s ease;
}
.container:hover img:nth-of-type(2) {
filter: grayscale(0);
}
img:last-of-type {
position: absolute;
inset-inline-end: 20px;
inset-block-end: 20px;
transition: all 0.6s ease;
}
.container:hover img:last-of-type {
rotate: 360deg;
}
</style>
</head>
<body>
<div class="container">
<img src="./Group 12.svg" alt="">
<img src="./Rectangle 138.png" alt="" height="300px">
<img src="./Group 35.svg" alt="">
</div>
</body>
</html>