溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

css3如何實現(xiàn)搜索等待動畫效果

發(fā)布時間:2022-02-28 14:42:34 來源:億速云 閱讀:125 作者:小新 欄目:web開發(fā)

這篇文章主要介紹css3如何實現(xiàn)搜索等待動畫效果,文中介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們一定要看完!

    <html>

    <head>

    <linkrel="stylesheet"href="//at.alicdn.com/t/font_720452_mhj331xuxd8.css">

    <style>

    *{

    margin:0;

    padding:0;

    }

    .load-icon{

    left:0;

    right:0;

    bottom:0;

    top:0;

    margin:auto;

    display:flex;

    justify-content:center;

    align-items:center;

    position:fixed;

    }

    .load-icon>div{

    width:100px;

    height:100px;

    border-radius:50%;

    border:8pxsolidtransparent;

    border-left-color:rgba(35,196,81,1);

    animation:animate1slinearinfinite;

    }

    .load-icon>span{

    position:absolute;

    color:#fff;

    text-shadow:1px3px5px#333;

    width:80px;

    height:80px;

    border:8pxsolidtransparent;

    overflow:hidden;

    display:flex;

    justify-content:center;

    align-items:center;

    }

    .load-icon>span>i{

    font-size:50px;

    animation:animate13slinearinfinite;

    }

    .load-icon>span>span{

    font-size:50px;

    animation:shadow3slinearinfinite;

    color:rgba(35,196,81,1);

    overflow:hidden;

    position:absolute;

    top:13px;

    }

    @keyframesanimate{

    0%{transform:rotate(0deg);box-shadow:inset005pxrgba(35,196,81,.1)}

    50%{box-shadow:inset005pxrgba(35,196,81,1)}

    100%{transform:rotate(360deg);box-shadow:inset005pxrgba(35,196,81,.1)}

    }

    @keyframesanimate1{

    0%{transform:translate3d(150%,0,0);}

    30%{transform:translate3d(0%,0,0);}

    70%{transform:translate3d(0%,0,0);}

    100%{transform:translate3d(-150%,0,0);}

    }

    @keyframesshadow{

    0%{transform:translate3d(150%,0,0);height:0%}

    30%{transform:translate3d(0%,0,0);height:0%}

    70%{transform:translate3d(0%,0,0);height:100%}

    100%{transform:translate3d(-150%,0,0);height:100%}

    }

    </style>

    </head>

    <body>

    <divclass="load-icon">

    <span>

    <iclass="iconfonticon-sousuo"></i>

    <spanclass="iconfonticon-sousuo"></span>

    </span>

    <div></div>

    </div>

    </body>

    </html>

以上是“css3如何實現(xiàn)搜索等待動畫效果”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI