div+css实现逼真天气预报动画卡片翻转效果代码
代码语言:html
所属分类:其他
代码描述:div+css实现逼真天气预报动画卡片翻转效果代码
代码标签: div css 逼真 天气 预报 动画 卡片 翻转
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900'> <style> body{ margin:0; color:#444; background-color:#333366; font:300 14px/18px Roboto, sans-serif; } *,:after,:before{box-sizing:border-box} .pull-left{float:left} .pull-right{float:right} .clearfix:after,.clearfix:before{content:'';display:table} .clearfix:after{clear:both;display:block} @font-face{ font-family:'iconvault'; src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABHoAA0AAAAAH/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAARzAAAABkAAAAcZRC1lE9TLzIAAAGgAAAASgAAAGBBGl5IY21hcAAAAigAAABCAAABQgAP9MBjdnQgAAACbAAAAAQAAAAEABEBRGdhc3AAABHEAAAACAAAAAj//wADZ2x5ZgAAAqQAAA1SAAAY5KRMyiloZWFkAAABMAAAAC8AAAA2/LWGy2hoZWEAAAFgAAAAHQAAACQDuwHkaG10eAAAAewAAAA5AAAAOgxBBltsb2NhAAACcAAAADQAAAA0SGJPam1heHAAAAGAAAAAIAAAACAAZQH5bmFtZQAAD/gAAAFXAAACf8Plfydwb3N0AAARUAAAAHQAAAEEt7GzgnjaY2BkYGAA4li1bxfj+W2+MnAzMYDA2cOLDeG04P/7jP8Ye4FcDgawNABQjAxHAHjaY2BkYGDs/X+fQY+JAQQY/zEwMqACFgBgsAOiAAAAAAEAAAAZAcgACgAAAAAAAgAAAAEAAQAAAEAALgAAAAB42mNgYWJg/MLAysDA6MOYxsDA4A6lvzJIMrQwMDAxsHEywIEAgskQkOaawnDgI8NHUcYD/w8w6DH2MigChRmRlCgwMAIAMWQL+AAAeNpjYmAQZAACJjBmjGaUZZjN8JphDUMgg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woff'); font-weight:normal; font-style:normal; } [class^="icon-"], [class*=" icon-"]{ font-family:'iconvault'; font-style:normal; font-weight:normal; text-decoration:inherit; -webkit-font-smoothing:antialiased; } .basecloud:before, .windyraincloud:before, .windysnowcloud:before, .basethundercloud:before{font-family:'iconvault';font-style:normal;position:absolute;color:#ccc} .basecloud:before{content:'\f105'} .windyraincloud:before{content:'\f111'} .windysnowcloud:before{content:'\f109'} .basethundercloud:before{content:'\f105'} .icon-thunder:before{content:'\f114';position:absolute;color:#ffa500} .icon-sunny:after{content:'\f101';color:#ffa500;position:absolute} .icon-drizzle:before{content:'\f10a';color: #82b2e4;position:absolute} .icon-hail:before{content:'\f10f';position:absolute;color:#ccc} .icon-showers:before{content:'\f104';position:absolute;color:#82b2e4} .icon-rainy:before{content:'\f107';position:absolute;color:#4681c3} .icon-snowy:before{content:'\f10b';position:absolute;color:#acd3f3} .icon-frosty:before{content:'\f102';position:absolute;color:#85d8f7} .icon-windy:before{content:'\f115';position:absolute;color:#ccc} .icon-windyrain:before{content:'\f10e';position:absolute;color:#acd3f3} .icon-windysnow:before{content:'\f103';position:absolute;color:#acd3f3} .icon-sleet:before{content:'\f10c';position:absolute;color:#acd3f3} .icon-moon:after{content:'\f10d';color:#ffa500;position:absolute} .icon-night:after{content:'\f100';position:absolute;color:#ffa500} .icon-sun::after{content:'\f113';color:#ffa500;position:absolute} .icon-cloud:after{content:'\f106';color:#ccc;position:absolute} .icon-sunrise:before{content:'\f112';color:#ffa500;position:absolute} .icon-sunset:before{content:'\f110';color:#f96f23;position:absolute} .icon-mist:before{content:'\f108';color:#ccc;position:absolute} .box-inner:after, .box-base:before, .box-base:after, .cloud:before, .cloud:after, .cloud .dtl:before, .cloud .dtl:after, .statue .hair:before, .statue .hair:after, .statue .crown .arrow:before, .statue .crown .arrow:after, .statue .body:before, .statue .body:after, .statue .hand:before, .statue .hand:after, .statue .torch-glow:before, .statue .torch-glow:after, .statue .torch:before, .statue .torch:after, .statue .cloth:before, .statue .cloth:after, .statue .cloth-wrap:before, .statue .cloth-wrap:after, .statue .base .top:before, .statue .base .top:after, .toggle-switch .tgl-btn:after, .toggle-switch .dtl-icon>i:before, .toggle-switch .dtl-icon>i:after { content:''; position:absolute; } .statue, .statue .head, .statue .hair, .statue .crown .arrow, .statue .torch, .statue .body, .statue .cloth, .statue .base .bar, .statue .base .top, .statue .cloth-wrap, .toggle-switch .dtl-icon>i{ margin:auto; position:relative; } .box-wrap{ top:0; left:0; right:0; bottom:0; z-index:-1; position:fixed; background-color:#333366; background:linear-gradient(to bottom,#333366 0, #000 100%); } .box, .box-base, .box-inner, .box .flip{max-width:600px;max-height:350px;width:100%;height:100%} .box-inner{margin:auto;position:relative} .box-inner:after{ width:100%; height:5px; bottom:-56px; background:#444; transform:scaleX(1.41); } .box{ margin:auto; margin-top:80px; perspective:600px; } .box-base{ z-index:1; bottom:-320px; position:absolute; background-color:#333; transform:rotateX(90deg) translateZ(160px); } .box .flip{ position:absolute; transform-style:preserve-3d; -webkit-backface-visibility:hidden; backface-visibility:hidden; transition:all .8s cubic-bezier(1,1.55,.2,.8); } .box .flip.front{ z-index:1; } .box .flip.back{ color:#66cccd; background:#333; transform:rotateX(-90deg) translateZ(160px); } .toggle{ opacity:0; z-index:999; visibility:hidden; position:absolute; } .toggle:checked ~ .box-inner .flip.front{ z-index:-1; opacity:0; transform:rotateX(90deg) translateZ(160px); } .toggle:checked ~ .box-inner .flip.back{ transform:rotateX(0deg); } .toggle:checked ~ .box-inner .box:after{z-index:-1} .city{ width:100%; bottom:40px; position:absolute; } .clouds, .cloud, .cloud .dtl{ position:absolute; } .clouds{ z-index:-1; width:inherit; } .cloud{ width:75px; height:15px; border-radius:15px; background-color:#4b5d8b; -webkit-animation:move-cloud 10s linear infinite; animation:move-cloud 10s linear infinite; } .cloud .dtl{ bottom:0; left:-4px; width:24px; height:24px; border-radius:50%; background-color:inherit; } .cloud .dtl:before{ top:-4px; left:22px; width:14px; height:20px; border-radius:12px; background-color:inherit; } .cloud .dtl:after{ left:34px; width:34px; bottom:2px; height:34px; border-radius:50%; background-color:inherit; } .cloud.cloud-1{ top:15px; left:80px; animation-dealy:.2s; } .cloud.cloud-2{ top:-25px; right:200px; background-color:#333366; animation-dealy:.4s; -webkit-animation-duration:13s; animation-duration:13s; } .cloud.cloud-3{ top:40px; width:55px; right:240px; background-color:#2c2c54; animation-dealy:.6s; -webkit-animation-duration:15s; animation-duration:15s; } .cloud.cloud-3 .dtl{ width:18px; height:18px; } .cloud.cloud-3 .dtl:before{ top:-12px; left:14px; width:28px; height:28px; border-radius:50%; background-color:inherit; } .cloud.cloud-3 .dtl:after{ bottom:0; left:38px; width:24px; height:24px; } @-webkit-keyframes move-cloud{ 0%,100%{transform:translateX(100px)} 50%{transform:translateX(-50px)} } @keyframes move-cloud{ 0%,100%{transform:translateX(100px)} 50%{transform:translateX(-50px)} } .statue{ left:-70px; } .statue .head{ z-index:2; width:18px; height:22px; margin-bottom:4px; background-color:#66cccd; border-top-left-radius:12px; border-top-right-radius:12px; border-bottom-left-radius:12px 22px; border-bottom-right-radius:12px 22px; box-shadow:0 2px 4px rgba(0,0,0,.38); } .statue .hair{ width:inherit; height:inherit; overflow:hidden; border-radius:inherit; border-top:2px solid #006f75; } .statue .hair:before, .statue .hair:after{ top:-8px; width:16px; height:16px; border-radius:50%; background-color:#389699; } .statue .hair:before{left:-7px} .statue .hair:after{right:-5px} .statue .crown{ width:inherit; height:inherit; position:absolute; } .statue .crown .arrow, .statue .crown .arrow:before, .statue .crown .arrow:after{ width:0; height:0; position:absolute; border:2px solid transparent; border-bottom:16px solid #66cccd; } .statue .crown .arrow.arrow-1{top:-7px;left:-8px;transform:rotate(-70deg)} .statue .crown .arrow.arrow-1:before{top:1px;left:-8px;transform:rotate(-18deg)} .statue .crown .arrow.arrow-1:after{right:-9px;transform:rotate(25deg)} .statue .crown .arrow.arrow-2{top:-17px;left:50%;margin-left:-2px} .statue .crown .arrow.arrow-2:before, .statue .crown .arrow.arrow-2:after{display:none} .statue .crown .arrow.arrow-3{top:-7px;right:-8px;transform:rotate(70deg)} .statue .crown .arrow.arrow-3:before{top:1px;right:-8px;transform:rotate(18deg)} .statue .crown .arrow.arrow-3:after{left:-9px;transform:rotate(-25deg)} .statue .body{ width:30px; height:90px; margin:auto; background-color:#66cccd; border-top-right-radius:4px; } .statue .body:before, .statue .body:after{ width:0; bottom:0; height:0; border:4px solid transparent; } .statue .body:before{ left:-3px; border-bottom:18px solid #66cccd; } .statue .body:after{ right:-3px; border-bottom:24px solid #66cccd; } .statue .hands{ width:inherit; height:inherit; position:absolute; } .statue .hand{position:absolute} .statue .hand.left{ top:-45px; width:30px; left:-16px; height:52px; border:7px solid #66cccd; border-top:none; border-right:none; border-bottom-left-radius:35px 45px; border-top-left-radius:5px 30px; } .statue .hand.left:before{ top:-4px; z-index:1; left:-8px; width:10px; height:14px; box-shadow:0 0 2px; background-color:#66cccd; border-top-left-radius:4px 4px; border-top-right-radius:4px 4px; border-bottom-left-radius:5px 8px; border-bottom-right-radius:5px 8px; } .statue .hand.left:after{ left:-4px; z-index:1; width:18px; bottom:-5px; height:14px; background-color:#66cccd; transform:rotate(30deg); } .statue .hand.right{ top:4px; z-index:2; width:15px; right:-12px; height:40px; background-color:#4b9296; transform:rotate(35deg); } .statue .hand.right:after{ top:12px; left:10px; width:9px; height:13px; background-color:#66cccd; border-top-left-radius:4px 4px; border-top-right-radius:4px 4px; border-bottom-right-radius:5px 8px; } .statue .torch-glow, .statue .torch{ position:absolute; } .statue .torch-glow{ top:-50px; left:-38px; width:72px; height:72px; } .statue .torch-glow:before, .statue .torch-glow:after{ z-index:-1; width:inherit; height:inherit; border-radius:50%; -webkit-animation:torch-glow 2s linear infinite; animation:torch-glow 2s linear infinite; } .statue .torch-glow:before{ color:rgb(73,70,81); background-color:rgba(73,70,81,.75); background:radial-gradient(#444 0,rgba(68,68,68,.15) 100%); } .statue .torch-glow:after{ top:50%; left:50%; width:48px; height:48px; margin-top:-24px; margin-left:-24px; color:rgb(99,84,63); background-color:rgba(99,84,63,.75); background:radial-gradient(#996633 0,rgba(68,68,68,.15) 100%); } @-webkit-keyframes torch-glow{ 0%,100%{ box-shadow:0 0 20px; transform:scale(1); } 50%{ box-shadow:none; transform:scale(1.1); } } @keyframes torch-glow{ 0%,100%{ box-shadow:0 0 20px; transform:scale(1); } 50%{ box-shadow:none; transform:scale(1.1); } } .statue .torch{ top:-8px; left:-5px; width:4px; height:22px; background-color:#4b9296; border-radius:0 0 4px 4px; } .statue .torch:after{ top:-5px; left:50%; width:10px; height:5px; margin-left:-5px; background-color:#4b9296; border-radius:0 0 4px 4px; } .statue .torch .flame{ left:-1px; top:-14px; width:8px; height:8px; position:absolute; border-top-right-radius:8px 12px; border-bottom-left-radius:12px 8px; background-color:#ff9642; background:linear-gradient(to bottom,#face3a -4px,#ff9642 100%); transform:rotate(60deg); } .statue .cloth-wrap{height:100%} .statue .cloth-wrap:before, .statue .cloth-wrap:after{ background-color:#66cccd; } .statue .cloth-wrap:before{ left:2px; top:-11px; width:20px; height:32px; background-color:#66cccd; transform:rotate(-80deg); } .statue .cloth-wrap:after{ right:-4px; width:20px; height:20px; background-color:#66cccd; transform:rotate(-28deg); border-top-right-radius:4px; } .statue .cloth{ width:100%; height:100%; position:absolute; } .statue .cloth:before, .statue .cloth:after{ width:0; height:0; z-index:1; } .statue .cloth.cloth-1:before{ top:-8px; left:-5px; width:4px; height:14px; background-color:#46aab3; transform:rotate(32deg); } .statue .cloth.cloth-1:after{ top:2px; left:-10px; border-radius:1px; border:8px solid #66cccd; border-right:14px solid transparent; border-bottom:0 solid transparent; transform:rotate(-70deg) skew(-30deg); } .statue .cloth.cloth-2:before{ top:-2px; left:-2px; width:12px; z-index:0; height:20px; background-color:#46aab3; transform:rotate(-18deg); } .statue .cloth.cloth-2:after{ left:2px; width:15px; height:35px; background-color:#66cccd; border-bottom-left-radius:3px 12px; transform:rotate(58deg) skewX(18deg); } .statue .cloth.cloth-3:before{ top:24px; left:-10px; border-radius:1px; border:8px solid #46aab3; border-right:32px solid transparent; border-bottom:3px solid transparent; transform:rotate(-52deg) skew(-28deg); } .statue .cloth.cloth-3:after{ top:30px; left:8px; width:3px; height:35px; background:#46aab3; border-top-left-radius:3px 35px; border-bottom-right-radius:3px 35px; transform:rotate(15deg); } .statue .cloth.cloth-4:before{ top:20px; left:11px; border-radius:1px; border:7px solid #46aab3; border-left:2px solid transparent; border-top:7px solid transparent; border-bottom:42px solid transparent; transform:rotate(-14deg) skewX(-26deg); } .statue .cloth.cloth-4:after{ left:3px; z-index:2; width:15px; bottom:14px; height:10px; background-color:#66cccd; transform:rotate(-33deg) skewX(20deg); } .statue .cloth.cloth-5{overflow:hidden} .statue .cloth.cloth-5:before{ width:24px; height:30px; bottom:1px; right:-5px; background-color:#46aab3; transform:rotate(60deg); background:linear-gradient(136deg,#46aab3 0,transparent 100%); } .statue .cloth.cloth-6:before{ right:2px; border:10px solid transparent; border-top:4px solid #46aab3; border-right:4px solid #46aab3; border-top-right-radius:4px; } .statue .cloth.cloth-6:after{ width:4px; right:-2px; height:30px; bottom:20px; background-color:#46aab3; border-bottom-right-radius:4px 5px; transform:rotate(-4deg); } .statue .base .top{ width:45px; height:45px; background:linear-gradient(to bottom,#38999d 0, #3f6564 100%); } .statue .base .top:before, .statue .base .top:after{ left:50%; background-color:#66cccd; } .statue .base .top:before{height:4px;width:50px;margin-left:-25px} .statue .base .top:after{top:10px;height:6px;width:54px;margin-left:-27px} .statue .base .bar.mid, .statue .base .bar.bot{ width:66px; height:8px; background-color:#3f6564; } .statue .base .bar.bot{ width:100px; } .rain{ top:0; left:0; right:0; bottom:0; z-index:1; width:100%; height:100%; /*display:none;*/ overflow:hidden; position:absolute; -webkit-animation:blnk 6s linear infinite; animation:blnk 6s linear infinite; } .rain i{ width:1px; height:30px; bottom:200px; position:absolute; background:linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.6) 100%); -webkit-animation:fall .63s linear infinite; animation:fall .63s linear infinite; } @-webkit-keyframes fall{ to{margin-top:900px} } @keyframes fall{ to{margin-top:900px} } @-webkit-keyframes blnk{ 0%,95%,98%{background-color:transparent}96%,99%,100%{background-color:#fff} } @keyframes blnk{ 0%,95%,98%{background-color:transparent}96%,99%,100%{background-color:#fff} } .toggle:checked ~ .rain{ z-index:-1; } .text-gradient{color:#33ffcc;background:-webkit-linear-gradient(left,#33ffcc 0,#33ffff 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent} .general-info{ right:0; bottom:0; min-width:180px; min-height:200px; position:absolute; transform:translateX(0); transition:all .4s ease-in-out 0s; } .general-info .measure{ font-size:36px; line-height:36px; font-weight:400; } .general-info .status, .general-info .current-date{font-size:13px;font-weight:400} .general-info .city-name{font-size:24px;margin-top:15px} .toggle:checked ~ .box-inner .general-info{transform:translateX(50px)} .content{ padding:30px; } .content .title{ font-size:24px; margin-bottom:8px; } .forecast .grd:after,.content .forecast .grd:before{content:'';display:table} .forecast .grd:after{clear:both;display:block} .forecast .grd{ margin-left:-5px; margin-right:-5px; } .forecast .grd>.col{ float:left; padding:5px; width:16.6666%; transition:all .4s ease-in-out 0s; } @-webkit-keyframes show-list{ 0%{transform:translateY(100px);opacity:0} 100%{transform:translateY(0);opacity:1} } @keyframes show-list{ 0%{transform:translateY(100px);opacity:0} 100%{transform:translateY(0);opacity:1} } .toggle:checked ~ .box-inner .forecast .grd>.col{-webkit-animation:show-list 1s linear backwards;animation:show-list 1s linear backwards;-webkit-animation-delay:.4s;animation-delay:.4s} .toggle:checked ~ .box-inner .forecast .grd>.col:nth-child(1){-webkit-animation-duration:.3s;animation-duration:.3s} .toggle:checked ~ .box-inner .forecast .grd>.col:nth-child(2){-webkit-animation-duration:.4s;animation-duration:.4s} .toggle:checked ~ .box-inner .forecast .grd>.col:nth-child(3){-webkit-animation-duration:.5s;animation-duration:.5s} .toggle:checked ~ .box-inner .forecast .grd>.col:nth-child(4){-webkit-animation-duration:.6s;animation-duration:.6s} .toggle:checked ~ .box-inner .forecast .grd>.col:nth-child(5){-webkit-animation-duration:.7s;animation-duration:.7s} .toggle:checked ~ .box-inner .forecast .grd>.col:nth-child(6){-webkit-animation-duration:.8s;animation-duration:.8s} .forecast .info{ padding:10px; cursor:default; background-color:rgba(255,255,255,.03); transition:background .2s ease-in-out 0s; } .forecast .grd .info:hover{ background-color:rgba(255,255,255,.08); } .forecast .date{ font-size:14px; } .forecast .ico{ width:38px; height:38px; font-size:38px; line-height:38px; display:inline-block; } .forecast .unit .min, .forecast .unit .max{position:relative;margin-right:8px} .forecast .unit .min{font-size:14px} .forecast .info .text{ font-size:14px; margin-top:5px; } .author{ margin-top:5px; text-align:right; } .summary{margin-top:5px;transition:all .2s ease-in-out 0s} .toggle:checked ~ .box-inner .summary{-webkit-animation:flip-inf .2s linear backwards;animation:flip-inf .2s linear backwards;-webkit-animation-delay:.9s;animation-delay:.9s} @-webkit-keyframes flip-inf{ 0%{transform:scale(0)} 100%{transform:scale(1)} } @keyframes flip-inf{ 0%{transform:scale(0)} 100%{transform:scale(1)} } .author{ margin-top:10px; } .author a{ color:#fff; display:inline-block; text-decoration:none; } .toggle-switch{ right:0; z-index:20; width:50px; height:50px; bottom:-50px; cursor:pointer; position:absolute; perspective:200px; } .toggle-switch .tgl-btn{ width:50px; height:50px; overflow:hidden; position:absolute; background-color:#80DEEA; -webkit-backface-visibility:hidden; backface-visibility:hidden; transition:all .4s ease-in-out 0s; background:linear-gradient(30deg,#80DEEA 0, #26C6DA 100%); } .toggle-switch .tgl-btn:hover{color:#fff;background:linear-gradient(30deg,#26C6DA 0, #80DEEA 100%)} .toggle-switch .tgl-btn:after{ top:0; left:-25px; width:20px; height:100%; background-color:rgba(255,255,255,.55); transform:skewX(-15deg); -webkit-filter:blur(2px); } .toggle-switch .tgl-btn.front:after{-webkit-animation:shine 2s linear infinite;animation:shine 2s linear infinite} @-webkit-keyframes shine{ 0%,90%{opacity:0;left:-25px} 100%{opacity:1;left:50px} } @keyframes shine{ 0%,90%{opacity:0;left:-25px} 100%{opacity:1;left:50px} } .toggle-switch .ico{ width:36px; margin:auto; height:36px; font-size:36px; line-height:50px; } .toggle-switch .ico>i:before, .toggle-switch .ico>i:after{color:inherit} .toggle-switch .dtl-icon{ width:inherit; height:inherit; text-align:center; } .toggle-switch .dtl-icon>i{ height:30px; margin-top:10px; position:relative; display:inline-block; border-left:1px solid; } .toggle-switch .dtl-icon>i:before, .toggle-switch .dtl-icon>i:after{ top:-1px; height:15px; border:inherit; } .toggle-switch .dtl-icon>i:before{ left:-7px; transform:rotate(45deg); } .toggle-switch .dtl-icon>i:after{ right:-6px; transform:rotate(-45deg); } .toggle-switch .tgl-btn.back, .toggle:checked ~ .box-inner .toggle-switch .tgl-btn.front{transform:rotateX(180deg)} .toggle:checked ~ .box-inner .toggle-switch .tgl-btn.back{transform:rotateX(0deg)} .toggle:checked ~ .box-inner .toggle-switch .tgl-btn.back:after{-webkit-animation:shine 2s linear infinite;animation:shine 2s linear infinite} </style> </head> <body > <div class="box-wrap"> <input id="toggle" class="toggle" type="checkbox"> <div class="rain"><i style="left:693px;top:844px"></i><i style="left:1307px;top:-31px"></i><i style="left:984px;top:101px"></i><i style="left:1662px;top:-64px"></i><i style="left:999px;top:1371px"></i><i style="left:960px;top:-820px"></i><i style="left:1288px;top:185px"></i><i style="left:1618px;top:103px"></i><i style="left:659px;top:1180px"></i><i style="left:648px;top:-408px"></i><i style="left:844px;top:10px"></i><i style="left:662px;top:1098px"></i><i style="left:471px;top:55px"></i><i style="left:811px;top:-752px"></i><i style="left:281px;top:1300px"></i><i style="left:117px;top:153px"></i><i style="left:579px;top:942px"></i><i style="left:657px;top:-977px"></i><i style="left:1757px;top:808px"></i><i style="left:1334px;top:116px"></i><i style="left:1089px;top:-59px"></i><i style="left:615px;top:661px"></i><i style="left:1303px;top:-163px"></i><i style="left:60px;top:789px"></i><i style="left:1038px;top:-686px"></i><i style="left:920px;top:1190px"></i><i style="left:1174px;top:-21px"></i><i style="left:1031px;top:-762px"></i><i style="left:1541px;top:432px"></i><i style="left:72px;top:286px"></i><i style="left:1746px;top:34px"></i><i style="left:900px;top:566px"></i><i style="left:1045px;top:-666px"></i><i style="left:224px;top:-370px"></i><i style="left:206px;top:-904px"></i><i style="left:1586px;top:-521px"></i><i style="left:410px;top:-962px"></i><i style="left:223px;top:604px"></i><i style="left:457px;top:-558px"></i><i style="left:516px;top:163px"></i><i style="left:1474px;top:380px"></i><i style="left:1363px;top:748px"></i><i style="left:35px;top:1337px"></i><i style="left:1029px;top:263px"></i><i style="left:360px;top:443px"></i><i style="left:1343px;top:825px"></i><i style="left:1731px;top:1009px"></i><i style="left:1613px;top:442px"></i><i style="left:333px;top:-920px"></i><i style="left:1202px;top:-815px"></i><i style="left:1081px;top:126px"></i><i style="left:1820px;top:381px"></i><i style="left:1687px;top:-234px"></i><i style="left:1064px;top:1364px"></i><i style="left:1601px;top:518px"></i><i style="left:545px;top:105px"></i><i style="left:1198px;top:-508px"></i><i style="left:61px;top:658px"></i><i style="left:73px;top:1197px"></i><i style="left:774px;top:40px"></i><i style="left:1680px;top:483px"></i><i style="left:1742px;top:1118px"></i><i style="left:369px;top:-825px"></i><i style="left:307px;top:-557px"></i><i style="left:1641px;top:973px"></i><i style="left:1273px;top:1015px"></i><i style="left:1727px;top:1334px"></i><i style="left:1390px;top:-637px"></i><i style="left:1693px;top:1164px"></i><i style="left:1394px;top:-687px"></i><i style="left:363px;top:300px"></i><i style="left:492px;top:965px"></i><i style="left:1507px;top:212px"></i><i style="left:201px;top:878px"></i><i style="left:1047px;top:-646px"></i><i style="left:1796px;top:1045px"></i><i style="left:10px;top:1px"></i><i style="left:235px;top:155px"></i><i style="left:863px;top:1131px"></i><i style="left:1415px;top:802px"></i><i style="left:605px;top:1220px"></i><i style="left:1557px;top:484px"></i><i style="left:906px;top:563px"></i><i style="left:1087px;top:582px"></i><i style="left:14px;top:-726px"></i><i style="left:226px;top:-883px"></i><i style="left:311px;top:-215px"></i><i style="left:1401px;top:-679px"></i><i style="left:817px;top:1245px"></i><i style="left:1095px;top:992px"></i><i style="left:1092px;top:275px"></i><i style="left:1630px;top:49px"></i><i style="left:516px;top:-335px"></i><i style="left:238px;top:-675px"></i><i style="left:286px;top:690px"></i><i style="left:763px;top:496px"></i><i style="left:527px;top:667px"></i><i style="left:1626px;top:-142px"></i><i style="left:1691px;top:-71px"></i><i style="left:419px;top:-189px"></i><i style="left:758px;top:-455px"></i><i style="left:1618px;top:-910px"></i><i style="left:147px;top:335px"></i><i style="left:778px;top:317px"></i><i style="left:1296px;top:293px"></i><i style="left:1836px;top:494px"></i><i style="left:132px;top:7px"></i><i style="left:1586px;top:368px"></i><i style="left:538px;top:512px"></i><i style="left:702px;top:-701px"></i><i style="left:627px;top:-103px"></i><i style="left:303px;top:1345px"></i><i style="left:1090px;top:752px"></i><i style="left:1502px;top:23px"></i><i style="left:1763px;top:-670px"></i><i style="left:1467px;top:136px"></i><i style="left:1708px;top:-138px"></i><i style="left:1228px;top:-112px"></i><i style="left:310px;top:1361px"></i><i style="left:917px;top:852px"></i><i style="left:195px;top:281px"></i><i style="left:835px;top:470px"></i><i style="left:1025px;top:-67px"></i><i style="left:1705px;top:954px"></i><i style="left:996px;top:486px"></i><i style="left:598px;top:-280px"></i><i style="left:1822px;top:-799px"></i><i style="left:152px;top:444px"></i><i style="left:673px;top:-395px"></i><i style="left:1834px;top:470px"></i><i style="left:995px;top:5px"></i><i style="left:992px;top:-814px"></i><i style="left:588px;top:-38px"></i><i style="left:1179px;top:-949px"></i><i style="left:341px;top:1180px"></i><i style="left:1556px;top:-268px"></i><i style="left:730px;top:1203px"></i><i style="left:1439px;top:878px"></i><i style="left:723px;top:-718px"></i><i style="left:1367px;top:387px"></i><i style="left:587px;top:487px"></i><i style="left:504px;top:806px"></i><i style="left:623px;top:-933px"></i><i style="left:52px;top:319px"></i><i style="left:1107px;top:362px"></i><i style="left:1300px;top:1059px"></i><i style="left:89px;top:744px"></i><i style="left:1136px;top:1206px"></i><i style="left:1259px;top:-229px"></i><i style="left:725px;top:969px"></i><i style="left:833px;top:919px"></i><i style="left:1177px;top:-114px"></i><i style="left:484px;top:-675px"></i><i style="left:942px;top:995px"></i><i style="left:1824px;top:18px"></i><i style="left:496px;top:765px"></i><i style="left:34px;top:-358px"></i><i style="left:1154px;top:437px"></i><i style="left:1128px;top:-19px"></i><i style="left:413px;top:-770px"></i><i style="left:961px;top:-76px"></i><i style="left:870px;top:-627px"></i><i style="left:976px;top:918px"></i><i style="left:381px;top:526px"></i><i style="left:1605px;top:-350px"></i><i style="left:1791px;top:1188px"></i><i style="left:539px;top:-692px"></i><i style="left:1408px;top:-352px"></i><i style="left:1117px;top:-924px"></i><i style="left:1825px;top:1103px"></i><i style="left:439px;top:-140px"></i><i style="left:1588px;top:-133px"></i><i style="left:1375px;top:376px"></i><i style="left:1832px;top:-471px"></i><i style="left:1506px;top:479px"></i><i style="left:521px;top:92px"></i><i style="left:1498px;top:569px"></i><i style="left:265px;top:-711px"></i><i style="left:1740px;top:801px"></i><i style="left:553px;top:828px"></i><i style="left:1596px;top:-150px"></i><i style="left:784px;top:-52px"></i><i style="left:444px;top:-665px"></i><i style="left:773px;top:1246px"></i><i style="left:538px;top:-611px"></i><i style="left:735px;top:382px"></i><i style="left:1756px;top:1249px"></i><i style="left:1643px;top:-795px"></i><i style="left:777px;top:35px"></i><i style="left:1554px;top:1155px"></i><i style="left:1476px;top:654px"></i><i style="left:1849px;top:548px"></i><i style="left:1314px;top:-308px"></i><i style="left:273px;top:707px"></i><i style="left:1875px;top:457px"></i><i style="left:908px;top:738px"></i><i style="left:624px;top:-233px"></i><i style="left:895px;top:-447px"></i><i style="left:67px;top:746px"></i> <i style="left:1459px;top:-458px"></i><i style="left:993px;top:6px"></i><i style="left:1660px;top:1260px"></i><i style="left:724px;top:702px"></i><i style="left:1394px;top:1342px"></i><i style="left:312px;top:-22px"></i><i style="left:395px;top:1341px"></i><i style="left:642px;top:-680px"></i><i style="left:823px;top:513px"></i><i style="left:1522px;top:1314px"></i><i style="left:1372px;top:-293px"></i><i style="left:1888px;top:-866px"></i><i style="left:1895px;top:-792px"></i><i style="left:1808px;top:394px"></i><i style="left:769px;top:183px"></i><i style="left:1812px;top:1138px"></i><i style="left:1341px;top:-769px"></i><i style="left:1085px;top:1347px"></i><i style="left:1298px;top:510px"></i><i style="left:1174px;top:1306px"></i><i style="left:917px;top:577px"></i><i style="left:433px;top:-654px"></i><i style="left:1805px;top:1382px"></i><i style="left:1006px;top:470px"></i><i style="left:1362px;top:558px"></i><i style="left:894px;top:-267px"></i><i style="left:1641px;top:-803px"></i><i style="left:205px;top:1133px"></i><i style="left:155px;top:1199px"></i><i style="left:1078px;top:-626px"></i><i style="left:75px;top:17px"></i><i style="left:1248px;top:675px"></i><i style="left:447px;top:-283px"></i><i style="left:1594px;top:-801px"></i><i style="left:48px;top:246px"></i><i style="left:738px;top:-592px"></i><i style="left:545px;top:312px"></i><i style="left:1523px;top:1255px"></i><i style="left:1451px;top:648px"></i><i style="left:463px;top:-202px"></i><i style="left:1285px;top:-840px"></i><i style="left:349px;top:-537px"></i><i style="left:871px;top:328px"></i><i style="left:1880px;top:-165px"></i><i style="left:341px;top:-30px"></i><i style="left:170px;top:-567px"></i><i style="left:1175px;top:884px"></i><i style="left:1815px;top:-521px"></i><i style="left:499px;top:576px"></i><i style="left:1237px;top:-169px"></i><i style="left:1324px;top:420px"></i><i style="left:1758px;top:1141px"></i><i style="left:1405px;top:666px"></i><i style="left:764px;top:-453px"></i><i style="left:560px;top:1299px"></i><i style="left:1808px;top:797px"></i><i style="left:1313px;top:-539px"></i><i style="left:608px;top:-862px"></i><i style="left:1254px;top:797px"></i><i style="left:32px;top:148px"></i><i style="left:109px;top:-82px"></i><i st.........完整代码请登录后点击上方下载按钮下载查看
网友评论0