LoginSignup
0
0

More than 1 year has passed since last update.

hoverした時に画像を大きくする方法

Last updated at Posted at 2021-06-11
//css
img:hover{
   transform:scale(1.1,1.1);
   transition: 1s;
}
//hoverした時に画像を大きくする

hoverして画像を大きくしたいけど親要素からははみ出したくない場合

.sample{
  overflow: hidden;
  display: inline-block;
}
.sample img:hover{
  transform:scale(1.1,1.1);
  transition: 1s;
}

NuxtにTailwindcssで書きたいけど慣れてないから普通のcss書いてしまう...。
Tailwindcssはnth-childとか使えないから結構不便なんだよな〜
総合的にはいいのかもしれないけど。。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0