這是我想出的解決方案,它的一個「黑客」,有點混亂,但它的工作原理。 (至少對我來說對鉻)
我做的是先創建一個3×3格和「鏡瓦他們」隨着規模也略有偏移一切,然後我放大到300%的方式,但這裏是奇怪的部分,以實際得到它的工作,我需要確保它呈現在div外的瓷磚,所以我需要在正確的z-索引處有一個隱藏的動畫div (#loading_dot在代碼中),迫使它呈現所有。
//提示:使用VH或VW而不是爲模糊規模PX。
DEMO
平鋪的圖像鏡
HTML:
<a href='http://www.patan77.com' id='text_overlay' class='blink_me' target='_blank'>Patan77.com</a>
<div id="loading_dot" class="blink_me"></div>
<div id="wrapper0">
<div id="wrapper1">
<div id="wrapper2">
<div id="bg1" class="bg_img"></div>
<div id="bg2" class="bg_img"></div>
<div id="bg3" class="bg_img"></div>
<div id="bg4" class="bg_img"></div>
<div id="bg5" class="bg_img">Visible DIV</div>
<div id="bg6" class="bg_img"></div>
<div id="bg7" class="bg_img"></div>
<div id="bg8" class="bg_img"></div>
<div id="bg9" class="bg_img"></div>
</div>
</div>
</div>
CSS:
body{
background-color: #0F0;
margin: 0;
padding: 0;
}
#text_overlay{
position:absolute;
z-index: 20;
outline: none;
text-decoration: none;
font-family:Arial, Helvetica, sans-serif;
color: #FFF;
font-size: 3em;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%)
}
.bg_img{
position:absolute;
background-image: url(http://www.patan77.com/wallpaper/3d_cube_explosion_patan77.jpg); /*background image*/
background-repeat:no-repeat;
background-size: cover;
background-position: center center;
width: calc(100% /3);
height: calc(100% /3);
}
#wrapper0{
position:absolute;
width: 100%;
height: 100%;
overflow:hidden;
}
#wrapper1{
position:absolute;
width: 300%; /* 1 change these to 100% to zoom out*/
height: 300%; /* 2 change these to 100% to zoom out*/
top: -50%; /* 3 change these to 0 to zoom out*/
left: -50%; /* 4 change these to 0 to zoom out*/
z-index: 10;
}
#wrapper2{
filter: blur(6vh); /*Set amount of blur use vh units*/
-webkit-filter: blur(6vh); /*Set amount of blur use vh units*/
position:absolute;
width: 100%;
height: 100%;
z-index: 10;
}
#bg1{
position:absolute;
left: calc(-100% /6);
top: calc(-100% /6);
-webkit-transform: scale(-1,-1);
transform: scale(-1,-1);
}
#bg2{
left:calc(100% /6);
top: calc(-100% /6);
-webkit-transform: scale(1,-1);
transform: scale(1,-1);
}
#bg3{
left:calc(100% /2);
top: calc(-100% /6);
-webkit-transform: scale(-1,-1);
transform: scale(-1,-1);
}
#bg4{
-webkit-transform: scale(-1,1);
transform: scale(-1,1);
left: calc(-100% /6);
top:calc(100% /6);
}
#bg5{
left:calc(100% /6);
top:calc(100% /6);
color: #FFF;
font-size:50px;
text-align: center;
}
#bg6{
-webkit-transform: scale(-1,1);
transform: scale(-1,1);
left:calc(100% /2);
top:calc(100% /6);
}
#bg7{
-webkit-transform: scale(-1,-1);
transform: scale(-1,-1);
left:calc(-100% /6);
top:calc(100% /2);
}
#bg8{
-webkit-transform: scale(1,-1);
transform: scale(1,-1);
left:calc(100% /6);
top:calc(100% /2);
}
#bg9{
-webkit-transform: scale(-1,-1);
transform: scale(-1,-1);
left:calc(100% /2);
top:calc(100% /2);
}
.blink_me {
-webkit-animation-name: blinker;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: ease;
-webkit-animation-iteration-count: infinite;
-moz-animation-name: blinker;
-moz-animation-duration: 1s;
-moz-animation-timing-function: ease;
-moz-animation-iteration-count: infinite;
animation-name: blinker;
animation-duration: 1s;
animation-timing-function: ease;
animation-iteration-count: infinite;
}
@-moz-keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.5; }
100% { opacity: 1.0; }
}
@-webkit-keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.5; }
100% { opacity: 1.0; }
}
@keyframes blinker {
0% { opacity: 1.0; }
50% { opacity: 0.5; }
100% { opacity: 1.0; }
}
應該張貼作爲你會那麼自我的答案,它是允許的一個問題。 –
請閱讀http://stackoverflow.com/help/self-answer,編輯您的問題,以便它成爲一個問題,然後在下面發佈答案。 – BoltClock
嗯,我想我可以但是問題是我最近發佈這個問題合法,適度只是標記爲另一個線程的副本,即使是艱難的,它不是真的,並阻止我自己回答這個問題。 –