-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJQ_animate.html
More file actions
27 lines (27 loc) · 867 Bytes
/
JQ_animate.html
File metadata and controls
27 lines (27 loc) · 867 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>JQuery动画效果展示</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs
/jquery/1.4.0/jquery.min.js"></script>
<script>
$(document).ready(function (){
$("button").click(function (){
$("div").animate({
left: "250px",
// height: "150px",
// width: "150px",
borderRadius: "50px"
});
});
});
</script>
</head>
<body>
<button>开始动画</button>
<div style="position: relative; width: 100px; height: 100px; background-color: red;"></div>
</body>
</html>