The example in this article describes the jQuery full-screen image carousel effect with progress bar. Share it with everyone for your reference. The details are as follows:
The full-screen picture carousel effect with progress bar implemented by jQuery is a special effect code for oppo mobile phone official website homepage with progress bar full-screen picture carousel implemented based on jQuery, which achieves a grand, concise and elegant effect
运行效果图: -------------------查看效果 下载源码----------- --------
Tips: If the browser does not work properly, you can try switching the browsing mode.
(1) Introduce CSS style in the head area:
link rel="stylesheet" type="text/css" href="css/style.css">
(2) js code:
<script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> var i=0; jummper(); function jummper(){ $(".pic ul li").eq(i).find("img").css("left","-1180px"); $(".pic ul li").eq(i).find("p").css("width","0px"); $(".pic ul li").eq(i).find("img").animate({left:"0px"},500,function(){ //当图片移动完成后再加载进度条 //alert("当图片移动完成后再做操作"); $(".pic ul li").eq(i).find("p").animate({width:"1174px"},8000,function(){ $(".pic ul li").eq(i).find("img").animate({left:"1180px"},500,function(){ i++; if(i>2) i=0; $(".pic ul li").eq(i).fadeIn(100).siblings().fadeOut(100); }); }); }); } setInterval("jummper()",9100); </script>
The jQuery full-screen image carousel special effects code with progress bar shared with you is as follows
jQuery带进度条全屏图片轮播代码 <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> var i=0; jummper(); function jummper(){ $(".pic ul li").eq(i).find("img").css("left","-1180px"); $(".pic ul li").eq(i).find("p").css("width","0px"); $(".pic ul li").eq(i).find("img").animate({left:"0px"},500,function(){ //当图片移动完成后再加载进度条 //alert("当图片移动完成后再做操作"); $(".pic ul li").eq(i).find("p").animate({width:"1174px"},8000,function(){ $(".pic ul li").eq(i).find("img").animate({left:"1180px"},500,function(){ i++; if(i>2) i=0; $(".pic ul li").eq(i).fadeIn(100).siblings().fadeOut(100); }); }); }); } setInterval("jummper()",9100); </script>
适用浏览器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗.
The above is the jQuery full-screen image carousel special effect code with progress bar shared with you. I hope you can like it and apply it in practice.