<head>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
p {
display: none;
font-size: 18px;
padding: 10px;
border: 1px solid black;
}
</style>
</head>
<body>
<button id="fadeInBtn">Show Paragraphs</button>
<p>This is the first paragraph.</p>
<p>This is the second paragraph.</p>
<p>This is the last paragraph.</p>
<script>
$(document).ready(function() {
$("#fadeInBtn").click(function() {
$("p").fadeIn();
});
});
</script>
</body>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.