第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

關(guān)于animation-fill-mode:both

在9-9中設(shè)置both不應(yīng)該是最后變?yōu)榧t色嗎,執(zhí)行的結(jié)果卻是藍(lán)色,不明白

正在回答

4 回答

backwards不是決定最終樣式的,它表示元素應(yīng)用動畫時是否立即應(yīng)用動畫的初始幀,forwards表示動畫執(zhí)行完后停止在最后一幀的位置,最后一幀是什么樣式,結(jié)果就是什么樣式,明白?

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

小黍 提問者

大概懂了,forwards是表示動畫執(zhí)行完后停在最后一幀,就是最后一個鏡頭,不管是位置還是樣式,backwards是決定在 animation-delay 所指定的一段時間后,在動畫顯示之前,應(yīng)用第一幀設(shè)置的屬性也就是0%時的設(shè)置。所以兩者不矛盾,就相當(dāng)于拍視頻一個是告訴你視屏一開始應(yīng)該在什么地方擺什么樣的pose,一個是告訴最后應(yīng)該出現(xiàn)在哪個地方做什么,不知道我這樣描述是否正確,和你有沒理解到一個點(diǎn)
2016-12-27 回復(fù) 有任何疑惑可以回復(fù)我~

@keyframes redToBlue{

? from{

? ? background: red;

? }

? 20%{

? ? ? background:green;

? }

? 40%{

? ? ? background:lime;

? }

? 60%{

? ? ? background:yellow;

? }

? to{

? ? background:blue;

? }

}

.div1 {

? width: 50px;

? height: 50px;

? background: orange;

? margin: 20px auto;

? animation-name:redToBlue;

? animation-duration: 5s;

? animation-timing-function: ease;

? animation-delay: 2s;

? animation-fill-mode: none;?

}


.div2 {

? width: 50px;

? height: 50px;

? background: orange;

? margin: 20px auto;

? animation-name:redToBlue;

? animation-duration: 5s;

? animation-timing-function: ease;

? animation-delay: 2s;

? animation-fill-mode: forwards;?

}

.div3 {

? width: 50px;

? height: 50px;

? background: orange;

? margin: 20px auto;

? animation-name:redToBlue;

? animation-duration: 5s;

? animation-timing-function: ease;

? animation-delay: 2s;

? animation-fill-mode: backwards;?

}

.div4 {

? width: 50px;

? height: 50px;

? background: orange;

? margin: 20px auto;

? animation-name:redToBlue;

? animation-duration: 5s;

? animation-timing-function: ease;

? animation-delay: 2s;

? animation-fill-mode: both;?

}

自己去感受 ?四個div 四個class

0 回復(fù) 有任何疑惑可以回復(fù)我~

嗯,你這次描述的很正確?。?/p>

0 回復(fù) 有任何疑惑可以回復(fù)我~

設(shè)置為both,包括設(shè)置了forwards和backwards,如果設(shè)置了forwards就會在動畫執(zhí)行完后停止在最后一幀上,由于最后一幀是藍(lán)色,所以執(zhí)行結(jié)果就是藍(lán)色。

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

小黍 提問者

forwords是在動畫執(zhí)行完后停止在最后一幀的位置,backwords是動畫執(zhí)行完后元素會回到第一幀的樣式,一個決定樣式一個決定位置的,both是同時具有兩個參數(shù)的效果,如果如你所說,那就矛盾了
2016-12-24 回復(fù) 有任何疑惑可以回復(fù)我~
#2

VictorChan 回復(fù) 小黍 提問者

backwords不是執(zhí)行完回到第一幀 是動畫開始前提前放到第一幀 這樣動畫就能迅速開始運(yùn)行, 默認(rèn)才是結(jié)束回到第一幀
2018-06-22 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

關(guān)于animation-fill-mode:both

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號