-
Notifications
You must be signed in to change notification settings - Fork 1
/
heart.css
116 lines (112 loc) · 1.81 KB
/
heart.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
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
.backdiv{
position: fixed;
top: 0;
left: 0;
padding: 0px;
margin: 0px;
width: 100%;
height: 100%;
background: black;
animation-name: backdiv;
animation-duration: 3s;
animation-iteration-count: 1s;
}
.heart{
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: red;
width: 50px;
height: 50px;
transform: rotate(-45deg);
animation-name: beat;
animation-duration: 3s;
animation-iteration-count: infinite;
}
#newHeart1::before{
content: "";
border-radius: 50%;
background-color: red;
position: absolute;
height: 50px;
width: 50px;
top: -25px;
left: 0px;
}
#newHeart1::after{
content: "";
background-color: red;
border-radius: 50%;
position: absolute;
height: 50px;
width: 50px;
top: 0px;
left: 25px;
}
@keyframes backdiv{
50%{
background-color: pink;
}
}
@keyframes beat{
0% {
transform: scale(1) rotate(-45deg);
}
50% {
transform: scale(0.6) rotate(-45deg);
}
}
/*#newHeart2::before{
content: "";
border-radius: 50%;
background-color: red;
position: absolute;
height: 50px;
width: 50px;
top: 65px;
left: 0px;
}
#newHeart2::after{
content: "";
background-color: red;
border-radius: 50%;
position: absolute;
height: 50px;
width: 50px;
top: 0px;
left: 58px;
}*/
.ball {
border-radius: 50%;
top: 249px;
position: fixed;
width: 50px;
height: 50px;
top: 60%;
animation-name: jump;
animation-duration: 2s;
animation-iteration-count: infinite;
}
#red {
background: red;
left: 25%;
animation-timing-function: linear;
}
#blue {
background: blue;
left: 50%;
animation-timing-function: ease-out;
}
#green {
background: green;
left: 75%;
animation-timing-function: cubic-bezier( 0.311, 0.441, 0.444, 1.649);
}
@keyframes jump{
50%{
top: 10%;
}
}