-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
52 lines (50 loc) · 903 Bytes
/
Copy pathstyles.css
File metadata and controls
52 lines (50 loc) · 903 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
46
47
48
49
50
51
52
body {
background-color: #000;
margin: 0;
overflow: hidden;
background-repeat: no-repeat;
height: 100vh;
}
.img-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
}
.img-container:hover #heart {
opacity: 1;
scale: 3;
}
#heart {
opacity: 0;
position: relative;
width: 100px;
height: 90px;
top: 43%;
left: 32%;
/* transform: translate(-50%, -50%); */
transition: all 1s ease;
}
#heart:before,
#heart:after {
position: absolute;
content: "";
left: 50px;
top: 0;
width: 50px;
height: 80px;
background: url("./images/image1.jpg");
background-size: cover;
background-position: center center;
border-radius: 50px 50px 0 0;
transform: rotate(-45deg);
transform-origin: 0 100%;
scale: 1;
}
#heart:after {
left: 0;
transform: rotate(45deg);
transform-origin: 100% 100%;
}