Skip to content

Commit

Permalink
Update style.css
Browse files Browse the repository at this point in the history
  • Loading branch information
coara-chocomaru authored Jan 27, 2025
1 parent 4bf8525 commit 6e8758b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,28 @@ h1 {
position: relative;
}

/* 画像のスタイル */
.character-img {
width: 150px;
height: auto;
border-radius: 50%;
transition: transform 0.3s, box-shadow 0.3s;
object-fit: cover; /* 画像の切り抜きを適切に調整 */
position: relative;
}

/* 透明なオーバーレイを追加 */
.character-img-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: transparent;
pointer-events: all; /* 画像部分への操作を無効化 */
}

/* 画像のホバーエフェクト */
.character-img:hover {
transform: scale(1.1); /* 画像が少し大きくなる */
box-shadow: 0 0 15px rgba(255, 105, 180, 0.6); /* ふわっと浮かび上がる */
Expand Down

0 comments on commit 6e8758b

Please sign in to comment.