-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1.html
121 lines (107 loc) · 2.35 KB
/
1.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=
, initial-scale=1.0">
<title>Document</title>
<style>
/* Colors */
:root {
--color-primary-white: rgb(240, 240, 240);
}
main {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 50px;
font-family: 'Roboto', sans-serif;
}
.card {
width: 24rem;
height: 36rem;
border-radius: 10px;
overflow: hidden;
cursor: pointer;
position: relative;
color: var(--color-primary-white);
box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
}
.card img {
position: absolute;
object-fit: cover;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0.9;
transition: opacity .2s ease-out;
}
.card h2 {
position: absolute;
inset: auto auto 30px 30px;
margin: 0;
transition: inset .3s .3s ease-out;
font-family: 'Roboto Condensed', sans-serif;
font-weight: normal;
text-transform: uppercase;
}
.card p,
.card a {
position: absolute;
opacity: 0;
max-width: 80%;
transition: opacity .3s ease-out;
}
.card p {
inset: auto auto 80px 30px;
}
.card a {
inset: auto auto 40px 30px;
color: inherit;
text-decoration: none;
}
.card:hover h2 {
inset: auto auto 220px 30px;
transition: inset .3s ease-out;
}
.card:hover p,
.card:hover a {
opacity: 1;
transition: opacity .5s .1s ease-in;
}
.card:hover img {
transition: opacity .3s ease-in;
opacity: 1;
}
.material-symbols-outlined {
vertical-align: middle;
}
</style>
</head>
<body>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed&family=Roboto:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<main>
<div class = "card">
<img src="" alt="">
<div class="card-content">
<h2>
Name
</h2>
<p>
</p>
<a href="#" class="button">
Find out more
<span class="material-symbols-outlined">
arrow_right_alt
</span>
</a>
</div>
</div>
</main>
</body>
</html>