-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (94 loc) · 2.56 KB
/
index.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./css/jquery-ui.min.css">
<script src="./js/jquery-3.5.1.min.js"></script>
<script src="./js/jquery-ui.min.js"></script>
</head>
<style>
#box{
height: 150px;
width: 450px;
background: red;
color: #fff;
position: relative;
text-align: center;
}
#box:hover{
background-color: rgb(228, 50, 50);
color: #fff;
}
#box1{
height: 150px;
width: 450px;
background: blue;
color: #fff;
position: relative;
text-align: center;
}
#box1:hover{
background-color: lightskyblue;
color: #000;
}
#box2{
height: 150px;
width: 450px;
background: blue;
color: #fff;
position: relative;
text-align: center;
}
</style>
<body>
<div id="box">
<h3>jQuery Sample</h3>
</div>
<div id="box1">MOMO~</div>
<br><br>
<div id="box2"><h3>Animation</h3></div>
<br><br>
<button type="Button" id="btnFadeIn">Fade In</button>
<button type="Button" id="btnFadeOut">Fade Out</button>
<button type="Button" id="btnSlideIn">Slide In</button>
<button type="Button" id="btnSlideOut">Slide Out</button>
<button type="Button" id="stop">stop</button>
<button type="Button" id="btnAnimate">Animate</button>
<button type="Button" id="btnRemoveAnimation">Remove Animate</button>
<script>
$(document).ready(function(){
$('#btnFadeOut').click(function(){
$('#box').fadeOut(3000);
});
$('#btnFadeIn').click(function(){
$('#box').fadeIn(3000);
});
$('#btnSlideIn').click(function(){
$('#box').slideDown(3000);
});
$('#btnSlideOut').click(function(){
$('#box').slideUp(3500);
});
$('#stop').click(function(){
$('#box').stop();
});
$('#btnAnimate').click(function(){
$('#box2').animate({
height: '300',
width: '400',
left: '400'
});
});
$('#btnRemoveAnimation').click(function(){
$('#box2').animate({
height: '150',
width: '450',
left: 0
});
});
});
</script>
</body>
</html>