-
Notifications
You must be signed in to change notification settings - Fork 0
/
背景波浪2.html
70 lines (63 loc) · 2.37 KB
/
背景波浪2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="font-awesome-4.7.0/font-awesome-4.7.0/css/font-awesome.min.css" type="text/css" rel="stylesheet">
<link href="font-awesome-4.7.0/font-awesome-4.7.0/css/font-awesome.css" type="text/css" rel="stylesheet">
<!--<link rel="stylesheet" href="http://fontawesome.io/assets/font-awesome/css/font-awesome.css">-->
<script src="jquery-2.0.0.min.js"></script>
<title>Title</title>
<style>
body{
margin: 0;
padding: 0;
font-family: Montserrat;
}
div{
animation: imation 15s infinite;
/*动画的第一个参数是你定义的动画的名称,第二个是你动画持续的时间,第三个是如何持续*/
font-weight: bold;
}
span{
cursor: pointer;
}
.jquery-div{
background-image: url("背景111.png");
}
@keyframes imation {
0%{
background-position:0% 50%;
}
/*动画持续时间的百分比*/
50%{
background-position:100% 50% ;
}
100%{
background-position: 0% 50%;
}
}
i{
width: 30px;
cursor: pointer;
}
</style>
</head>
<body>
<div style="background-size:400%; background-image:linear-gradient(125deg,#2c3e50,#27ae60,#2980b9,#e74c3c,#8e44ad);text-align: center;color: white;line-height: 800px;">
<span class="span">DO YOU HEAR ME</span>
</div>
<div class="jquery-div" style="width: 60%;top:-100%;left:20%;position: absolute;height: 400px;position: absolute; ">
<div style="position: relative;width:60%;height: 50%;top: 25%;left: 20%;background: transparent;outline: none;opacity: 0.6; ">
<i class="fa fa-align-center" aria-hidden="true"></i><i class="fa fa-columns" aria-hidden="true"></i><i class="fa fa-eraser" aria-hidden="true"></i><i class="fa fa-file-text-o" aria-hidden="true"></i><br>
<textarea class="textb" style=" width: 100%;height: 90%;padding: 10px 4px 10px 4px;font-size: 20px;" placeholder="提出你的意见"></textarea>
</div>
</div>
</body>
<script>
console.log('success');
var str=window.localStorage.name;
console.log(str);
$('.textb').val(str);
$('.jquery-div').animate({top:'30%'});
</script>
</html>