White and Red Nike Athletic Shoe
The white and red Air Jordan 1 is a timeless and iconic sneaker, blending classic simplicity with bold accents.
<div
class="card"
style="background-image: url(https://images.unsplash.com/photo-1566363384123-360c5f6bc369?q=80&w=3173&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D)"
>
<div class="card-title">White and Red Nike Athletic Shoe</div>
<p class="card-description">
The white and red Air Jordan 1 is a timeless and iconic sneaker, blending
classic simplicity with bold accents.
</p>
</div>
.card {
position: relative;
z-index: 1;
cursor: default;
border: 1px solid #44403c;
border-radius: 1em;
background-position: center;
background-size: cover;
padding: 1em;
aspect-ratio: 16/9;
width: 80%;
max-width: 25rem;
overflow: hidden;
color: white;
}
.card-title {
transition: opacity 300ms ease-in-out;
margin-block: 0.75em;
font-weight: bold;
font-size: 1em;
}
.card-description {
text-wrap: pretty;
transition: opacity 300ms ease-in-out;
margin-top: 0.75em;
max-width: 36ch;
font-size: 0.875em;
}
.card::before {
/* Adds a spotlight effect at left corner */
position: absolute;
inset: 0;
background: radial-gradient(200px at 0 0, #78716c50, transparent 80%);
content: '';
}
.card::after {
/* The sliding overlay */
position: absolute;
z-index: -1;
inset: 0;
background-color: #1c1917;
width: 100%;
height: 100%;
content: '';
}
.card:hover {
.card-title {
opacity: 0.5;
}
.card-description {
opacity: 0;
}
}
.card::after {
transform: scaleX(1);
transform-origin: left;
transition: transform 600ms ease-in-out;
}
.card:hover::after {
transform: scaleX(0);
transform-origin: right;
}