放大镜旋转 css,CSS3放大镜

css3放大镜

*{margin:0px;padding:0px;}

body{background:#b1b1b1;margin:0px;padding:0px;font-size:14px;color:#000;}

.tips{width:702px;margin:0 auto;line-height:24px;padding-top:10px;}

.bredcolor{color:#fff;}

.small {width:200px; height:450px; background:url("//ku.shouce.ren/files/images/201601/56a325adc46e7.jpg") no-repeat; position:relative; margin:20px 0 20px 10px;}

.large {width:500px; height:420px; overflow:hidden; position:absolute; left:-9999px; top:0;}

.large img {position:absolute; left:0; top:-1px; opacity:0;

-moz-transition: top 0s 3600s;

}

.pointer {display:block; width:200px; height:168px; background:#fff; opacity:0; filter: alpha(opacity=0); position:absolute; left:0; top:-1px; z-index:10;

-moz-transition: top 0s 3600s;

}

.small b {display:block; width:200px; height:10px;position:relative; z-index:20; cursor:crosshair;}

.small b:nth-of-type(1) {display:block; width:200px; height:85px;}

.small b:nth-of-type(27) {display:block; width:200px; height:85px;}

.small b:hover ~ .pointer {opacity:0.2;

-webkit-transition:0.25s;

-moz-transition:0.25s;

-ms-transition:0.25s;

-o-transition:0.25s;

transition:0.25s;

}

.small b:hover ~ .large {left:225px;}

.small b:hover ~ .large img {opacity:1;

-webkit-transition:0.5s;

-moz-transition:0.5s;

-ms-transition:0.5s;

-o-transition:0.5s;

transition:0.5s;

}

.small b:nth-of-type(1):hover ~ .pointer {top:0px;}

.small b:nth-of-type(2):hover ~ .pointer {top:10px;}

.small b:nth-of-type(3):hover ~ .pointer {top:20px;}

.small b:nth-of-type(4):hover ~ .pointer {top:30px;}

.small b:nth-of-type(5):hover ~ .pointer {top:40px;}

.small b:nth-of-type(6):hover ~ .pointer {top:50px;}

.small b:nth-of-type(7):hover ~ .pointer {top:60px;}

.small b:nth-of-type(8):hover ~ .pointer {top:70px;}

.small b:nth-of-type(9):hover ~ .pointer {top:80px;}

.small b:nth-of-type(10):hover ~ .pointer {top:90px;}

.small b:nth-of-type(11):hover ~ .pointer {top:100px;}

.small b:nth-of-type(12):hover ~ .pointer {top:110px;}

.small b:nth-of-type(13):hover ~ .pointer {top:120px;}

.small b:nth-of-type(14):hover ~ .pointer {top:130px;}

.small b:nth-of-type(15):hover ~ .pointer {top:140px;}

.small b:nth-of-type(16):hover ~ .pointer {top:150px;}

.small b:nth-of-type(17):hover ~ .pointer {top:160px;}

.small b:nth-of-type(18):hover ~ .pointer {top:170px;}

.small b:nth-of-type(19):hover ~ .pointer {top:180px;}

.small b:nth-of-type(20):hover ~ .pointer {top:190px;}

.small b:nth-of-type(21):hover ~ .pointer {top:200px;}

.small b:nth-of-type(22):hover ~ .pointer {top:210px;}

.small b:nth-of-type(23):hover ~ .pointer {top:220px;}

.small b:nth-of-type(24):hover ~ .pointer {top:230px;}

.small b:nth-of-type(25):hover ~ .pointer {top:240px;}

.small b:nth-of-type(26):hover ~ .pointer {top:250px;}

.small b:nth-of-type(27):hover ~ .pointer {top:252px;}

.small b:nth-of-type(1):hover ~ .large img {top:0;}

.small b:nth-of-type(2):hover ~ .large img {top:-25px;}

.small b:nth-of-type(3):hover ~ .large img {top:-50px;}

.small b:nth-of-type(4):hover ~ .large img {top:-75px;}

.small b:nth-of-type(5):hover ~ .large img {top:-100px;}

.small b:nth-of-type(6):hover ~ .large img {top:-125px;}

.small b:nth-of-type(7):hover ~ .large img {top:-150px;}

.small b:nth-of-type(8):hover ~ .large img {top:-175px;}

.small b:nth-of-type(9):hover ~ .large img {top:-200px;}

.small b:nth-of-type(10):hover ~ .large img {top:-225px;}

.small b:nth-of-type(11):hover ~ .large img {top:-250px;}

.small b:nth-of-type(12):hover ~ .large img {top:-275px;}

.small b:nth-of-type(13):hover ~ .large img {top:-300px;}

.small b:nth-of-type(14):hover ~ .large img {top:-325px;}

.small b:nth-of-type(15):hover ~ .large img {top:-350px;}

.small b:nth-of-type(16):hover ~ .large img {top:-375px;}

.small b:nth-of-type(17):hover ~ .large img {top:-400px;}

.small b:nth-of-type(18):hover ~ .large img {top:-425px;}

.small b:nth-of-type(19):hover ~ .large img {top:-450px;}

.small b:nth-of-type(20):hover ~ .large img {top:-475px;}

.small b:nth-of-type(21):hover ~ .large img {top:-500px;}

.small b:nth-of-type(22):hover ~ .large img {top:-525px;}

.small b:nth-of-type(23):hover ~ .large img {top:-550px;}

.small b:nth-of-type(24):hover ~ .large img {top:-575px;}

.small b:nth-of-type(25):hover ~ .large img {top:-600px;}

.small b:nth-of-type(26):hover ~ .large img {top:-625px;}

.small b:nth-of-type(27):hover ~ .large img {top:-630px;}

var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");

document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F7b1b0a3f92f550c351b60c95bab723a4' type='text/javascript'%3E%3C/script%3E"));

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值