<html lang="ko">
<head>
<meta charset="UTF-8">
<title>jQuery Effects</title>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script>
$(function() {
$("#showBtn").on("click", function() {
$("#text").show(2000); // id가 "text"인 요소를 2초에 걸쳐 나타나게 함.
});
$("#hideBtn").on("click", function() {
$("#text").hide("fast"); // id가 "text"인 요소를 빠르게 숨김.
});
});
</script>
</head>
<body>
<h1>요소의 표시와 숨김 속도 조절</h1>
<button id="showBtn">요소 표시하기!</button>
<button id="hideBtn">요소 숨기기!</button>
<p id="text">이 단락을 숨기거나 나타나게 할 거에요!</p>
</body>
</html>