Story tile

CSS media card: a square tile with a category tag, a title over a gradient scrim, and an arrow chip that slides in as the image zooms.

The whole tile is one link with a 1:1 aspect-ratio and overflow: hidden. The image layer sits behind the text with z-index: -1 and isolation: isolate on the link; here it is a CSS gradient standing in for a photo, with a dark scrim at the bottom, and on hover it scales to 1.06 over 0.6 seconds. The arrow chip starts at opacity 0 and offset 6px, then moves into place on :hover and :focus-visible. prefers-reduced-motion removes the transitions.

Open preview
snippet.html34 lines
<a class="stl" href="#">
  <span class="stl__tag"><i></i>Video</span>
  <span class="stl__art" aria-hidden="true"></span>
  <span class="stl__body">
    <span class="stl__title">Own your own intelligence</span>
    <span class="stl__by">Talk by Priya Nandakumar</span>
  </span>
  <span class="stl__arrow" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M6 18 18 6M8 6h10v10" fill="none" stroke="currentColor" stroke-width="2"/></svg></span>
</a>

<style>
  .stl {
    --stl-ink: #ffffff;
    position: relative; display: block; width: min(15rem, 100%); aspect-ratio: 1; overflow: hidden; isolation: isolate;
    color: var(--stl-ink); text-decoration: none; background: #17202e;
    font-family: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  }
  .stl *, .stl *::before, .stl *::after { box-sizing: border-box; }
  .stl:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
  .stl__art { position: absolute; inset: 0; z-index: -1; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); background:
    radial-gradient(circle at 78% 24%, rgba(255, 196, 120, 0.9) 0 7%, transparent 7.5%),
    linear-gradient(to top, rgba(10, 14, 22, 0.85) 0 30%, transparent 62%),
    linear-gradient(180deg, #3a5f8c 0%, #8a6f9a 52%, #e0936a 100%); }
  .stl:hover .stl__art { transform: scale(1.06); }
  .stl__tag { position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font: 0.6875rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
  .stl__tag i { width: 1rem; height: 1rem; border-radius: 50%; background: currentColor; }
  .stl__body { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; gap: 0.6rem; }
  .stl__title { font-size: 1.25rem; line-height: 1.12; letter-spacing: -0.015em; }
  .stl__by { font-size: 0.8125rem; opacity: 0.85; }
  .stl__arrow { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #fff; color: #111; opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.25s, transform 0.25s; }
  .stl__arrow svg { width: 1.1rem; height: 1.1rem; }
  .stl:hover .stl__arrow, .stl:focus-visible .stl__arrow { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .stl__art, .stl__arrow { transition: none; } .stl:hover .stl__art { transform: none; } }
</style>

Kind
Component
Category
Card
Added
6 Nov 2026
Canvas
Centered
File
snippet.html
Size
34 lines · 2.4 KB
Inspired by
sequoiacap.com
  • dark
  • editorial
  • hover
  • media

One file: HTML, a style block and, when needed, a small script. Paste it anywhere. Nothing to install.