Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve hover effect #790

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -872,14 +872,18 @@ body {
#CHAPTERS
\*-----------------------------------*/
.chapter-card {
height: 100%;
height: 100%;
background-color: var(--white);
padding: 25px;
border-radius: var(--radius-5);
box-shadow: var(--shadow-2);
position: relative;
/* Add position relative to .chapter-card */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for smooth effect */
transition: transform 0.4s ease, box-shadow 0.3s ease; /* Add transition for smooth effect */
cursor: pointer;/* add cursor for good for viewer*/



}

.chapter-card::before {
Expand All @@ -892,11 +896,15 @@ body {
height: 3px;
background-color: pink; /* Pink line color */
transition: width 0.3s ease; /* Transition width property */

}

.chapter-card:hover {
transform: scale(1.1); /* Increase scale on hover */
box-shadow: var(--shadow-3); /* Add shadow effect on hover */
transform: scale(20); /* Increase scale on hover */
box-shadow: var(--shadow-3); /* Add shadow effect on hover */



}

.chapter-card:hover::before {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ <h2 class="h2 section-title has-underline">
<ul class="grid-list">

<li>

<!---jfdb-->
<a class="cardo" href="#">
<h3 class="lithead">09. &nbsp;Romantic Escapes</h3>
<p class="small"> Immerse yourself in the enchanting world of love and passion with our curated selection of romance
Expand Down
Loading