-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFading.html
More file actions
45 lines (34 loc) · 1.05 KB
/
Copy pathFading.html
File metadata and controls
45 lines (34 loc) · 1.05 KB
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
<html>
<head>
<title>Fading evamples</title>
<h1>FADINF EXAMPLES</h1>
</head>
<body>
<button id="btn1">FADE IN </button>
<button id="btn2">FADE OUT </button>
<button id="btn3">TOGGLE </button>
<p id="p1">this is a paragrph that fadein happen</p>
<p id="p2">this is a paragrph that fade out happen</p>
<p id="p3">this is a paragrph that toggle happen</p>
</body>
<script
src="https://code.jquery.com/jquery-3.5.0.js"
integrity="sha256-r/AaFHrszJtwpe+tHyNi/XCfMxYpbsRg2Uqn0x3s2zc="
crossorigin="anonymous">
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#btn1").click(function(){
$("#p1").fadeIn()
$("#p2").fadeIn()
})
$("#btn2").click(function(){
$("#p2").fadeOut()
$("#p1").fadeOut()
})
$("#btn3").click(function(){
$("#p3").fadeToggle()
})
})
</script>
</html>