亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

3行文字退出時的效果

文字退出的時候不像進入的時候一個一個進入,是一起退出的。

figure{width: 33.33%; height: 400px; float:left; overflow: hidden; padding: 0px; position: relative;}

figure figcaption{position: absolute; left: 0px; top: 0px;}

figure ?img{transition: all .35s; opacity: 0.8;}

figure figcaption p,figure figcaption h2,figure figcaption span ,figure figcaption div{transition: all .35s;}



@media screen and ?(max-width: 600px) {

? ?figure{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%;}?

}


.test1{ background: #f00; }

.test1 figcaption{padding: 20px}

.test1 ?figcaption p{ background:#fff; color: #f00;margin:5px; text-align:center; transform: translate(-120px ,0px);}

.test1:hover figcaption p{transform:translate(0px,0px)}

.test1:hover figcaption p:nth-of-type(1){transition-delay: 0.05s;}

.test1:hover figcaption p:nth-of-type(2){transition-delay: 0.15s;}

.test1:hover figcaption p:nth-of-type(3){transition-delay: 0.25s;}

.test1:hover ?img{ transform: translate(-100px, 0px); opacity:0.5;}



<figure class="test1">

<img src="../Images/video/sp.jpg" alt="" />

<figcaption>

<h2>圖片標題</h2>

<p>圖片注解</p>

<p>圖片注解</p>

<p>圖片注解</p>

</figcaption>

</figure>


正在回答

1 回答

all后面少了0

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
CSS3圖片動態提示效果
  • 參與學習       53887    人
  • 解答問題       149    個

實用的CSS3圖片動態提示效果,熟練掌握CSS動畫的制作技法

進入課程

3行文字退出時的效果

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號