We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa5fe12 + dbe3f43 commit 6a8a173Copy full SHA for 6a8a173
src/components/Card.module.css
@@ -11,9 +11,9 @@
11
flex-direction: column;
12
align-items: center;
13
border-radius: 10px;
14
- box-shadow: 0 4px 8px rgba(0,0,0,0.1);
15
overflow: hidden;
16
margin: 10px;
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
17
}
18
19
.newLabel {
@@ -32,10 +32,16 @@
32
width: 100%;
33
height: 200px;
34
object-fit: cover;
35
+ transition: transform 0.3s ease;
36
+}
37
+
38
+.card:hover .cardImage {
39
+ transform: scale(1.03);
40
41
42
.card:hover {
- 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);
45
46
47
.cardHeader {
0 commit comments