1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
.animated-card {
background: white;
border-radius: 12px;
padding: 24px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
cursor: pointer;
position: relative;
overflow: hidden;
}
/* グラデーション背景の動的変化 */
.animated-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0) 100%);
transform: translateX(-100%);
transition: transform 0.6s ease;
z-index: 1;
}
.animated-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.animated-card:hover::before {
transform: translateX(100%);
}
/* カード内要素のアニメーション */
.card-title {
transition: color 0.3s ease;
}
.card-image {
transition: transform 0.5s ease;
}
.animated-card:hover .card-title {
color: #3498db;
}
.animated-card:hover .card-image {
transform: scale(1.1);
}
|