Skip to content

Commit

Permalink
Adding hover effects to the audio book cards
Browse files Browse the repository at this point in the history
  • Loading branch information
sahithinandikula committed Oct 14, 2024
1 parent b583983 commit ad8c640
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion audiobook.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,11 @@
padding: 10px;
cursor: pointer;
margin-bottom: 10px;
transition: background-color 0.3s;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.play-pause-btn:hover {
background-color: #c04848; /* Darker shade on hover */
transform: scale(1.1);
}
.audio-slider {
width: 90%;
Expand All @@ -305,6 +306,37 @@
transform: scale(1.1); /* Zoom effect when playing */
}


.spotlight-card:hover {
transform: translateY(-20px); /* Hover lift effect */
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.spotlight-card .content {
transition: transform 0.3s ease;
}

.spotlight-card:hover .content {
transform: translateY(20px); /* Ensure content moves up within the card */
}

.spotlight-card .imgBx img {
border-radius: 15px 15px 0 0;
width: 100%;
height: 250px;
object-fit: cover;
transition: opacity 0.3s ease;
}

.spotlight-card:hover .imgBx img {
opacity: 0.9;
}

.spotlight-card:hover h3,
.spotlight-card:hover p {
color: #ff6347;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
body {
line-height: 1.5;
Expand Down

0 comments on commit ad8c640

Please sign in to comment.