CSS3圖片模糊效果,css3圖片模糊
今天我們來分享一款利用CSS3技術讓圖片模糊的效果,我們只需要將滑鼠滑過圖片,就可以讓圖片產生模糊的特效,利用CSS3實現圖片模糊效果也非常簡單,用CSS3中的filter屬性即可,針對不同瀏覽器用-webkit-filter、-moz-filter、-o-filter和-ms-filter。
效果預覽
問css3可以實現如的效果,不考慮IE
完全可以,不過效果和ps出來的還是會有差距的。
<style>
.gaguang{width:300px;text-align:center}
.box{width: 300px;
height: 100px;
background: #3B4C2C;
border: 4px solid white;
box-shadow: 0 0 10px #333;
border-radius: 10px;
opacity: 0.8;}
.gg{width: 400px;
height: 200px;
border-radius: 45%;
margin-top: -265px;
z-index: 1;
background: white;
opacity: 0.1;
margin-left: -45px;}
.wz{z-index:0;position:absolute;top:40px;color:#fff;width:300px;}
</style>
<div class="gaguang">
<div class="box"></div>
<div class="wz">這裡是內容,這裡是內容,</div>
<div class="gg"></div>
</div>
css3圖片文字實現動畫效果
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>無標題文檔</title>
<style type="text/css">
*{padding:0; margin:0; border:0;}
.left{width:50%; float:left;
animation:myfirst 5s;
-moz-animation:myfirst 5s; /* Firefox */
-webkit-animation:myfirst 5s; /* Safari and Chrome */
-o-animation:myfirst 5s; /* Opera */
}
.right{width:50%; float:left;
animation:myfirst 5s;
-moz-animation:myfirst 5s; /* Firefox */
-webkit-animation:myfirst 5s; /* Safari and Chrome */
-o-animation:myfirst 5s; /* Opera */
animation-delay: 5s; /* W3C 和 Opera */
-moz-animation-delay: 5s; /* Firefox */
-webkit-animation-delay: 5s; /* Safari 和 Chrome */
}
@keyframes myfirst
{
0% { opacity:0;}
100% { opacity:1;}
}
@-moz-keyframes myfirst /* Firefox */
{
0% { opacity:0;}
100% { opacity:1;}
}
@-webkit-keyframes myfirst /* Safari 和 Chrome */
{
0% { opacity:0;}
100% { opacity:1;}
}
@-o-keyframes myfirst /* Opera */
{
0% { opacity:0;}
100% { opacity:1;}
}
</style>
</head>
<body>
<div>
<div class="left"> <img src="images/xxx.jpg"> </div>
<div class="right"> 文字XXXXXXXXXXXXXXXXXXXXXXXX </div>
</div>
</body>
</html>...餘下全文>>