/
backgroundUnderlineAnimation.html
49 lines (43 loc) · 1.08 KB
/
backgroundUnderlineAnimation.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
html,
body {
width: 100%;
height: 100%;
display: flex;
}
p {
width: 600px;
margin: auto;
font-size: 24px;
line-height: 2;
color: #666;
}
a {
background: linear-gradient(90deg, #ff3c41, #fc0, #0ebeff);
background-size: 0 3px;
background-repeat: no-repeat;
background-position: 0 100%;
cursor: pointer;
transition: 1s all;
color: #0cc;
}
a:hover,
a:active {
background-size: 100% 2px;
color: #000;
}
</style>
</head>
<body>
<p>Cristiano" and "CR7" redirect here. For other people named Cristiano.<a>2012–2016: All-time Portugal top scorer and
European champion
</a>, He was awarded the Silver Boot as the joint second-highest goalscorer, with three goals and three assists, and
was named to the team of the tournament for the third time in his career</p>
</body>
</html>