<table id="luhpu"><acronym id="luhpu"></acronym></table>
  1. <blockquote id="luhpu"></blockquote>
    <b id="luhpu"></b>
  2. <u id="luhpu"><p id="luhpu"><thead id="luhpu"></thead></p></u>
    <video id="luhpu"><track id="luhpu"><object id="luhpu"></object></track></video>
      <b id="luhpu"></b>

      <b id="luhpu"></b>

      <b id="luhpu"><small id="luhpu"><thead id="luhpu"></thead></small></b>
      考試報名信息,太谷教育信息網歡迎您!
      當前位置:首頁 > > 考試 > > 計算機類 > 內容頁

      CSS3水波漣漪動畫定位樣式如何制作

      2021-04-22 12:58:00計算機類訪問手機版500

        CSS3水波漣漪動畫定位樣式如何制作

        寶劍鋒從磨礪出,梅花香自苦寒來。以下是小編為大家搜索整理的'CSS3水波漣漪動畫定位樣式如何制作,希望能給大家帶來幫助!更多精彩內容請及時關注我們應屆畢業生考試網!

        先上效果圖:

        教程

        本動畫需要用到的主要屬性:animation, transition 和 Keyframes 屬性。

        Step 1:HTML 代碼:

        Step 2: CSS樣式:設置animation屬性

        .dot:before

        content:' ';

        position: absolute;

        z-index:2;

        left:0;

        top:0;

        width:10px;

        height:10px;

        background-color: #ff4200;

        border-radius: 50%;

        .dot:after

        content:' ';

        position: absolute;

        z-index:1;

        width:10px;

        height:10px;

        background-color: #ff4200;

        border-radius: 50%;

        box-shadow: 0 0 10px rgba0,0,0,.3 inset;

        -webkit-animation-name:'ripple';/*動畫屬性名,也就是我們前面keyframes定義的動畫名*/

        -webkit-animation-duration: 1s;/*動畫持續時間*/

        -webkit-animation-timing-function: ease; /*動畫頻率,和transition-timing-function是一樣的*/

        -webkit-animation-delay: 0s;/*動畫延遲時間*/

        -webkit-animation-iteration-count: infinite;/*定義循環資料,infinite為無限次*/

        -webkit-animation-direction: normal;/*定義動畫方式*/

        設置動畫方式,像波浪一樣,從小變大變無,所以我們要設置寬高從0 – 50px,透明度從有至無,這樣就能實現水波漣漪效果啦。

        @keyframes ripple

        0%

        left:5px;

        top:5px;

        opcity:75;

        width:0;

        height:0;

        100%

        left:-20px;

        top:-20px;

        opacity: 0;

        width:50px;

        height:50px;

      91在线免费视频