<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of jQuery Animated Show Hide Effects</title> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <style> p{ padding: 15px; background: skyblue; } </style> <script> $(document).ready(function(){ // Hide displayed paragraphs with different speeds $(".hide-btn").click(function(){ $("p.normal").hide(); $("p.fast").hide("fast"); $("p.slow").hide("slow"); $("p.very-fast").hide(60); $("p.very-slow").hide(2100); }); // Show hidden paragraphs with different speeds $(".show-btn").click(function(){ $("p.normal").show(); $("p.fast").show("fast"); $("p.slow").show("slow"); $("p.very-fast").show(60); $("p.very-slow").show(2100); }); }); </script> </head> <body> <button type="button" class="hide-btn">Hide Paragraphs</button> <button type="button" class="show-btn">Show Paragraphs</button> <p class="very-fast">Happy Morning.</p> <p class="normal">Enjoy Your day.</p> <p class="fast">Wonderfull day.</p> <p class="slow">Have a Nice day</p> <p class="very-slow">This is a Wonderfull Morning.</p> </body> </html>