こんにちは、img にホバー効果を作成しようとしています。
HTML
<div>
<img src="http://placehold.it/350x150"/>
<div class="link-cont"><a href="#">click here to see more info</a></div>
</div>
CSS
div {
width: 350px;
position: relative;
}
.link-cont {
background: red;
position: absolute;
bottom: 0;
height: 100px;
opacity: 0;
transition: all 0.4s;
}
div:hover .link-cont {
opacity: 1;
bottom:-100px;
}
ユーザーがホバーしたときに、このようなものが必要です
しかし、私はこのようなものを得ています
誰かが私がやろうとしていることを達成するのを手伝ってくれますか..
jsFid--> http://jsfiddle.net/Nnd7w/