Skip to content

Commit 7d92333

Browse files
author
TechStack Global
committed
style: smooth out deck card animations and fix image aspect ratio
1 parent 1739f89 commit 7d92333

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

index.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ <h1>Make Smarter <br /><span class="gradient-text">Tech Decisions.</span>
139139
will-change: transform, opacity;
140140
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
141141
/* Smooth transitions when dropping or clicking next */
142-
transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s linear;
142+
transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s linear;
143143
}
144144

145145
.deck-card:active {
@@ -148,12 +148,16 @@ <h1>Make Smarter <br /><span class="gradient-text">Tech Decisions.</span>
148148

149149
.deck-card img {
150150
width: 100%;
151-
height: auto;
152-
border-radius: 8px;
151+
height: 220px;
152+
border-radius: 12px;
153153
margin-bottom: 1rem;
154-
aspect-ratio: 16/9;
155-
object-fit: cover;
154+
object-fit: contain;
156155
pointer-events: none;
156+
background: #ffffff;
157+
/* White bg frame to make transparent/cutout images pop */
158+
padding: 0.5rem;
159+
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
160+
/* Slight inner depth styling */
157161
}
158162

159163
.deck-card h3 {

0 commit comments

Comments
 (0)