123.card {4 position: absolute;5 width: 190px;6 height: 254px;7 border: 4px solid rgba(255, 255, 255, 0.3);8 border-radius: 0.8em;9 display: flex;10 align-items: center;11 justify-content: center;12 cursor: pointer;13 transition: 0.5s;14 top: 50%;15 left: 50%;16 transform: translate(-50%, -50%);17}18.card:hover {19 scale: 1.05;20 rotate: 3deg;21}22.card::after {23 content: '';24 width: 93%;25 height: 95%;26 position: absolute;27 border-radius: 0.7em;28 background-color: rgba(255, 255, 255, 0.1);29 z-index: 0;30}31.shadow {32 width: 100%;33 height: 100%;34 background: linear-gradient(315deg, #03a9f4, #ff0058);35 z-index: -1;36 filter: blur(25px);37}38.txt {39 position: absolute;40 font-weight: 800;41 font-size: 1.6em;42 color: #fff;43}44.card:hover .shadow {45 animation: rotate 3s linear infinite;46}47@keyframes rotate {48 0% {49 rotate: 0deg;50 background: linear-gradient(315deg, #03a9f4, #ff0058);51 }52 50% {53 rotate: 180deg;54 background: linear-gradient(45deg, #ffbc00, #ff0058);55 }56 100% {57 rotate: 360deg;58 background: linear-gradient(315deg, #4dff03, #00d0ff);59 }60}
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
.card {
position: absolute;
width: 190px;
height: 254px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-radius: 0.8em;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: 0.5s;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.card:hover {
scale: 1.05;
rotate: 3deg;
}
.card::after {
content: '';
width: 93%;
height: 95%;
position: absolute;
border-radius: 0.7em;
background-color: rgba(255, 255, 255, 0.1);
z-index: 0;
}
.shadow {
width: 100%;
height: 100%;
background: linear-gradient(315deg, #03a9f4, #ff0058);
z-index: -1;
filter: blur(25px);
}
.txt {
position: absolute;
font-weight: 800;
font-size: 1.6em;
color: #fff;
}
.card:hover .shadow {
animation: rotate 3s linear infinite;
}
@keyframes rotate {
0% {
rotate: 0deg;
background: linear-gradient(315deg, #03a9f4, #ff0058);
}
50% {
rotate: 180deg;
background: linear-gradient(45deg, #ffbc00, #ff0058);
}
100% {
rotate: 360deg;
background: linear-gradient(315deg, #4dff03, #00d0ff);
}
}
You need to sign in before you can write a comment.