Retro TV carousel

A chrome-framed television drawn in CSS plays a snap-scrolling card carousel on its screen, with the two side dials acting as previous and next.

Open preview
snippet.html103 lines
<section class="rtv" id="rtv">
  <div class="rtv__head">
    <span class="rtv__tag">The difference</span>
    <h2 class="rtv__title">Plans the whole group owns.</h2>
    <p class="rtv__text">Sound familiar? A chat that buries every detail. A meeting time that moved twice. A route only one person has seen. It happens when one organizer holds the plan and everyone else just follows.</p>
  </div>

  <div class="rtv__set">
    <i class="rtv__ant rtv__ant--l" aria-hidden="true"></i>
    <i class="rtv__ant rtv__ant--r" aria-hidden="true"></i>
    <div class="rtv__body">
      <div class="rtv__bezel">
        <div class="rtv__screen">
          <ul class="rtv__track" tabindex="0" aria-label="Group planning benefits">
            <li class="rtv__card"><span class="rtv__icon" style="--a:#ff9a3c;--b:#e5483f"></span><h3>Anyone can add to the plan.</h3><p>No waiting on the organizer. Drop in a stop, let people vote, and it joins the schedule.</p></li>
            <li class="rtv__card"><span class="rtv__icon" style="--a:#4ec3f5;--b:#3a5bd9"></span><h3>Edit once, updated for all.</h3><p>Move a pickup time one time. Phones, calendars and alerts follow without anyone retyping it.</p></li>
            <li class="rtv__card"><span class="rtv__icon" style="--a:#9be15d;--b:#1f9d55"></span><h3>The paper trail stays put.</h3><p>Receipts, photos and notes sit in the plan itself, so the next outing picks up from here.</p></li>
            <li class="rtv__card"><span class="rtv__icon" style="--a:#ffd23f;--b:#ef7b00"></span><h3>Open questions don't get buried.</h3><p>Unanswered items rise to the top of the list until somebody replies.</p></li>
          </ul>
        </div>
      </div>
      <div class="rtv__panel">
        <button class="rtv__dial" type="button" data-dir="-1" aria-label="Previous"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20 12H5m6-7-7 7 7 7" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
        <button class="rtv__dial" type="button" data-dir="1" aria-label="Next"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 12h15m-6-7 7 7-7 7" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
        <span class="rtv__grille" aria-hidden="true"></span>
      </div>
    </div>
    <i class="rtv__leg rtv__leg--l" aria-hidden="true"></i>
    <i class="rtv__leg rtv__leg--r" aria-hidden="true"></i>
  </div>
</section>

