久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

基于純CSS3的6種手繪涂鴉按鈕效果

這是一組非常有趣的純CSS3手繪風格卡通按鈕設計效果。這組手繪風格按鈕共6種不同的效果,它們以手繪涂鴉的方式,以不同的按鈕邊框線條寬度和虛線來構成按鈕,效果非常不錯。 .

  簡要教程

  這是一組非常有趣的純CSS3手繪風格卡通按鈕設計效果。這組手繪風格按鈕共6種不同的效果,它們以手繪涂鴉的方式,以不同的按鈕邊框線條寬度和虛線來構成按鈕,效果非常不錯。


查看演示    下載插件

  使用方法

  HTML結構

  該手繪風格卡通按鈕的HTML結構就是使用一個按鈕<button>元素,配以不同的class類來實現不同的手繪風格按鈕。

<section>
  <button class='lined thick'>Lined Thick</button>
  <button class='dotted thick'>Dotted Thick</button>
  <button class='dashed thick'>Dashed Thick</button>
</section>


  CSS樣式

  在這個DEMO中,整個頁面以flexbox進行布局。頁面字體使用的是一種手繪風格的谷歌字體。

@import url(https://fonts.googleapis.com/css?family=Patrick+Hand+SC);
html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: #F0F0D8;
  font-family: 'Patrick Hand SC', cursive;
}
html section, body section {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  min-height: 100%;
  margin-bottom: 3rem;
}     

  所有的按鈕的背景色都設置為透明,通過padding來設置按鈕的尺寸,并為按鈕設置一些陰影效果和圓角效果。還為按鈕指定0.5秒的ease效果的過渡動畫。

html section button, body section button {
  -webkit-align-self: center;
      -ms-flex-item-align: center;
          align-self: center;
  background: transparent;
  padding: 1rem 1rem;
  margin: 0 1rem;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  color: #41403E;
  font-size: 2rem;
  letter-spacing: 1px;
  outline: none;
  box-shadow: 20px 38px 34px -26px rgba(0, 0, 0, 0.2);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}                  

  上面的圓角設置等價于下面的代碼:

border-top-left-radius: 255px 15px;
border-top-right-radius: 15px 225px;
border-bottom-right-radius: 225px 15px;
border-bottom-left-radius:15px 255px;            

  然后分別為6種不同的手繪風格按鈕的指定各自的邊框樣式。

html section button.lined.thick, body section button.lined.thick {
  border: solid 7px #41403E;
}
html section button.dotted.thick, body section button.dotted.thick {
  border: dotted 5px #41403E;
}
html section button.dashed.thick, body section button.dashed.thick {
  border: dashed 5px #41403E;
}
html section button.lined.thin, body section button.lined.thin {
  border: solid 2px #41403E;
}
html section button.dotted.thin, body section button.dotted.thin {
  border: dotted 2px #41403E;
}
html section button.dashed.thin, body section button.dashed.thin {
  border: dashed 2px #41403E;
}             

  在鼠標滑過按鈕時,修改按鈕的陰影效果。

html section button:hover, body section button:hover {
  box-shadow: 2px 8px 4px -6px rgba(0, 0, 0, 0.3);
}  

  最后,使用媒體查詢來制作在小屏幕上的布局效果。

@media (max-width: 620px) {
  body h1 {
    margin-top: 2rem;
  }
  body section {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-bottom: 1rem;
  }
  body section button {
    -webkit-align-self: center;
        -ms-flex-item-align: center;
            align-self: center;
    margin-bottom: 2rem;
  }
}      


來源:http://www.htmleaf.com/css3/ui-design/201602263152.html

【網站聲明】本站除付費源碼經過測試外,其他素材未做測試,不保證完整性,網站上部分源碼僅限學習交流,請勿用于商業用途。如損害你的權益請聯系客服QQ:2655101040 給予處理,謝謝支持。

相關文檔推薦

由于實際運行環境是在瀏覽器中,因此性能還取決于JavaScript解釋器的效率,指定的FPS幀速在低性能解釋器中可能不會達到,所以這部分不是開發者能夠決定的,開發者能作的是盡可能通
本文將使用HTML5提供的VideoAPI做一個自定義的視頻播放器,需要用到HTML5提供的video標簽、以及HTML5提供的對JavascriptAPI的擴展。,HTML5中國,中國最大的HTML5中文門戶。
隨著 Hybrid 應用的豐富,HTML5 工程師們已經不滿足于把桌面端體驗簡單移植到移動端,他們覬覦移動原生應用人性化的操作體驗,特別是原生應用與生俱來的豐富的手勢系統。HTML5 沒有提
你想要在自己網站上分享一個產品,或者是一個作品集,又或者僅僅只是一個靈感。在你發布到網上之前,你想讓它看起來有吸引力,專業,或者至少得看起來像那么回事。那么你接下
H5廣告,包括H5廣告的設計流程,究竟有什么講究,和階段。為了能幫助更多的人了解H5廣告,我專門做了一個講義。同時,也讓我意外的收到了非常好反饋和認!這是對我的極大鼓勵!我的
本文主要內容有:框架與組件、構建生態、開發技巧與調試、html、css與重構、native/hybrid/桌面開發、前端/H5優化、全棧/全端開發、研究實驗、數據分析與監控、其它軟技能、前端技術網
主站蜘蛛池模板: 中文字幕欧美日韩 | 欧美日韩激情 | 午夜在线免费观看 | 国产精品日韩在线 | 91日韩欧美 | 国产麻豆视频 | 在线观看黄色小说 | 天天舔天天操 | 91福利区 | 日韩在线一区二区 | 久久91精品 | 69免费视频 | 欧美一区二区三 | 欧美成人a | 一区二区黄色 | 超碰人人射| 黄色免费毛片 | 在线观看中文字幕 | 亚洲天堂v | 国产成人免费在线观看 | 国产一区二区精品在线 | 激情四射网站 | 日韩欧美中文 | www精品| 午夜激情网 | 日韩成人精品 | 欧美日韩色 | 日韩av福利| 亚洲综合五月 | 日本精品视频在线 | 日韩亚洲欧美在线观看 | 亚洲一区在线观看视频 | 午夜视频网 | 国产麻豆一区二区三区 | 久久亚洲综合 | 午夜在线免费视频 | 天天干天天操天天爽 | 69免费视频| 日韩在线视频网站 | 免费日韩| 国产免费小视频 |