jquery implements the method of flipping the fadeIn display
- 2020-05-10 17:42:11
- OfStack
This article illustrates the jquery implementation of the flip fadeIn display method. Share with you for your reference. The specific implementation method is as follows:
$(function() {
// Turn show
$("#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); // every 3 Seconds to switch 1 You can change it as you like
});
I hope this article has been helpful to your jQuery programming.