-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
53 lines (47 loc) · 871 Bytes
/
style.css
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.heart-square {
width: 300px;
height: 300px;
background-color: red;
position: relative;
transform: rotate(45deg);
box-shadow: -10px 10px 90px red;
animation: heart 0.6s linear infinite;
}
@keyframes heart {
0% {
transform: scale(1.07);
}
80% {
transform: scale(1.0);
}
100% {
transform: scale(0.8);
}
}
.heart-circle {
width: 100%;
height: 100%;
border-radius: 50%;
background-color: red;
box-shadow: -10px -10px 90px red;
transform: rotate(45deg);
position: absolute;
}
.heart-circle:nth-of-type(1) {
top:-50%;
}
.heart-circle:nth-of-type(2) {
left:-50%;
}