Error: [$errno] $errstr
in file $errfile line $errline
.images{
width: 15%;
aspect-ratio: 3/2;
object-fit: contain;
mix-blend-mode: color-burn;
}
<figure class="card">
<img src="image.jpg" alt="...">
<figcaption>Example Image</figcaption>
</figure>
.card {
width: 30rem;
overflow: hidden;
display: grid;
grid-template-areas: "stack";
}
.card>*{
grid-area: stack;
}
.card>figcaption {
display: grid;
align-items: end;
padding: 1.5rem 2rem;
background-image: linear-gradient(to bottom,
rgb(33 44 55 / 0),
rgb(33 44 55 / 0),
rgb(33 44 55 / 0.75)
);
opacity: 0;
transition: opacity 300ms;
}
.card:hover figcaption{
opacity:1;
}