-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
56 lines (50 loc) · 878 Bytes
/
styles.css
File metadata and controls
56 lines (50 loc) · 878 Bytes
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
* {
font-family:Arial, Helvetica, sans-serif
}
body{
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.card {
width: 200px;
height: 260px;
background: black;
position: relative;
display: flex;
place-content: center;
place-items: center;
overflow: hidden;
border-radius: 12px;
}
.card h1 {
color: white;
z-index: 1;
font-size: 2rem;
text-transform: uppercase;
}
.card::before{
content: '';
position: absolute;
width: 160px;
background-image: linear-gradient(90deg, #CB4DEB, #F9F254 );
height: 140%;
animation: rotateBgImg 5s linear infinite;
transition: all 0.3s linear;
}
@keyframes rotateBgImg {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.card::after{
content: '';
position: absolute;
background: black;
inset: 4px;
border-radius: 12px;
}