.fadeOut() | jQuery API Documentation
Thu Feb 16 2023 12:47:05 GMT+0000 (Coordinated Universal Time)
Saved by
@ocnarb
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>fadeOut demo</title>
<style>
p {
font-size: 150%;
cursor: pointer;
}
</style>
<script src="https://code.jquery.com/jquery-3.6.3.js"></script>
</head>
<body>
<p>
If you click on this paragraph
you'll see it just fade away.
</p>
<script>
$( "p" ).click(function() {
$( "p" ).fadeOut( "slow" );
});
</script>
</body>
</html>
content_copyCOPY
https://api.jquery.com/fadeout/
Comments