Trial Progress Card
A copy-paste pricing tables component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Pricing TablesHTMLCSSany framework
Pro TrialDay 5 of 14
Copy into your project
HTML
<!-- Trial Progress Card — fill grows in then shimmers gently -->
<div class="nuda-pr2-trial-progress">
<div class="nuda-pr2-trial-progress__head">
<span class="nuda-pr2-trial-progress__name">Pro Trial</span>
<span class="nuda-pr2-trial-progress__badge">Day 5 of 14</span>
</div>
<div class="nuda-pr2-trial-progress__bar" role="progressbar" aria-valuenow="36" aria-valuemin="0" aria-valuemax="100" aria-label="Trial progress">
<span class="nuda-pr2-trial-progress__fill" style="--p:.36"></span>
</div>
<p class="nuda-pr2-trial-progress__meta">9 days left · then $29/mo</p>
<button class="nuda-pr2-trial-progress__btn" type="button">Add payment method</button>
</div>CSS
.nuda-pr2-trial-progress {
display: flex;
flex-direction: column;
gap: 8px;
padding: 14px;
width: 180px;
background: rgba(255,255,255,.03);
border: 1px solid rgba(255,255,255,.08);
border-radius: 12px;
}
.nuda-pr2-trial-progress__head {
display: flex;
align-items: center;
justify-content: space-between;
}
.nuda-pr2-trial-progress__name {
font: 700 11px ui-sans-serif,system-ui;
color: #fafafa;
}
.nuda-pr2-trial-progress__badge {
font: 700 8px ui-sans-serif,system-ui;
color: #e4ff54;
background: rgba(228,255,84,.12);
padding: 2px 6px;
border-radius: 999px;
text-transform: uppercase;
letter-spacing: .04em;
}
.nuda-pr2-trial-progress__bar {
position: relative;
height: 6px;
border-radius: 999px;
background: rgba(255,255,255,.08);
overflow: hidden;
}
.nuda-pr2-trial-progress__fill {
position: absolute;
inset: 0;
transform: scaleX(0);
transform-origin: left;
border-radius: 999px;
background: linear-gradient(90deg,#e4ff54,#a8c93a,#e4ff54);
background-size: 200% 100%;
animation: nuda-pr2-trial-progress-grow .6s cubic-bezier(.4,0,.2,1) .1s forwards,nuda-pr2-trial-progress-shimmer 2.4s linear 1s infinite;
}
.nuda-pr2-trial-progress__meta {
font: 500 10px ui-sans-serif,system-ui;
color: #a1a1aa;
margin: 0;
}
.nuda-pr2-trial-progress__btn {
min-height: 44px;
padding: 0 14px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #e4ff54;
border: none;
color: #09090b;
border-radius: 8px;
font: 700 11px ui-sans-serif,system-ui;
cursor: pointer;
transition: transform .2s,box-shadow .25s;
}
.nuda-pr2-trial-progress__btn:hover {
transform: translateY(-1px);
box-shadow: 0 0 16px rgba(228,255,84,.4);
}
.nuda-pr2-trial-progress__btn:focus-visible {
outline: 2px solid #fafafa;
outline-offset: 2px;
}
@keyframes nuda-pr2-trial-progress-grow {
to {
transform: scaleX(var(--p));
}
}
@keyframes nuda-pr2-trial-progress-shimmer {
to {
background-position: -200% 0;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-pr2-trial-progress__fill {
animation: none !important;
transform: scaleX(var(--p));
}
.nuda-pr2-trial-progress__btn {
transition: none;
}
}
How to use Trial Progress 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.