Skip to content

Commit 6a8a173

Browse files
Merge pull request #54 from Pioreactor/codex/standardize-hover-effects-on-pages
Unify hover effects on cards
2 parents aa5fe12 + dbe3f43 commit 6a8a173

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/Card.module.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
flex-direction: column;
1212
align-items: center;
1313
border-radius: 10px;
14-
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
1514
overflow: hidden;
1615
margin: 10px;
16+
transition: transform 0.3s ease, box-shadow 0.3s ease;
1717
}
1818

1919
.newLabel {
@@ -32,10 +32,16 @@
3232
width: 100%;
3333
height: 200px;
3434
object-fit: cover;
35+
transition: transform 0.3s ease;
36+
}
37+
38+
.card:hover .cardImage {
39+
transform: scale(1.03);
3540
}
3641

3742
.card:hover {
38-
transform: scale(1.05); /* Optional: scale up on hover */
43+
transform: translateY(-1px);
44+
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
3945
}
4046

4147
.cardHeader {

0 commit comments

Comments
 (0)