Image caption

Image caption

A caption over a print, made readable by a dark scrim that eases in from nothing.

Scrim curve
A soft marble texture in sand, green and violet
Sand and fernMarble print on cotton paper, 50 × 70 cm, edition of 30

Both scrims end at the same darkness. The linear one starts with a line you can see across the print. The eased one starts so gently that the image seems to darken on its own, and the text still sits on enough contrast.

import { easingGradient } from "@reuse-sh/gradients";

// <figure class="print">
//   <img src="/prints/blue-hour.jpg" alt="…" />
//   <figcaption>Blue hour</figcaption>
// </figure>
const caption = document.querySelector(".print figcaption");
caption.style.backgroundImage = easingGradient({
  to: "rgb(0 0 0 / 0.6)",
  direction: "to bottom",
});

Hand this page to your coding agent.

Read https://reuse.sh/easing-gradients/guide.md and build an image caption over an eased scrim like https://reuse.sh/easing-gradients/examples/image-caption. Keep the principles the guide lists.