最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

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

初始頁(yè)面刷新瀏覽器時(shí)有文字退出效果,但是我希望初始時(shí)沒(méi)有效果

<div?class="center_div">
	??	<img?src="img/bg.jpg"?width="280"?height="380"/>
????????<div?class="center_div_p">
????????	<p>我們一起向快樂(lè)出發(fā)</p>
??????????<p>憧憬,自由</p>
????????</div>
??????
	??</div>
*{padding:?0px;?margin:?0px;}
.center_div{width:280px;?height:?380px;?
??position:?relative;?margin:?auto;overflow:?hidden;
}
.center_div?.center_div_p{??position:?absolute;?top:0px;?left:0px;?}
.center_div?.center_div_p?p{?
??transition:?transform?0.5s;color:?#fff;?width:150px;line-height:?25px;transform:?translate(-150px,0px);
??}

.center_div:hover?.center_div_p?p{transform:?translate(0px,0px);}
.center_div?.center_div_p?p:nth-of-type(1){transition-delay:?0.5s;}
.center_div?.center_div_p?p:nth-of-type(2){transition-delay:?1s;}

麻煩老師幫我看看,如何達(dá)到初始時(shí)是沒(méi)有動(dòng)畫,只有鼠標(biāo)移動(dòng)到圖片上時(shí)才有動(dòng)畫?

正在回答

2 回答

對(duì)呀 這個(gè)問(wèn)題怎么解決?

0 回復(fù) 有任何疑惑可以回復(fù)我~
@charset?"utf-8";
*{margin:0px;padding:0px;}
figure{position:relative;width:33.33%;height:350px;overflow:hidden;float:left;}
figcaption{position:absolute;top:0px;left:0px;color:#FFF;font-family:"微軟雅黑";margin:5px?10px;}
@media?screen?and?(max-width:600px){
?figyre{width:100%}
}
@media?screen?and?(min-width:601px)?and?(max-width:1000px){
?figure{width:50%}
}
@media?screen?and?(min-width:1001px){
?figure{width:33.33%}
}
figure?figcaption?p,h2,div{transition:all?0.35s;}
figure?img{transition:all?0.35s;opacity:0.8;}
.test1{background:#2f0000;}
.test1?figcaption?p{background:#fff;color:#333;margin:5px;text-align:center;transform:translate(-130px,0px);}
.test1?figcaption{padding:20px;}
.test1:hover?figcaption?p{transform:translate(0px,0px);}
.test1?figcaption?p:nth-of-type(1){?transition-delay:0.05s;}
.test1?figcaption?p:nth-of-type(2){?transition-delay:0.1s;}
.test1?figcaption?p:nth-of-type(3){?transition-delay:0.15s;}
.test1:hover?img{transform:?translate(-50px,0);?opacity:0.5;}
<!doctype?html>
<html>
<head>
?<meta?http-equiv="content-type"?content="text/html;?charset=utf-8">?
????<link?href="style.css"?type="text/css"?rel="stylesheet">
?<title>動(dòng)畫效果</title>
</head>
<body>
?<figure>
?????<img?src="img/1.jpg">
?????<figcaption>
?????????<h2>平移動(dòng)畫</h2>
????????????<p>圖片描述</p>
????????????<p>圖片描述</p>
????????????<p>圖片描述</p>
????????</figcaption>
????</figure>
</body>
</html>

hover就是指鼠標(biāo)懸停事件,所以鼠標(biāo)懸停時(shí)就會(huì)觸發(fā)你所設(shè)置的動(dòng)畫效果。hover后的代碼就是設(shè)置的動(dòng)畫效果。

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

遠(yuǎn)縭… 提問(wèn)者

那我的代碼該怎么修改一下,剛才寫了旋轉(zhuǎn)的那個(gè)效果也是這樣的問(wèn)題,刷新頁(yè)面的時(shí)候看到有那個(gè)動(dòng)畫。
2016-05-31 回復(fù) 有任何疑惑可以回復(fù)我~
#2

慕絲8042145 回復(fù) 遠(yuǎn)縭… 提問(wèn)者

找到原因了么 大兄弟
2018-12-26 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
CSS3圖片動(dòng)態(tài)提示效果
  • 參與學(xué)習(xí)       53881    人
  • 解答問(wèn)題       149    個(gè)

實(shí)用的CSS3圖片動(dòng)態(tài)提示效果,熟練掌握CSS動(dòng)畫的制作技法

進(jìn)入課程

初始頁(yè)面刷新瀏覽器時(shí)有文字退出效果,但是我希望初始時(shí)沒(méi)有效果

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

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

幫助反饋 APP下載

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

公眾號(hào)

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