Jquery implements the method to flip fadeIn display
This article mainly introduces jquery's method for implementing the display of fadeIn. The example analyzes the usage skills of the fadeIn method in jQuery. For more information, see
This example describes how to use jquery to flip the fadeIn display. Share it with you for your reference. The specific implementation method is as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$ (Function (){ // Flip display $ ("# Zuixin div: not (: first)" ).css ("display", "none "); Var B = $ ("# zuixin div: last "); Var C = $ ("# zuixin div: first "); SetInterval (function (){ If (B. is (": visible ")){ C. fadeIn (500). addClass ("in"); B. hide () } Else { $ ("# Zuixin div: visible"). addClass ("in "); $ ("# Zuixin div. in"). next (). fadeIn (500 ); $ ("Div. in"). hide (). removeClass ("in "); } }, 3000); // switch one entry every three seconds. You can change it as needed. }); |
I hope this article will help you with jQuery programming.