css3 animation steps製作餓了麼loading

來源:互聯網
上載者:User

標籤:abs   images   blog   idt   src   color   absolute   key   tle   

 

 

html代碼

<!DOCTYPE html><html><head>    <title></title></head><body><style type="text/css">    .load2 {        position: absolute;        width:200px;        height:160px;         background: url(‘data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZWxsaXBzZSBjeD0iNDgiIGN5PSIxMi40NjMiIGZpbGw9IiNEM0U2RkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgcng9IjQ3Ljg5IiByeT0iMTIuMzY5IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyIDM4KSIvPjwvc3ZnPg==‘) no-repeat;        margin-left:-96px;        margin-top:-100px;        left:50%;        top:70%;        animation:small .8s infinite;        background-position: center;    }    @keyframes small {        0% {            transform: scale(1);        }        50% {            transform: scale(.4);        }        100% {            transform: scale(1);        }    }    .load {        position: absolute;        left:50%;        top:50%;        background: url(‘loading.png‘);        height:100px;        width:100px;        margin-left:-50px;        margin-top:-50px;        animation:test 4.5s steps(6) infinite,updown .8s infinite;        /*-webkit-animation:test 3.5s steps(6) infinite;*/    }    @keyframes test {        0% {            background-position: 0 0;        }        100% {            background-position: 0 600px;        }    }    @keyframes updown{        0% {            transform: translateY(0px);        }        50% {            transform: translateY(-50px);        }        100% {            transform: translateY(0px);        }    }</style><div class="load"></div><div class="load2"></div>    </div></body></html>

 

css3 animation steps製作餓了麼loading

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.