-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshine.css
More file actions
45 lines (44 loc) · 853 Bytes
/
shine.css
File metadata and controls
45 lines (44 loc) · 853 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
*{
margin: 0;
padding: 0;
}
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
font-size: 40px;
letter-spacing: 7px;
background-color: #4B0082;
}
a{
position: relative;
text-decoration: none;
color: aliceblue;
background-color: black;
overflow: hidden;
margin: 10px 10px;
padding: 30px;
background-color: darkviolet;
transition: 1s;
}
a:hover{
background-color:violet;
}
a:nth-child(2):hover{
background-color:palevioletred;
}
a::before{
content: '';
position: absolute;
top: 0;
left: -100%;
height: 100%;
transition: .8s;
width:100%;
background: linear-gradient(90deg,transparent,white,transparent);
}
a:hover::before{
left: 100%;
}