今天就跟大家聊聊有關(guān)CSS中怎么實(shí)現(xiàn)橫向粒子變動(dòng)加載動(dòng)畫,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結(jié)了以下內(nèi)容,希望大家根據(jù)這篇文章可以有所收獲。
● animation-fill-mode屬性規(guī)定動(dòng)畫在播放之前或之后,其動(dòng)畫效果是否可見。
none:不改變默認(rèn)行為。
forwards:當(dāng)動(dòng)畫完成后,保持最后一個(gè)屬性值(在最后一個(gè)關(guān)鍵幀中定義)。
backwards:在animation-delay所指定的一段時(shí)間內(nèi),在動(dòng)畫顯示之前,應(yīng)用開始屬性值(在第一個(gè)關(guān)鍵幀
中定義)。
both: 向前和向后填充模式都被應(yīng)用。
● animation-delay屬性定義動(dòng)畫何時(shí)開始。該屬性允許負(fù)值,示例中延遲0.16s執(zhí)行動(dòng)畫。
#loader7:before, #loader7:after, #loader7 { border-radius: 50%; width: 2.5em; height: 2.5em; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation: load7 1.8s infinite ease-in-out; animation: load7 1.8s infinite ease-in-out; } #loader7 { margin: 60px 50px; float: left; font-size: 10px; position: relative; text-indent: -9999em; -webkit-animation-delay: 0.16s; animation-delay: 0.16s; } #loader7:before { left: -3.5em; } #loader7:after { left: 3.5em; -webkit-animation-delay: 0.32s; animation-delay: 0.32s; } #loader7:before, #loader7:after { content: ''; position: absolute; top: 0; } @-webkit-keyframes load7 { 0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em #000000; } 40% { box-shadow: 0 2.5em 0 0 #000000; } } @keyframes load7 { 0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em #000000; } 40% { box-shadow: 0 2.5em 0 0 #000000; } }
看完上述內(nèi)容,你們對(duì)CSS中怎么實(shí)現(xiàn)橫向粒子變動(dòng)加載動(dòng)畫有進(jìn)一步的了解嗎?如果還想了解更多知識(shí)或者相關(guān)內(nèi)容,請(qǐng)關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝大家的支持。
本文標(biāo)題:CSS中怎么實(shí)現(xiàn)橫向粒子變動(dòng)加載動(dòng)畫-創(chuàng)新互聯(lián)
網(wǎng)站URL:http://aaarwkj.com/article42/dopjhc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、網(wǎng)站設(shè)計(jì)、小程序開發(fā)、網(wǎng)站改版、關(guān)鍵詞優(yōu)化、網(wǎng)頁(yè)設(shè)計(jì)公司
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容