-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstop.html
More file actions
44 lines (37 loc) 路 962 Bytes
/
Copy pathstop.html
File metadata and controls
44 lines (37 loc) 路 962 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
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$("#flip").click(function () {
$("#panel").slideDown(5000);
});
$("#stop").click(function () {
$("#panel").stop();
});
});
</script>
<style>
#panel,
#flip {
padding: 5px;
font-size: 18px;
text-align: center;
background-color: rgb(82, 75, 75);
color: white;
border: solid 1px rgb(170, 142, 142);
border-radius: 3px;
}
#panel {
padding: 50px;
display: none;
}
</style>
</head>
<body>
<button id="stop">Stop sliding</button>
<div id="flip">Click to slide down panel</div>
<div id="panel">Hello world!</div>
</body>
</html>