-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathstyle.css
91 lines (86 loc) · 1.61 KB
/
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
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
*{
box-sizing: border-box;
}
body{
font-family: 'Roboto', 'sans-serif';
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
/* overflow: hidden; */
margin: 0;
}
.bg{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
width: 100vw;
background-color: #0b1522;
z-index: 999;
}
.heart{
height: 2rem;
width: 2rem;
background: #f20044;
position: relative;
transform: rotate(-45deg);
box-shadow: -10px 20px 90px #f20044;
animation: heart .6s linear infinite;
}
.heart::before{
content: '';
position: absolute;
height: 2rem;
width: 2em;
background: #f20044;
top: -50%;
border-radius: 50px;
box-shadow: -10px 20px 90px #f20044;
}
.heart::after{
content: '';
position: absolute;
height: 2rem;
width: 2rem;
background: #f20044;
right: -50%;
border-radius: 50px;
box-shadow: -10px 20px 90px #f20044;
}
@keyframes heart{
0%{
transform: rotate(-45deg) scale(1.2);
}
80%{
transform: rotate(-45deg) scale(1.0);
}
100%{
transform: rotate(-45deg) scale(.8);
}
}
.fade{
opacity: 0;
animation: fade 2s;
animation-iteration-count: 1;
}
@keyframes fade{
0%{
opacity: 1;
}
50%{
opacity: .4;
}
90%{
opacity: .1;
}
}
.content{
position: absolute;
width: 100%;
height: 100vh;
background: url("https://source.unsplash.com/random/1000x1000") center no-repeat;
background-size: cover;
}