CSS3 制作的懸??s放特效
發(fā)布時(shí)間:2021-04-12 17:26:31 作者:Wifeo
我要評(píng)論

這篇文章主要介紹了CSS3 制作的懸停縮放特效,幫助大家更好的理解和學(xué)習(xí)使用CSS3,感興趣的朋友可以了解下
實(shí)現(xiàn)效果:
實(shí)現(xiàn)代碼:
html
<link rel='stylesheet' type='text/css'> <div align="center" class="fond"> <div style="width:1000px;"> <div class="style_prevu_kit" style="background-color:#cb2025;"></div> <div class="style_prevu_kit" style="background-color:#f8b334;"></div> <div class="style_prevu_kit" style="background-color:#97bf0d;"></div> <div class="style_prevu_kit" style="background-color:#00a096;"></div> <div class="style_prevu_kit" style="background-color:#93a6a8;"></div> <div style=" padding:5px; color:#b5e6e3; font-weight:300; font-size:30px; font-family:'Roboto';padding-top:20px;">jb <font style="font-weight:400;">51</font></div> <a href="http://www.wifeo.com/code" style="text-decoration:none;" target="_blank"><div style=" color:#b5e6e3; font-weight:300; font-size:20px; font-family:'Roboto';">腳本之家</div></a> </div> </div>
css3
.fond{position:absolute;padding-top:85px;top:0;left:0; right:0;bottom:0; background-color:#00506b;} .style_prevu_kit { display:inline-block; border:0; width:196px; height:210px; position: relative; -webkit-transition: all 200ms ease-in; -webkit-transform: scale(1); -ms-transition: all 200ms ease-in; -ms-transform: scale(1); -moz-transition: all 200ms ease-in; -moz-transform: scale(1); transition: all 200ms ease-in; transform: scale(1); } .style_prevu_kit:hover { box-shadow: 0px 0px 150px #000000; z-index: 2; -webkit-transition: all 200ms ease-in; -webkit-transform: scale(1.5); -ms-transition: all 200ms ease-in; -ms-transform: scale(1.5); -moz-transition: all 200ms ease-in; -moz-transform: scale(1.5); transition: all 200ms ease-in; transform: scale(1.5); }
以上就是CSS3 制作的懸??s放特效的詳細(xì)內(nèi)容,更多關(guān)于CSS3 懸??s放的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!
相關(guān)文章
- 搜索框在網(wǎng)站上經(jīng)??梢杂玫?,使用關(guān)鍵詞搜索可以快速找到我們想要的寶貝,但是放置一個(gè)很長(zhǎng)的搜索框很難看,那么小編就給大家分享一段代碼實(shí)現(xiàn)搜索框可以縮放的,當(dāng)我們需2015-11-19
一款jQuery+CSS3實(shí)現(xiàn)的動(dòng)態(tài)縮放焦點(diǎn)圖代碼
一款jQuery+CSS3實(shí)現(xiàn)的動(dòng)態(tài)縮放焦點(diǎn)圖代碼2014-08-06- 這篇文章主要介紹了CSS3鼠標(biāo)懸浮過(guò)渡縮放效果,本文通過(guò)實(shí)例代碼給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-04-16