Quote Card Accent
Quotation marks and the attribution rule gain emphasis when a testimonial card is hovered.
Quotation marks and the attribution rule gain emphasis when a testimonial card is hovered.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<figure class="tbx-1047" tabindex="0"><span class="tbx-1047__mark" aria-hidden="true">“</span><blockquote>Easy communication made all the difference.</blockquote><figcaption><span class="tbx-1047__rule" aria-hidden="true"></span>Customer feedback</figcaption></figure>
.tbx-1047{width:min(260px,100%);position:relative;display:flex;flex-direction:column;gap:10px;margin:0;padding:19px 18px 16px;border-radius:9px;border:1px solid #dfd9cd;background:#fffaf3;color:#4a443c;box-shadow:0 4px 12px #553e2408;font-family:system-ui;transition:border-color .3s,background .3s}
.tbx-1047__mark{height:34px;font:bold 58px/1 Georgia,serif;color:#d8b8a4;transform-origin:left bottom;transition:transform .32s,color .32s}
.tbx-1047 blockquote{font-weight:650;font-size:13px;line-height:1.75;margin:0}.tbx-1047 figcaption{display:flex;gap:8px;align-items:center;font-size:10px;color:#8a7767}
.tbx-1047__rule{height:1px;width:17px;background:#bc9279;transition:width .3s}
.tbx-1047:is(:hover,:focus-visible){border-color:#c9957b;background:#fff4e7}
.tbx-1047:is(:hover,:focus-visible) .tbx-1047__mark{transform:translateY(-4px) rotate(-6deg);color:#bf7d60}
.tbx-1047:is(:hover,:focus-visible) .tbx-1047__rule{width:36px}
.tbx-1047:focus-visible{outline:3px solid #c78b5f;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.tbx-1047,.tbx-1047__mark,.tbx-1047__rule{transition:none}}
How to Use
Insert the HTML and add the CSS to your stylesheet. Adjust colors and sizes and avoid class conflicts.
Use Case
Useful for testimonials sections and service pages.
Technical Notes
Keep controls usable on touch devices. Test keyboard focus and reduced-motion preferences.
Mobile: Ensure the interactive content remains accessible without hover on touch devices.
Browser: Uses modern CSS. Check behavior in the browsers you support.
Reduced Motion: Check that prefers-reduced-motion is respected.