jquery实现堆叠拼图式相册图片点击放大切换效果代码
代码语言:html
所属分类:画廊相册
代码描述:jquery实现堆叠拼图式相册图片点击放大切换效果代码。
代码标签: jquery 相册 拼图 堆叠 放大 切换 图片
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" /> <style> * { margin: 0; padding: 0; } html { overflow: scroll; overflow-x: hidden; } body,html { width: 100%; height: 100%; font-family: '寰蒋闆呴粦', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } body { background: url(//repo.bfw.wiki/bfwrepo/image/5f14d32694ad3.png) top center; } ul,ol { list-style: none; } img { display: block; border: none; } .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clearfix { display: inline-block; } * html .clearfix { height: 1%; } .clearfix { display: block } .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clearfix { display: inline-block; } * html .clearfix { height: 1%; } .clearfix { display: block } .banner { width: 100%; height: 100px; position: fixed; z-index: 1; } .jay { width: 263px; height: 200px; position: fixed; top: 6%; left: 10%; z-index: 0; } .container { width: 800px; height: 500px; position: fixed; top: 50%; left: 50%; margin-top: -250px; margin-left: -400px; z-index: 2; } .content { width: 100%; height: 100%; position: relative; z-index: 3; } .content li { width: 160px; height: 100px; position: absolute; left: 42%; top: 160%; cursor: pointer; overflow: hidden; z-index: 9; background: #ffffff; box-shadow: 1px 1px 3px 0px #000000; transition: transform 1s; -0-transition: -o-transform 1s; -moz-transition: -moz-transform 1s; -webkit-transition: -webkit-transform 1s; } .content li span,.content li span a,.content li span img,.content li span strong { display: block; width: 100%; height: 100%; } .content li span { position: relative; } .content li span a,.content li span strong { position: absolute; z-index: 10; display: none; } .content li span strong { left: 160px; } .content li span a img { z-index: 9; } .load { width: 100%; height: 100%; position: fixed; z-index: 12; } .load span { display: block; width: 32px; height: 32px; background: #ffffff; padding: 10px; position: fixed; top: 50%; left: 50%; margin-left: -21px; margin-top: -21px; border-radius: 10px; box-shadow: 1px 1px 2px #111111; } .left,.right { width: 94px; height: 120px; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAB4CAYAAABIFc8gAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0Q3REE0NkNGQjkxMTFFM0I4NUQ5RkJCNjYyMkFDQjAiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0Q3REE0NkJGQjkxMTFFM0I4NUQ5RkJCNjYyMkFDQjAiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD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QfwOHguceImcFwHCJWFA+i9r8HIs4Sfcg0TJCXFdQGAkAGB7BaiVkHYWDcUPCVk5LDQl1sQv7MBAxAPITEsYRrlY/JyZY1CIsVOcb6qUQRjeKCgAYSJcV9nNX/d6M+CGMCKFinH0AAPLpuFo97+jGE504rLAQz4jxpi5EC4ChCw8TjabMDj5cWG7KiPElIFwA5FOoor625zehSNJBIX8FwPAJWU+m5nQjTK0+EFwVAMPrthIxKWYCHxKuCgCQCkmEhKixAgCkYk4M14XxAQAMBgU0AQAAggUAABAsAAAECwAAIFgAAADBAgBAsAAAAIIFAAAQLAAABAsAADLF/wswAO0mA8G7xPWBAAAAAElFTkSuQmCC); cursor: pointer; position: fixed; top: 50%; margin-top: -35px; opacity: 0.8; filter: alpha(opacity=90); z-index: 99; } .left { background-position: -206px 0; left: 0px; margin-left: -95px; } .right { background-position: 0px 0; right: 0px; margin-right: -95px; } .zs { width: 1301px; height: 106px; position: fixed; top: 0px; left: 50%; margin-left: -650px; z-index: 99999; } .g { width: 334px; height: 370px; position: fixed; bottom: 5%; right: 5%; } </style> </head> <body> <div class="g"><img src="//repo.bfw.wiki/bfwrepo/icon/5d834e7ee3796.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_500,h_400,/quality,q_90" /></div> <div class="banner"></div> <div class="jay"><img src="//repo.bfw.wiki/bfwrepo/icon/5d834e90b5b5e.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_500,h_400,/quality,q_90" /></div> <div class="left"></div> <div class="right"></div> <div class="load"><span><img src="//repo.bfw.wiki/bfwrepo/icon/5f7abfbff367a.gif" /></span></div> <div class="container"> <ul class="content"> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> <li><span><a></a><strong></strong><img src="" /></span></li> </ul> </div> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.17.js"></script> <script> var ImgUrl = ["//repo.bfw.wiki/bfwrepo/image/5d653bd0990d0.png?x-oss-process=image/auto-orient,1/resize,m_.........完整代码请登录后点击上方下载按钮下载查看
网友评论0