-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstyle.css
More file actions
45 lines (39 loc) · 877 Bytes
/
style.css
File metadata and controls
45 lines (39 loc) · 877 Bytes
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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
text-align: center;
overflow: hidden;
background-color: rgb(165, 85, 240);
}
.fa-heart {
color: red;
}
h2,
p {
margin: 15px;
color: white;
}
.img_block {
height: 440px;
width: 330px;
background: url('https://images.unsplash.com/photo-1548437983-5d3c209764a1?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=375&q=80');
margin: auto;
cursor: pointer;
max-width: 100%;
position: relative;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
.img_block .fa-heart {
position: absolute;
animation: grow 0.6s linear;
transform: translate(-50%, -50%) scale(0);
}
@keyframes grow {
to {
transform: translate(-50%, -50%) scale(10);
opacity: 0;
}
}