How to use jQuery .fadeOut() to fadeOut text

1 Answer

0 votes
<!doctype html>
<html>
<head>
  <script src="js/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>

<button id="id-button">click</button>
<script>
$( "#id-button" ).click(function() {
 $( "<span>fadeOut Example</span>" ).appendTo( "body" ).fadeOut( 1000 );
});
</script>
</body>
</html>

 



answered Aug 23, 2016 by avibootz
...