-
Notifications
You must be signed in to change notification settings - Fork 1
/
day-11.html
109 lines (98 loc) · 2.32 KB
/
day-11.html
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>D-11</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
background: rgb(1, 4, 37);
}
a {
font-size: 42px;
color: #000;
text-transform: uppercase;
padding: 20px 45px;
letter-spacing: 9px;
position: relative;
overflow: hidden;
color: #fff;
text-decoration: none;
}
/* for top border */
a::after {
content: "";
position: absolute;
left: -100%;
top: 0;
width: 100%;
height: 5px;
background: linear-gradient(to left, #5433ff, #20bdff, #a5fecb);
transition: 0.6s;
}
/*
linear-gradient(to right, #5433ff, #20bdff, #a5fecb);
*/
a:hover::after {
left: 0;
}
/* for bottom border */
a::before {
content: "";
position: absolute;
bottom: 0;
right: -100%;
width: 100%;
height: 5px;
background: linear-gradient(to right, #5433ff, #20bdff, #a5fecb);
transition: 0.6s;
}
a:hover::before {
right: 0;
}
/* for left border */
span::before {
content: "";
position: absolute;
left: 0;
top: -100%;
width: 5px;
height: 100%;
background: linear-gradient(to top, #5433ff, #20bdff, #a5fecb);
transition: 0.6s;
}
a:hover span::before {
top: 0;
}
/* for right border */
span::after {
content: "";
position: absolute;
right: 0;
top: 100%;
width: 5px;
height: 100%;
background: linear-gradient(to bottom, #5433ff, #20bdff, #a5fecb);
transition: 0.6s;
}
a:hover span::after {
top: 0;
}
</style>
</head>
<body>
<!-- First of all we have to add span tag in HTML tags like this. -->
<a href="#">submit <span></span></a>
</body>
</html>