最近2018中文字幕在日韩欧美国产成人片_国产日韩精品一区二区在线_在线观看成年美女黄网色视频_国产精品一区三区五区_国产精彩刺激乱对白_看黄色黄大色黄片免费_人人超碰自拍cao_国产高清av在线_亚洲精品电影av_日韩美女尤物视频网站

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
CSS3實現(xiàn)動畫按鈕代碼分享

本篇內(nèi)容介紹了“CSS3實現(xiàn)動畫按鈕代碼分享”的有關(guān)知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!

為企業(yè)提供成都網(wǎng)站建設(shè)、網(wǎng)站制作、網(wǎng)站優(yōu)化、全網(wǎng)整合營銷推廣、競價托管、品牌運(yùn)營等營銷獲客服務(wù)。創(chuàng)新互聯(lián)擁有網(wǎng)絡(luò)營銷運(yùn)營團(tuán)隊,以豐富的互聯(lián)網(wǎng)營銷經(jīng)驗助力企業(yè)精準(zhǔn)獲客,真正落地解決中小企業(yè)營銷獲客難題,做到“讓獲客更簡單”。自創(chuàng)立至今,成功用技術(shù)實力解決了企業(yè)“網(wǎng)站建設(shè)、網(wǎng)絡(luò)品牌塑造、網(wǎng)絡(luò)營銷”三大難題,同時降低了營銷成本,提高了有效客戶轉(zhuǎn)化率,獲得了眾多企業(yè)客戶的高度認(rèn)可!

今天來分享很不錯的CSS3按鈕動畫,這款CSS3按鈕一共有5種動畫方式,每一種都是鼠標(biāo)滑過動畫形式,雖然這些動畫按鈕不是十分華麗,但是小編覺得不像其他按鈕那樣很難擴(kuò)展,我們可以修改CSS代碼隨意改變自己喜歡的顏色樣式。

CSS3實現(xiàn)動畫按鈕代碼分享

讓我們一起來看看實現(xiàn)這5中樣式動畫按鈕的HTML代碼和CSS代碼吧。以第一個按鈕為例,其他按鈕的代碼大家可以下載源代碼來研究,并不是很難。

HTML代碼:

XML/HTML Code復(fù)制內(nèi)容到剪貼板

  1.   

  2.       Download  

  3.       click to begin

      

  4.       1.2MB .zip

      

  

CSS代碼:

CSS Code復(fù)制內(nèi)容到剪貼板

  1. .button01 {   

  2.   width: 200px;   

  3.   margin: 50px auto 20px auto;   

  4. }   

  5.   

  6. .button01 a {   

  7.   display: block;   

  8.   height: 50px;   

  9.   width: 200px;   

  10.   

  11.   /*TYPE*/  

  12.   color: white;   

  13.   font: 17px/50px Helvetica, Verdana, sans-serif;   

  14.   text-decoration: none;   

  15.   text-align: center;   

  16.   text-transform: uppercase;   

  17.   

  18.   /*GRADIENT*/     

  19.   background: #00b7ea; /* Old browsers */  

  20.   background: -moz-linear-gradient(top, #00b7ea 0%, #009ec3 100%); /* FF3.6+ */  

  21.   background: -webkit-gradient(linear, left top, left bottombottom, color-stop(0%,#00b7ea), color-stop(100%,#009ec3)); /* Chrome,Safari4+ */  

  22.   background: -webkit-linear-gradient(top, #00b7ea 0%,#009ec3 100%); /* Chrome10+,Safari5.1+ */  

  23.   background: -o-linear-gradient(top, #00b7ea 0%,#009ec3 100%); /* Opera 11.10+ */  

  24.   background: -ms-linear-gradient(top, #00b7ea 0%,#009ec3 100%); /* IE10+ */  

  25.   background: linear-gradient(top, #00b7ea 0%,#009ec3 100%); /* W3C */  

  26.   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00b7ea', endColorstr='#009ec3',GradientType=0 ); /* IE6-9 */  

  27. }   

  28.   

  29. .button01 a, p {   

  30.     -webkit-border-radius: 10px;   

  31.      -moz-border-radius: 10px;   

  32.           border-radius: 10px;   

  33.   

  34.   -webkit-box-shadow: 2px 2px 8px rgba(0,0,0,0.2);   

  35.      -moz-box-shadow: 2px 2px 8px rgba(0,0,0,0.2);   

  36.           box-shadow: 2px 2px 8px rgba(0,0,0,0.2);   

  37. }   

  38.   

  39. p {   

  40.   background: #222;   

  41.   display: block;   

  42.   height: 40px;   

  43.   width: 180px;    

  44.   margin: -50px 0 0 10px;   

  45.   

  46.   /*TYPE*/  

  47.   text-align: center;   

  48.   font: 12px/45px Helvetica, Verdana, sans-serif;   

  49.   color: #fff;   

  50.   

  51.   /*POSITION*/  

  52.   position: absolute;   

  53.   z-index: -1;   

  54.   

  55.   /*TRANSITION*/     

  56.   -webkit-transition: margin 0.5s ease;   

  57.      -moz-transition: margin 0.5s ease;   

  58.        -o-transition: margin 0.5s ease;   

  59.       -ms-transition: margin 0.5s ease;   

  60.           transition: margin 0.5s ease;   

  61. }   

  62.   

  63. /*HOVER*/  

  64. .button01:hover .bottombottom {   

  65.   margin: -10px 0 0 10px;   

  66. }   

  67.   

  68. .button01:hover .top {   

  69.   margin: -80px 0 0 10px;   

  70.   line-height: 35px;   

  71. }   

  72.   

  73. /*ACTIVE*/  

  74. .button01 a:active {   

  75.       background: #00b7ea; /* Old browsers */  

  76.       background: -moz-linear-gradient(top,  #00b7ea 36%, #009ec3 100%); /* FF3.6+ */  

  77.       background: -webkit-gradient(linear, left top, left bottombottom, color-stop(36%,#00b7ea), color-stop(100%,#009ec3)); /* Chrome,Safari4+ */  

  78.       background: -webkit-linear-gradient(top,  #00b7ea 36%,#009ec3 100%); /* Chrome10+,Safari5.1+ */  

  79.       background: -o-linear-gradient(top,  #00b7ea 36%,#009ec3 100%); /* Opera 11.10+ */  

  80.       background: -ms-linear-gradient(top,  #00b7ea 36%,#009ec3 100%); /* IE10+ */  

  81.       background: linear-gradient(top,  #00b7ea 36%,#009ec3 100%); /* W3C */  

  82.       filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00b7ea', endColorstr='#009ec3',GradientType=0 ); /* IE6-9 */  

  83.   

  84. }   

  85.   

  86. .button01:active .bottombottom {   

  87.   margin: -20px 0 0 10px;   

  88. }   

  89.   

  90. .button01:active .top {   

  91.   margin: -70px 0 0 10px;   

  92. }  

“CSS3實現(xiàn)動畫按鈕代碼分享”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識可以關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實用文章!


網(wǎng)站名稱:CSS3實現(xiàn)動畫按鈕代碼分享
地址分享:http://fisionsoft.com.cn/article/jpdgso.html