Definitions and usage
The fadeout () method gradually changes the opacity of the selected element, from visible to hidden (fading effect).
Note: Hidden elements are not fully displayed (no longer affect the layout of the page).
Tip: This method is usually used in conjunction with the FadeIn () method.
Grammar
$ (selector). fadeout (Speed,easing,callback)
1. Overview
The function of jquery to animate is easy to use, but animation execution is asynchronous, so put the custom action in the callback function.
2. Example
3. Something
In the example above, the callback function can be replaced with the arrow function,
<script type= "Text/javascript" >
$ (function () {
' use strict ';
(function () {
var tr = $ ("#test-table>tbody>tr:visible").
Tr.fadeout (' 4000 ', () =>tr.remove ());
}) ();
});
</script>
The above is a small set to introduce the jquery fadeout asynchronous example code to explain, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!