Video testimonial card
CSS video testimonial card: a tall photo card with the speaker's name on top and a round orange play button. Slow zoom and a ring on hover.
The card is a figure with aspect-ratio: 384 / 440 and overflow: hidden. The scene behind it is a gradient plus three shapes standing in for a photo, and on hover it scales to 1.05 over 0.6 seconds, with an ::after layer darkening the top and bottom so the name and button stay readable. The play button is pinned bottom left; on hover it scales up and its box-shadow grows from nothing to a 10px translucent ring, which is a transition, not a looping animation. The button's aria-label names the speaker and it has no click handler, so you add the video yourself.
snippet.html24 lines
<figure class="vtc">
<div class="vtc__scene" aria-hidden="true"><i></i><i></i><i></i></div>
<figcaption class="vtc__who"><strong>Maya Okafor</strong>Owner of Fairview Wine & Spirits</figcaption>
<button class="vtc__play" type="button" aria-label="Play story: Maya Okafor, Fairview Wine and Spirits"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5v14l11-7z" fill="currentColor"/></svg></button>
</figure>
<style>
.vtc { --vtc-accent:#ff4d00; position:relative; width:min(100%,260px); aspect-ratio:384 / 440; margin:0; border-radius:16px; overflow:hidden; background:#2a1c10; color:#fff; font-family:Inter,ui-sans-serif,system-ui,"Segoe UI",sans-serif; }
.vtc__scene { position:absolute; inset:0; background:linear-gradient(180deg,#6b4423,#3a2412 60%,#1b110a), repeating-linear-gradient(180deg,transparent 0 60px,rgb(0 0 0 / .3) 60px 64px); background-blend-mode:normal; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.vtc__scene::before { content:""; position:absolute; inset:0; background:repeating-linear-gradient(90deg,transparent 0 22px,rgb(255 210 150 / .1) 22px 26px); }
.vtc__scene i { position:absolute; bottom:0; }
.vtc__scene i:nth-child(1) { left:22%; width:56%; height:62%; border-radius:90px 90px 0 0; background:#9a9a96; }
.vtc__scene i:nth-child(2) { left:38%; bottom:56%; width:24%; aspect-ratio:1; border-radius:50%; background:#d29a74; }
.vtc__scene i:nth-child(3) { right:6%; width:14%; height:32%; border-radius:30px 30px 0 0; background:#2f5d4a; }
.vtc:hover .vtc__scene { transform:scale(1.05); }
.vtc::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgb(0 0 0 / .55),transparent 35%,transparent 65%,rgb(0 0 0 / .45)); pointer-events:none; }
.vtc__who { position:absolute; z-index:1; top:1rem; left:1.25rem; right:1rem; font-size:.875rem; line-height:1.45; color:#e9e9e9; }
.vtc__who strong { display:block; font-weight:500; color:#fff; }
.vtc__play { position:absolute; z-index:1; left:1.25rem; bottom:1rem; width:44px; height:48px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--vtc-accent); color:#fff; cursor:pointer; box-shadow:0 0 0 0 rgb(255 77 0 / .5); transition:transform .2s, box-shadow .3s; }
.vtc__play svg { width:22px; height:22px; margin-left:2px; }
.vtc__play:hover, .vtc:hover .vtc__play { transform:scale(1.1); box-shadow:0 0 0 10px rgb(255 77 0 / .2); }
.vtc__play:focus-visible { outline:2px solid #fff; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { .vtc__scene, .vtc__play { transition:none; } .vtc:hover .vtc__scene, .vtc:hover .vtc__play { transform:none; } }
</style>