ホバー中に画像上に説明文を入れたいと思います。それを行う最善の方法は何ですか? jsが必要か、CSSソリューションがありますか?スニペットでホバーにimgを書く
代わりにdivを私は円形の形状で画像を持っています。 imgをホバリングすると、例のように少し大きくなります。
ありがとうございました。私の悪い @mehulmpt
.circle{
width: 150px;
height: 150px;
background: yellow;
border-radius: 100%;
text-align:center;
display: inline-block;
transition: all .2s ease-in-out;
}
.circle:hover{
transform: scale(1.1);
}
<div class="circle">
</div>
<div class="circle">
</div>
<div class="circle">
</div>
あなたはCSSで簡単に行うことができます。だからなぜjs? – orbit