-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTag-list-effect.css
94 lines (83 loc) · 1.92 KB
/
Tag-list-effect.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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#Tag-list-effect {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 50vh;
background: #333;
}
#Tag-list-effect ul {
margin: 0;
padding: 0 100px;
box-sizing: border-box;
}
#Tag-list-effect ul li {
position: relative;
list-style: none;
font-size: 24px;
font-weight: 700;
color: #777;
text-transform: uppercase;
padding: 10px 20px;
margin: 5px;
display: inline-flex;
transition: 0.5s;
border: 1px solid rgba(0, 0, 0, 0.1);
cursor: pointer;
z-index: 1;
}
#Tag-list-effect ul li:hover {
color: #fff;
}
#Tag-list-effect ul li:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 50%;
background: #000;
z-index: -1;
transform-origin: right;
transform: scaleX(0);
transition: transform 0.5s;
}
#Tag-list-effect ul li:hover:before {
transform-origin: left;
transform: scaleX(1);
transition: transform 0.5s;
}
#Tag-list-effect ul li:after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 50%;
background: #000;
z-index: -1;
transform-origin: left;
transform: scaleX(0);
transition: transform 0.5s;
}
#Tag-list-effect ul li:hover:after {
transform-origin: right;
transform: scaleX(1);
transition: transform 0.5s;
}
#Tag-list-effect ul li:nth-child(3n+1):before,
#Tag-list-effect ul li:nth-child(3n+1):after {
background: #ef5777;
}
#Tag-list-effect ul li:nth-child(3n+2):before,
#Tag-list-effect ul li:nth-child(3n+2):after {
background: #a55eea;
}
#Tag-list-effect ul li:nth-child(3n+3):before,
#Tag-list-effect ul li:nth-child(3n+3):after {
background: #09d375;
}