-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindexasapp.html
More file actions
32 lines (30 loc) · 811 Bytes
/
indexasapp.html
File metadata and controls
32 lines (30 loc) · 811 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
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<script src="jquery.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
alert("hello","hello");
var div=$("div");
var qqp=1
while(qqp<5)
{
div.animate({left:'300px'},"slow");
div.animate({left:'0px',height:'300px'},"slow");
div.animate({height:'100px',opacity:'0.4'},"slowt");
div.animate({width:'100px',opacity:'0.8'},"slow");
qqp=qqp+1;
}
});
});
</script>
</head>
<body>
<button>Start Animation</button>
<p>By default, all HTML elements have a static position, and cannot be moved. To manipulate the position, remember to first set the CSS position property of the element to relative, fixed, or absolute!</p>
<div style="background:#98bf21;height:100px;width:100px;position:absolute;">
</div>
</body>
</html>