<style>
  .rtv {
    --rtv-ink: #121a0e;
    --rtv-chrome: linear-gradient(135deg, #f4f5f7, #8e949c 45%, #e6e8eb 60%, #70767e);
    position: relative;
    box-sizing: border-box;
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
    background:
      radial-gradient(40% 18% at 12% 28%, #fff9 0 40%, #fff0 100%),
      radial-gradient(34% 16% at 88% 42%, #fffa 0 40%, #fff0 100%),
      radial-gradient(50% 20% at 30% 78%, #fff8 0 40%, #fff0 100%),
      #7db6e6;
    color: var(--rtv-ink);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  .rtv *, .rtv *::before, .rtv *::after { box-sizing: border-box; }
  .rtv__head { max-width: 640px; margin: 0 auto; text-align: center; }
  .rtv__tag { display: inline-block; padding: 0.1rem 0.5rem; border: 1px solid var(--rtv-ink); background: #fff; font-size: 0.9375rem; }
  .rtv__title { margin: 1.25rem 0 0.75rem; font: 500 clamp(2rem, 4vw, 2.75rem)/1.25 ui-serif, Georgia, serif; letter-spacing: -0.02em; }
  .rtv__text { margin: 0; font-size: 1rem; line-height: 1.5; color: rgb(18 26 14 / 0.65); }

  .rtv__set { position: relative; width: min(100%, 760px); margin: clamp(5rem, 11vw, 8rem) auto 0; }
  .rtv__ant { position: absolute; bottom: calc(100% - 6px); width: 3px; height: clamp(90px, 18vw, 150px); background: linear-gradient(90deg, #eee, #777); border-radius: 2px; transform-origin: bottom center; }
  .rtv__ant::after { content: ""; position: absolute; top: -4px; left: -3px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #666); }
  .rtv__ant--l { left: 30%; transform: rotate(-38deg); }
  .rtv__ant--r { right: 30%; transform: rotate(38deg); }
  .rtv__body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(90px, 20%, 150px); gap: clamp(0.5rem, 2vw, 1.25rem); padding: clamp(0.75rem, 2vw, 1.25rem); border-radius: clamp(28px, 6vw, 56px) clamp(28px, 6vw, 56px) 36px 36px; background: var(--rtv-chrome); box-shadow: inset 0 0 0 3px #fffc, 0 20px 40px -20px rgb(0 0 0 / 0.5); }
  .rtv__bezel { padding: clamp(8px, 1.6vw, 14px); border-radius: clamp(24px, 5vw, 48px); background: linear-gradient(135deg, #fff, #9aa0a8); }
  .rtv__screen { position: relative; height: clamp(260px, 42vw, 340px); border: clamp(6px, 1.2vw, 10px) solid #0b0f09; border-radius: clamp(22px, 4.5vw, 44px) / clamp(26px, 5vw, 50px); background: #9fd38d; overflow: hidden; box-shadow: inset 0 0 22px rgb(0 0 0 / 0.4); }
  .rtv__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #0000 0 3px, #0000000d 3px 4px); }
  .rtv__track { display: flex; gap: 12px; height: 100%; margin: 0; padding: 22px 20% 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
  .rtv__track::-webkit-scrollbar { display: none; }
  .rtv__track:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
  .rtv__card { flex: 0 0 clamp(150px, 62%, 260px); display: flex; flex-direction: column; justify-content: flex-end; scroll-snap-align: center; padding: 18px; border-radius: 18px 18px 0 0; background: #fff; }
  .rtv__card h3 { margin: 1rem 0 0.5rem; font: 500 clamp(1rem, 2.2vw, 1.375rem)/1.2 ui-serif, Georgia, serif; }
  .rtv__card p { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: rgb(18 26 14 / 0.65); }
  .rtv__icon { align-self: flex-start; width: 46px; height: 46px; margin-bottom: auto; border: 2px solid var(--rtv-ink); background: linear-gradient(135deg, var(--a), var(--b)); }
  .rtv__panel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0; border-radius: 14px; background: #15181b; }
  .rtv__dial { display: grid; place-items: center; width: clamp(58px, 70%, 92px); aspect-ratio: 1; padding: 0; border: 5px double #889; border-radius: 50%; background: radial-gradient(circle, #dbeaf5 0 55%, #4a4f55 100%); color: #0b0f09; cursor: pointer; transition: transform 0.15s; }
  .rtv__dial svg { width: 52%; }
  .rtv__dial:hover { transform: rotate(-12deg); }
  .rtv__dial:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .rtv__grille { flex: 1; width: 80%; min-height: 60px; border-radius: 10px; background: repeating-linear-gradient(0deg, #8e949c 0 3px, #2a2d31 3px 6px); }
  .rtv__leg { position: absolute; top: calc(100% - 8px); width: 14px; height: 40px; background: linear-gradient(90deg, #ddd, #666); }
  .rtv__leg--l { left: 12%; transform: skewX(18deg); } .rtv__leg--r { right: 12%; transform: skewX(-18deg); }
  @media (max-width: 520px) {
    .rtv__body { grid-template-columns: minmax(0, 1fr); }
    .rtv__panel { flex-direction: row; justify-content: center; padding: 10px; }
    .rtv__dial { width: 56px; } .rtv__grille { display: none; }
    .rtv__track { padding-left: 10%; padding-right: 10%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .rtv__track { scroll-behavior: auto; }
    .rtv__dial { transition: none; }
  }
</style>

<script>
  (function () {
    var root = document.getElementById("rtv");
    if (!root) return;
    var track = root.querySelector(".rtv__track");
    root.querySelectorAll(".rtv__dial").forEach(function (b) {
      b.addEventListener("click", function () {
        var card = track.querySelector(".rtv__card");
        track.scrollBy({ left: Number(b.dataset.dir) * (card.offsetWidth + 12) });
      });
    });
  })();
</script>

Kind
Section
Category
Features
Added
6 Nov 2026
Canvas
Full width
File
snippet.html
Size
103 lines · 7.8 KB
Inspired by
onhomeroom.com
  • illustration
  • carousel
  • playful
  • skeuomorphic

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