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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

這一節(jié)是不是講錯(cuò)了

animation-direction的屬性中,alternate,他的作用是,動(dòng)畫播放在第偶數(shù)次向前播放,第奇數(shù)次向反方向播放。這句話說反了吧?應(yīng)該是”播放次數(shù)是奇數(shù)時(shí),動(dòng)畫向原方向播放;播放次數(shù)是偶數(shù)時(shí),動(dòng)畫向反方向播放“大家覺得呢

正在回答

4 回答

用腦殼想一想大家都知道是錯(cuò)的,畢竟第一次它就是正向的,第二次才是反向的,明顯寫錯(cuò)了而已。

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

這里的奇數(shù)次不妨理解為奇數(shù)遍,就是播放第135遍的時(shí)候正方向

0 回復(fù) 有任何疑惑可以回復(fù)我~
<--這段代碼你運(yùn)行一下,看到效果你就理解了!-->
<!DOCTYPE?html>
<html>
<head>
<style>?
div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:myfirst?5s?infinite;
animation-direction:alternate;

/*?Safari?and?Chrome?*/
-webkit-animation:myfirst?5s?infinite;
-webkit-animation-direction:alternate;
}

@keyframes?myfirst
{
0%???{background:red;?left:0px;?top:0px;}
25%??{background:yellow;?left:200px;?top:0px;}
50%??{background:blue;?left:200px;?top:200px;}
75%??{background:green;?left:0px;?top:200px;}
100%?{background:red;?left:0px;?top:0px;}
}

@-webkit-keyframes?myfirst?/*?Safari?and?Chrome?*/
{
0%???{background:red;?left:0px;?top:0px;}
25%??{background:yellow;?left:200px;?top:0px;}
50%??{background:blue;?left:200px;?top:200px;}
75%??{background:green;?left:0px;?top:200px;}
100%?{background:red;?left:0px;?top:0px;}
}
</style>
</head>
<body>

<p><strong>注釋:</strong>Internet?Explorer?9?以及更早的版本不支持?animation-direction?屬性。</p>

<div></div>

</body>
</html>


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

normal ? ?每次循環(huán)都向正方向播放(默認(rèn)值) ? ?

reverse ? ?每次循環(huán)都向反方向播放 ? ?

alternate ? ?播放次數(shù)是奇數(shù)時(shí),動(dòng)畫向原方向播放;播放次數(shù)是偶數(shù)時(shí),動(dòng)畫向反方向播放 ? ?

這是我從別處看到的。


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

舉報(bào)

0/150
提交
取消

這一節(jié)是不是講錯(cuò)了

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

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

幫助反饋 APP下載

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

公眾號(hào)

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