欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

CSS3中input框如何實(shí)現(xiàn)類似Google登錄的動(dòng)畫效果-創(chuàng)新互聯(lián)

這篇文章給大家分享的是有關(guān)CSS3中input框如何實(shí)現(xiàn)類似Google登錄的動(dòng)畫效果的內(nèi)容。小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過來看看吧。

在商都等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供網(wǎng)站制作、成都網(wǎng)站建設(shè) 網(wǎng)站設(shè)計(jì)制作定制制作,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),成都品牌網(wǎng)站建設(shè),成都全網(wǎng)營銷推廣,成都外貿(mào)網(wǎng)站建設(shè)公司,商都網(wǎng)站建設(shè)費(fèi)用合理。

 用css3將input框?qū)懗鲱愃艷oogle登錄頁面的動(dòng)畫效果

效果一

CSS3中input框如何實(shí)現(xiàn)類似Google登錄的動(dòng)畫效果

代碼如下

CSS

body{
    background-color:#acacac;
  }
  .form-container{
    display: block;
    position: relative;
    width: 400px;
    height: 400px;
    background: #fff;
    margin: 50px auto;
    padding: 30px;
  }

  input{
    display: block;
    position: relative;
    background: none;
    border: 2px solid #acacac;
    border-radius:5px;
    width: 100%;
    font-weight: bold;
    padding-left:10px;
    font-size: 16px;
    height:35px;
    z-index: 1;
  }

  label{
    display: inline-block;
    position: relative;
    top: -32px;
    left: 10px;
    color: #acacac;
    font-size: 16px;
    z-index: 2;
    transition: all 0.2s ease-out;
  }

  input:focus, input:valid{
    outline: none;
    border: 2px solid #00aced;
  }

  input:focus + label, input:valid + label{
    top: -50px;
    font-size: 16px;
    color: #00aced;
    background-color:#fff;
  }

HTML

<div class="main">
    <div class="form-container">
      <input type="text" name="input1" required>
      <label for="input1">Account</label>

      <input type="text" name="input2" required>
      <label for="input2">Password</label>
    </div>
  </div>

效果二

CSS3中input框如何實(shí)現(xiàn)類似Google登錄的動(dòng)畫效果

代碼如下:

CSS

body{
    background-color:#acacac;
  }
  .form-container{
    display: block;
    position: relative;
    width: 400px;
    background: #fff;
    margin: 50px auto;
    padding: 60px;
  }

  input{
    display: block;
    position: relative;
    background: none;
    border: none;
    border-bottom: 1px solid #ddd;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    z-index: 2;
  }

  label{
    display: block;
    position: relative;
    top: -20px;
    left: 0px;
    color: #999;
    font-size: 16px;
    z-index: 1;
    transition: all 0.3s ease-out;
    margin-bottom:40px;
  }

  input:focus, input:valid{
    outline: none;
    border-bottom: 1px solid #00aced;
  }

  input:focus + label, input:valid + label{
    top: -50px;
    font-size: 16px;
    color: #00aced;
    background-color:#fff;
  }

HTML

<div class="main">
    <div class="form-container">
      <input type="text" name="input1" required>
      <label for="input1">Account</label>
      <input type="text" name="input2" required>
      <label for="input2">Password</label>
    </div>
  </div>

感謝各位的閱讀!關(guān)于“CSS3中input框如何實(shí)現(xiàn)類似Google登錄的動(dòng)畫效果”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!

本文名稱:CSS3中input框如何實(shí)現(xiàn)類似Google登錄的動(dòng)畫效果-創(chuàng)新互聯(lián)
當(dāng)前路徑:http://aaarwkj.com/article16/jcogg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、外貿(mào)建站、網(wǎng)站改版、網(wǎng)站導(dǎo)航、標(biāo)簽優(yōu)化、電子商務(wù)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營
亚洲男人天堂在线观看| 国产精品毛片一区二区三| 国产国产精品国产自在午夜| 亚洲美女av一区二区三区| 亚洲欧美日韩国产桃色| 国产探花猛操性感美女| 亚洲精品午夜福利网| 欧美久久久久久久黑人| 高清不卡一区二区在线观看| 亚洲毛片高清一区二区三区| 四虎成人免费永久视频| 国产成人综合在线观看网站| 韩国av毛片在线播放| 国产成人精品久久性色av| 日本国产美女精品一区二区| 丝袜美腿一区二区三区动态图| 一区二区日韩视频九一蜜桃| 一区二区三区四区四虎| 亚洲人成伊人久久成| 青青草青娱乐免费在线视频| 伊人性伊人情亚洲综合| 欧美高清一区二区三区不卡| 日本女人体内射精视频| 日本欧美精品一区二区精选| 成人性生活毛片免费视频| 巨乳人妻一区二区三区| 色日韩在线观看视频| 亚洲精品福利一二三区| 精品国产亚洲av剧情| 要爽死国产一区在线播放| 亚洲日本va午夜中文字幕一区| 亚洲国产精品一区二区三区| 欧美香蕉视频播放二区| 少妇精品偷拍高潮少妇在线观看| 免费在线观看污污污网站| 日韩亚洲欧美另类精品| 成人免费av在线网址| 久久精品熟女亚洲av韩国| 开心久久婷婷综合中文字幕| 亚洲乱码一区二区在线| 色吊丝日韩在线观看|