Skip to content

Commit

Permalink
Hover Effect and Blinking Cursor for Improved Interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer413 authored May 13, 2024
1 parent 0f00672 commit 7d1d548
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Frontend/src/pages/homepage/homepage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,30 @@
margin-top: 4rem;
cursor: text;
box-shadow: -0px 0px 8px 0 rgb(0, 0, 0, 0.2);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.leftSection .chatWithUs:hover{
cursor: pointer;
background-color: #fbbf4e; /* Change background color on hover */
box-shadow: 0px 4px 12px 0 rgba(0, 0, 0, 0.3); /* Change box shadow on hover */
}
.chatWithUs .cursor {
border: 1px solid rgb(0, 0, 0, 0.5);
margin-left: 2px;
margin-left: 4px;
animation: blink-cursor-animation 1s infinite ease;
}

@keyframes blink-cursor-animation {
0%{
opacity: 1;
}
50%{
opacity: 0;
}
100%{
opacity: 1;
}
}

/* add keyframes to animate the cursor */
Expand Down

0 comments on commit 7d1d548

Please sign in to comment.