-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
53 lines (47 loc) · 825 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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
.wrapper{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
#heart{
display: inline-block;
margin: 100px;
position: relative;
animation: xx 1000ms linear infinite alternate paused;
}
@keyframes xx{
0%{
transform: scale(1)
}
100%{
transform: scale(1.5)
}
}
#heart>div{
height: 50px;
width: 50px;
position: absolute;
background:red;
}
.bottom{
transform: rotate(45deg);
}
.left{bottom: 100%;
left: -50px;
transform: rotate(45deg) translateX(31px);
border-radius: 50% 0 0 50%;
}
.right{
bottom: 100%;
left: 50px;transform: rotate(45deg) translateY(31px);
border-radius: 50% 50% 0 0;
}
#start{
margin-left: 50px;
}