JQuery FadeOut

 

In this example, we are going to fade out the text on hover event using fadeOut() function and speed it set to 2000 milliseconds.

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script> $(document).ready(function() { $("p").hover(function() { $("p").fadeOut("2000"); }); }); </script> </head> <body> <h4>Hover on sample text to see the fadeOut effect</h4> <p>Sample Appwrk Text</p> </body> </html>
Output