-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
118 lines (105 loc) · 2.01 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
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
117
118
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
background: linear-gradient(to bottom, #bea2e7 0%, #86b7e7 100%);
}
.wrapper {
display: flex;
justify-content: center;
align-items: center;
width: 50%;
height: 60vh;
}
.wrapper .card {
display: flex;
justify-content: space-between;
align-items: center;
position: absolute;
width: 430px;
padding: 20px;
background: #fff;
border-radius: 100px 20px 20px 100px;
pointer-events: none;
opacity: 0;
animation: animate 15s linear infinite;
animation-delay: calc(
3s * var(--delay)
); /* Produce Sliding Effect on each card*/
}
.wrapper:hover .card {
animation-play-state: paused;
}
.wrapper .card:last-child {
animation-delay: calc(-3s * var(--delay));
}
@keyframes animate {
0% {
opacity: 0;
transform: translateY(100%) scale(0.5);
}
5%,
20% {
opacity: 0.4;
transform: translateY(100%) scale(0.7);
}
25%,
40% {
opacity: 1;
pointer-events: auto;
transform: translateY(0%) scale(1);
}
45%,
60% {
opacity: 0.4;
transform: translateY(-100%) scale(0.7);
}
65%,
100% {
opacity: 0;
transform: translateY(-100%) scale(0.5);
}
}
.card .content {
display: flex;
align-items: center;
}
.wrapper .card .img {
position: absolute;
left: -5px;
width: 90px;
height: 90px;
padding: 5px;
background: #fff;
border-radius: 50%;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}
.card .img img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
}
.card .details {
margin-left: 80px;
}
.details span {
font-size: 18px;
font-weight: 600;
}
.card a {
padding: 7px 18px;
text-decoration: none;
border-radius: 25px;
color: #fff;
background: linear-gradient(to bottom, #bea2e7 0%, #86b7e7 100%);
}