javascript 3D图片轮换
2014-07-30 16:50
429 查看
演示:http://www.pengyaou.com/LegendsZ/eg/fivelg.html
代码:
var isMoving=false; function Turns() { if (isMoving == false) { isMoving = true; $("#contentBody").animate({ opacity:1 }, 800, function() { isMoving = false; }); for (var i = 0; i < $(".wheelItem").length; i ) { var target = $($(".wheelItem")[i]); if (target.css("margin-left") == "0px" || target.css("margin-left") == "auto") { target.css("z-index", "0"); target.animate({ width:"150px", height:"100px", marginTop:"75px", marginLeft:"1000px" }, 800); } else if (target.css("margin-left") == "150px") { target.css("z-index", "1"); target.animate({ width:"150px", height:"100px", marginTop:"75px", marginLeft:"0px" }, 800); } else if(target.css("margin-left")=="400px"){ target.css("z-index", "2"); target.animate({ width:"250px", height:"175px", marginTop:"35px", marginLeft:"150px" }, 800); }else if(target.css("margin-left")=="750px"){ target.css("z-index", "10"); target.animate({ width:"350px", height:"250px", marginTop:"0px", marginLeft:"400px" }, 800); }else if(target.css("margin-left")=="1000px"){ target.css("z-index", "5"); target.a
原文出处:http://www.pengyaou.com/LegendsZ/File/2014/07/07/20140707231155892.html
相关文章推荐
- 用javascript实现的仿Flash广告图片轮换效果
- 多浏览器兼容的qq图片轮换效果javascript代码
- JavaScript 图片3D展示空间(3DRoom)
- JavaScript 图片3D展示空间(3DRoom)
- JavaScript 图片3D展示空间(3DRoom)
- javascript图片渐变轮换效果
- JavaScript 图片3D展示空间(3DRoom)
- JavaScript实现图片轮换效果
- Javascript控制图片围成3D模型旋转展示
- JavaScript 图片3D展示空间(3DRoom)
- 多浏览器兼容的qq图片轮换效果javascript代码
- javascript实现图片轮换效果
- javascript图片轮换
- JavaScript 图片3D展示空间(3DRoom)
- javascript 图片轮换显示效果代码
- 用javascript实现的仿Flash广告图片轮换效果
- Javascript控制图片间歇性轮换向上滚动
- silverlight3的"伪"3D续--图片横向轮换
- JavaScript 图片3D展示空间(3DRoom)
- JavaScript 图片3D展示空间(3DRoom)