“Felt like an unfair advantage. Our small team punches three weight classes up.”
Floating Quote Card
A copy-paste quotes & testimonials component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Quotes & TestimonialsHTMLCSSany framework
Copy into your project
HTML
<article class="nuda-float-quote">
<p>“Felt like an unfair advantage. Our small team punches three weight classes up.”</p>
<footer>
<span class="nuda-float-quote__avatar" aria-hidden="true">RC</span>
<div>
<div class="nuda-float-quote__name">Riya Chen</div>
<div class="nuda-float-quote__role">Founder, Beacon</div>
</div>
</footer>
</article>CSS
/* Floating Quote Card
Idle micro-bob + deeper lift on hover with layered shadows. */
.nuda-float-quote {
max-width: 380px;
padding: 1.5rem;
background: #111114;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
color: #fafafa;
font-family: ui-sans-serif, system-ui, sans-serif;
box-shadow:
0 1px 0 rgba(255, 255, 255, 0.04) inset,
0 8px 24px rgba(0, 0, 0, 0.35),
0 24px 64px rgba(0, 0, 0, 0.40);
transition:
transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
animation: nuda-fq-float 6s ease-in-out infinite;
}
@keyframes nuda-fq-float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-4px); }
}
.nuda-float-quote:hover {
transform: translateY(-8px);
box-shadow:
0 1px 0 rgba(255, 255, 255, 0.06) inset,
0 12px 32px rgba(0, 0, 0, 0.45),
0 32px 80px rgba(0, 0, 0, 0.50);
}
.nuda-float-quote p {
margin: 0 0 1.25rem;
font-size: 0.9375rem;
line-height: 1.55;
}
.nuda-float-quote footer {
display: flex;
align-items: center;
gap: 0.75rem;
}
.nuda-float-quote__avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #ff6dd4, #9d6dff);
display: grid;
place-items: center;
font-size: 0.75rem;
font-weight: 700;
color: #fafafa;
flex-shrink: 0;
}
.nuda-float-quote__name {
font-size: 0.8125rem;
font-weight: 600;
line-height: 1.2;
}
.nuda-float-quote__role {
margin-top: 0.125rem;
font-size: 0.6875rem;
color: #a0a0a8;
}
@media (prefers-reduced-motion: reduce) {
.nuda-float-quote { animation: none; transition: none; }
.nuda-float-quote:hover { transform: none; }
}How to use Floating Quote Card
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.