为什么按照老湿的方法就弄不出来底部掀起来一块的作业呢????
为什么按照老湿的方法就弄不出来底部掀起来一块的作业呢????
.test5{ background:#000;} .test5 figcaption{ width:100%; height:100%;} .test5 figcaption div{ background: #fff; width:130%; height:100%; position:absolute; transform:translate(0,35px) rotate(0deg); transform-origin:0 0; opacity:0.5;} .test5:hover figcaption div{transform:translate(0,35px) rotate(-15deg); opacity:0.9;} .test5:hover img{opacity:0.5;transform:translate(0,-10px);} .test5 figcaption h2{margin:15% 0 0 10%; transform:translate(0,50px); opacity:0;} .test5 figcaption p{ margin:50% 0 0 80%; transform:translate(0,50px); opacity:0; color:#000;} .test5:hover figcaption h2{ transform:translate(0,0); opacity:1; transition-delay:0.2s;} .test5:hover figcaption p{ transform:translate(0,0); opacity:1; transition-delay:0.3s;}
<figure class="test5"> <img src="005.jpg"> <figcaption> <h2>图片标题</h2> <p>斜角动画</p> <div></div> </figcaption> </figure>
现在效果是瞎搞出来了,但是P标签的黑色字却被挡在了后面