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

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一区二区| 国产亚洲欧美精品久久久久久| 18禁黄网站禁片免费视频| 91青青草原免费观看| 亚洲一区二区三区精品国产| 国产美女无遮挡免费网站| 日本一区二区三区不卡在线| 欧美日韩电影一区二区三区在线观看| 亚洲av成人在线观看| 精品久久久久久蜜臀av| 欧洲女人av天堂精品| 国产在线精品91系列| 日韩精品伦理中文字幕| 日韩一区二区三区成人| 日本一道二区三区我不卡| 国产精品国产三级国产不卡 | 91精品国产在线观看| 狠狠躁夜夜躁人人爽蜜桃| 秋霞日韩欧美一区二区三区| 精品人妻在线中文字幕| 亚洲乱色一区二区三区丝袜| 九九热视频在线观看色| 亚洲熟女内射特写一区| 91欧美日韩精品在线| 精品国产成人一区二区| 亚洲无线码一区国产欧美国日| 中文字幕在线日韩精品| 欧美两性色一区二区三区| 91午夜精品在线观看| 亚洲国产精品日韩专区av有中文| 亚洲av毛片在线免费播放|