<strike id="3tkic"><sup id="3tkic"></sup></strike>

  1. <ul id="3tkic"></ul>
      <b id="3tkic"><legend id="3tkic"></legend></b>
      <b id="3tkic"><meter id="3tkic"></meter></b>

    • <strike id="3tkic"></strike>

      <blockquote id="3tkic"></blockquote>

    • 亚洲AV无码国产在丝袜线观看_亚洲第一页A∨在线_亚洲国产人成在线观看69网站_无码日韩人妻AV一区免费l

      純css3圓形從中心向四周擴(kuò)散動(dòng)畫(huà)效果

      2016/12/14 8:38:39   閱讀:2250    發(fā)布者:2250

      查看效果:

      先來(lái)個(gè)簡(jiǎn)單的示例,例如:

      @keyframes hovertreemove
      {
      from {top:30px;}
      to {top:130px;}
      }

      效果:

      可以通過(guò) @keyframes 規(guī)則,創(chuàng)建動(dòng)畫(huà)。

      創(chuàng)建動(dòng)畫(huà)的原理是,將一套 CSS 樣式逐漸變化為另一套樣式。
      在動(dòng)畫(huà)過(guò)程中,您能夠多次改變這套 CSS 樣式。
      以百分比來(lái)規(guī)定改變發(fā)生的時(shí)間,或者通過(guò)關(guān)鍵詞 "from" 和 "to",等價(jià)于 0% 和 100%。
      0% 是動(dòng)畫(huà)的開(kāi)始時(shí)間,100% 動(dòng)畫(huà)的結(jié)束時(shí)間。
      為了獲得最佳的瀏覽器支持,您應(yīng)該始終定義 0% 和 100% 選擇器。

      以下為上下運(yùn)動(dòng)的代碼:

      <!DOCTYPE html> 
      <html> 
      <head> 
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
          <meta name="viewport" content="width=device-width, initial-scale=1" /> 
          <title>css3使用animation和@keyframes制作動(dòng)畫(huà)_何問(wèn)起</title> 
          <meta charset="utf-8" /> 
          <style> 
      @keyframes hovertreemove 
      { 
      from {top:30px;} 
      to {top:130px;} 
      } 
      #hovertreekf{ 
          width:80px;height:80px; 
          border:1px solid red; 
          position:absolute; 
          background:url(images/smile.png) no-repeat center; 
          animation:hovertreemove /*動(dòng)畫(huà)樣式名稱*/ 
              1s /*動(dòng)畫(huà)時(shí)間*/ 
          linear /*線性運(yùn)動(dòng)*/ 
              infinite /*無(wú)線播放*/ 
              alternate/*往返動(dòng)畫(huà)*/; 
      } 
        a{color:blue;text-decoration:none;}  </style> 
      </head> 
      <body><a href="bjaf/i309b77d.htm" target="_blank">說(shuō)明</a> 
          <div id="hovertreekf"></div> 
      </body> 
      </html>

      以下為圓形擴(kuò)散運(yùn)動(dòng)的代碼:

      <!DOCTYPE html> 
      <html> 
      <head> 
          <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
          <meta name="viewport" content="width=device-width, initial-scale=1" /> 
          <title>純css3圓形從中心向四周擴(kuò)散動(dòng)畫(huà)效果_何問(wèn)起</title> 
          <style> 
              @keyframes warn { 
                  0% { 
                      transform: scale(0.3); 
                      -webkit-transform: scale(0.3); 
                      opacity: 0.0; 
                  } 
      
                  25% { 
                      transform: scale(0.3); 
                      -webkit-transform: scale(0.3); 
                      opacity: 0.1; 
                  } 
      
                  50% { 
                      transform: scale(0.5); 
                      -webkit-transform: scale(0.5); 
                      opacity: 0.3; 
                  } 
      
                  75% { 
                      transform: scale(0.8); 
                      -webkit-transform: scale(0.8); 
                      opacity: 0.5; 
                  } 
      
                  100% { 
                      transform: scale(1); 
                      -webkit-transform: scale(1); 
                      opacity: 0.0; 
                  } 
              } 
      
              @keyframes warn1 { 
                  0% { 
                      transform: scale(0.3); 
                      -webkit-transform: scale(0.3); 
                      opacity: 0.0; 
                  } 
      
                  25% { 
                      transform: scale(0.3); 
                      -webkit-transform: scale(0.3); 
                      opacity: 0.1; 
                  } 
      
                  50% { 
                      transform: scale(0.3); 
                      -webkit-transform: scale(0.3); 
                      opacity: 0.3; 
                  } 
      
                  75% { 
                      transform: scale(0.5); 
                      -webkit-transform: scale(0.5); 
                      opacity: 0.5; 
                  } 
      
                  100% { 
                      transform: scale(0.8); 
                      -webkit-transform: scale(0.8); 
                      opacity: 0.0; 
                  } 
              } 
      
              .container { 
                  position: relative; 
                  width: 40px; 
                  height: 40px; 
                  /*border: 1px solid #000; hovertree.com */ 
              } 
              /* 保持大小不變的小圓圈 何問(wèn)起 */ 
              .dot { 
                  position: absolute; 
                  width: 92px; 
                  height: 92px; 
                  left: 120px; 
                  top: 120px; 
                  -webkit-border-radius: 50%; 
                  -moz-border-radius: 50%; 
                  border: 2px solid red; 
                  border-radius: 50%; 
                  z-index: 2; 
              } 
              /* 產(chǎn)生動(dòng)畫(huà)(向外擴(kuò)散變大)的圓圈  */ 
              .pulse { 
                  position: absolute; 
                  width: 320px; 
                  height: 320px; 
                  left: 2px; 
                  top: 2px; 
                  border: 6px solid red; 
                  -webkit-border-radius: 50%; 
                  -moz-border-radius: 50%; 
                  border-radius: 50%; 
                  z-index: 1; 
                  opacity: 0; 
                  -webkit-animation: warn 2s ease-out; 
                  -moz-animation: warn 2s ease-out; 
                  animation: warn 2s ease-out; 
                  -webkit-animation-iteration-count: infinite; 
                  -moz-animation-iteration-count: infinite; 
                  animation-iteration-count: infinite; 
                  box-shadow: 1px 1px 30px red; 
              } 
      
              .pulse1 { 
                  position: absolute; 
                  width: 320px; 
                  height: 320px; 
                  left: 2px; 
                  top: 2px; 
                  border: 6px solid red; 
                  -webkit-border-radius: 50%; 
                  -moz-border-radius: 50%; 
                  border-radius: 50%; 
                  z-index: 1; 
                  opacity: 0; 
                  -webkit-animation: warn1 2s ease-out; 
                  -moz-animation: warn1 2s ease-out; 
                  animation: warn1 2s ease-out; 
                  -webkit-animation-iteration-count: infinite; 
                  -moz-animation-iteration-count: infinite; 
                  animation-iteration-count: infinite; 
                  box-shadow: 1px 1px 30px red; 
              }a{color:blue;text-decoration:none;} 
          </style> 
      </head> 
      
      <body><a href="bjaf/i309b77d.htm" target="_blank">說(shuō)明</a> 
          <div class="container"> 
              <div class="dot"></div> 
              <div class="pulse"></div> 
              <div class="pulse1"></div> 
          </div> 
      </body> 
      </html>
      亚洲AV无码国产在丝袜线观看_亚洲第一页A∨在线_亚洲国产人成在线观看69网站_无码日韩人妻AV一区免费l
      <strike id="3tkic"><sup id="3tkic"></sup></strike>

      1. <ul id="3tkic"></ul>
          <b id="3tkic"><legend id="3tkic"></legend></b>
          <b id="3tkic"><meter id="3tkic"></meter></b>

        • <strike id="3tkic"></strike>

          <blockquote id="3tkic"></blockquote>

        • 沙湾县| 泸西县| 彝良县| 东乌珠穆沁旗| 荔浦县| 九龙县| 大埔区| 神池县| 清水河县| 行唐县| 永年县| 信阳市| 林西县| 尖扎县| 河池市| 桦甸市| 府谷县| 虎林市| 邯郸市| 金乡县| 河津市| 望谟县| 普宁市| 静海县| 五河县| 沙坪坝区| 刚察县| 石楼县| 图木舒克市| 寻乌县| 大余县| 金秀| 喀什市| 资讯 | 上林县| 桂阳县| 滁州市| 鹿泉市| 桓台县| 保亭| 高邮市|