Skip to content

Commit

Permalink
Added hover effect
Browse files Browse the repository at this point in the history
  • Loading branch information
SoNiC-HeRE committed Sep 1, 2023
1 parent b1d5ee6 commit c521922
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/Venue/venue.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Venue({ className, city }) {
<Link href={`/venue/${city.name}`}>
<div className={`w-[500px] cursor-pointer sm:w-auto ${className}`}>
<div className='w-[450px] sm:w-auto sm:h-[320px] card-bg flex items-center justify-center p-10'>
<img src={city.img} className='sm:w-[350px] h-[250px] rounded-lg' />
<img src={city.img} className='sm:w-[350px] h-[250px] rounded-lg hoverEffect' />
</div>

<div className='mt-[24px] w-[450px] sm:w-full'>
Expand Down
8 changes: 8 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,11 @@ mix-blend-mode: lighten;
0% {transform: translateX(0)}
100% {transform: translateX(200%)}
}

.hoverEffect{
transition: transform 0.3s ease-in-out; /* Add a smooth transition effect */
}

.hoverEffect:hover {
transform: scale(1.1); /* Scale the image by 10% on hover */
}

0 comments on commit c521922

Please sign in to comment.