-
Notifications
You must be signed in to change notification settings - Fork 0
/
1按住滑块,拖到最右边文字背景.html
30 lines (30 loc) · 1004 Bytes
/
1按住滑块,拖到最右边文字背景.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width"/>
<title></title>
<style>
.nc-lang-cnt {
width:300px;
background: -webkit-gradient(linear, left top, right top, color-stop(0, #4d4d4d), color-stop(.4, #4d4d4d), color-stop(.5, #fff), color-stop(.6, #4d4d4d), color-stop(1, #4d4d4d));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-animation: slidetounlock 3s infinite;
-webkit-text-size-adjust: none;
}
@-webkit-keyframes slidetounlock {
0% {
background-position: -200px 0
}
100% {
background-position: 200px 0
}
}
</style>
</head>
<body>
<div class="nc-lang-cnt">请按住滑块,拖动到最右边</div>
</body>
</html>