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

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

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

  簡要教程

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


查看演示    下載插件

  使用方法

  HTML結(jié)構(gòu)

  該手繪風(fēng)格卡通按鈕的HTML結(jié)構(gòu)就是使用一個按鈕<button>元素,配以不同的class類來實現(xiàn)不同的手繪風(fēng)格按鈕。

<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進行布局。頁面字體使用的是一種手繪風(fēng)格的谷歌字體。

@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;
}     

  所有的按鈕的背景色都設(shè)置為透明,通過padding來設(shè)置按鈕的尺寸,并為按鈕設(shè)置一些陰影效果和圓角效果。還為按鈕指定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;
}                  

  上面的圓角設(shè)置等價于下面的代碼:

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種不同的手繪風(fēng)格按鈕的指定各自的邊框樣式。

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;
}             

  在鼠標(biāo)滑過按鈕時,修改按鈕的陰影效果。

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

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

相關(guān)文檔推薦

由于實際運行環(huán)境是在瀏覽器中,因此性能還取決于JavaScript解釋器的效率,指定的FPS幀速在低性能解釋器中可能不會達(dá)到,所以這部分不是開發(fā)者能夠決定的,開發(fā)者能作的是盡可能通
本文將使用HTML5提供的VideoAPI做一個自定義的視頻播放器,需要用到HTML5提供的video標(biāo)簽、以及HTML5提供的對JavascriptAPI的擴展。,HTML5中國,中國最大的HTML5中文門戶。
隨著 Hybrid 應(yīng)用的豐富,HTML5 工程師們已經(jīng)不滿足于把桌面端體驗簡單移植到移動端,他們覬覦移動原生應(yīng)用人性化的操作體驗,特別是原生應(yīng)用與生俱來的豐富的手勢系統(tǒng)。HTML5 沒有提
你想要在自己網(wǎng)站上分享一個產(chǎn)品,或者是一個作品集,又或者僅僅只是一個靈感。在你發(fā)布到網(wǎng)上之前,你想讓它看起來有吸引力,專業(yè),或者至少得看起來像那么回事。那么你接下
H5廣告,包括H5廣告的設(shè)計流程,究竟有什么講究,和階段。為了能幫助更多的人了解H5廣告,我專門做了一個講義。同時,也讓我意外的收到了非常好反饋和認(rèn)!這是對我的極大鼓勵!我的
本文主要內(nèi)容有:框架與組件、構(gòu)建生態(tài)、開發(fā)技巧與調(diào)試、html、css與重構(gòu)、native/hybrid/桌面開發(fā)、前端/H5優(yōu)化、全棧/全端開發(fā)、研究實驗、數(shù)據(jù)分析與監(jiān)控、其它軟技能、前端技術(shù)網(wǎng)
主站蜘蛛池模板: 一级a爱片性色毛片免费 | 久久精品免费一区二区三 | 欧美激情视频网站 | 久久久久久久国产 | 国产精品福利在线 | 久久国产精品久久久久久 | 亚洲精品乱 | 欧美三级久久久 | 亚洲欧美在线一区 | 午夜a级理论片915影院 | 天天躁人人躁人人躁狂躁 | 日本一区二区高清不卡 | 国产精品一区二区三区在线 | 日日拍夜夜 | 欧美精品一区在线发布 | 视频一区二区在线观看 | 国产精品亚洲一区 | 依人成人| 91美女在线| 视频一区二区在线观看 | 精品美女视频在免费观看 | 天天爽一爽| 成人午夜影院 | 亚洲精品一区久久久久久 | 欧美大片一区二区 | 精品日韩一区二区 | 怡红院怡春院一级毛片 | 国产在线网址 | 凹凸日日摸日日碰夜夜 | 欧美一区二区久久 | 欧美精品在线播放 | 精品久久久999 | 久久久久久国产 | 中文字幕一区二区三区在线视频 | 国产精品毛片一区二区在线看 | 国产精品久久 | 干狠狠 | 欧美一级片免费看 | 色必久久 | 在线一区| 99亚洲 |