On my portfolio I have a hover effect on some cards, the problem is that if you hover just on the edge there is a weird effect where it changes scales very fast. Is there a fix for that?
https://rogojanraulportfolio.netlify.app/
>...the problem is that if you hover just on the edge there >is a weird effect where it changes scales very fast. > Is there a fix for that?
<div class="projects"> <div class="projects-grid"> <a href="summitTechProject.html" class="project-card project-1"></a> <a href="burgerRestaurantProject.html" class="project-card project-2"></a> <a href="carousel.html" class="project-card project-3"></a> <a href="toDoApp.html" class="project-card project-4"></a> </div> </div>
.project-card:hover { transform: scale(1.05); border: 3px solid var(--main-color); }
.project-card:hover > a {<br/> transform: scale(0.95);<br/> border: 3px solid var(--main-color);<br/> }
``<i> </i>Also using this HTML <div class="project-card project-1"> <a href="summitTechProject.html"> </div><i> </i>``
<i> </i>Also using this HTML <div class="project-card project-1"> <a href="summitTechProject.html"> </div><i> </i>
Help @codyhill spread the word by sharing this article on Twitter...