CSS3圖片模糊效果,css3圖片模糊

來源:互聯網
上載者:User

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>...餘下全文>>
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.