-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
54 lines (47 loc) · 968 Bytes
/
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-width: 100vh;
background: #222;
}
.container{
display: grid;
grid-template-columns: repeat(4,150px);
grid-gap: 10px;
margin-top: 35px;
}
.container .card{
position: relative;
width: 150px;
height: 150px;
background: rgba(45, 45, 45, 1);
overflow: hidden;
/* background: white; */
}
.container .card::before{
content: '';
position: absolute;
top: var(--y);
left: var(--x);
transform: translate(-50%,-50%);
background: radial-gradient(var(--clr), transparent, transparent);
opacity: 0;
width: 300px;
height: 300px;
transition: 0.5s, top 0s,left 0s;
}
.container .card:hover::before{
opacity: 1;
}
.container .card::after{
content: '';
position: absolute;
inset: 2px;
background: rgba(45, 45, 45, 0.9);
}