Skip to content

Sticky Bottom Bar

A copy-paste footers component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

FootersHTMLCSSany framework

Copy into your project

HTML
<div class="nuda-footer-sticky">
  <span>🍪 We use cookies. Strictly necessary ones.</span>
  <div class="nuda-footer-sticky__actions">
    <button class="nuda-footer-sticky__ghost">Decline</button>
    <button class="nuda-footer-sticky__primary">Accept</button>
  </div>
</div>
CSS
.nuda-footer-sticky {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fafafa;
  font-size: 12px;
  animation: nuda-sticky-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nuda-footer-sticky__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.nuda-footer-sticky__ghost,
.nuda-footer-sticky__primary {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 11px;
  cursor: pointer;
  border: 0;
  font-weight: 500;
  transition: transform 0.15s, filter 0.2s, background 0.2s;
}

.nuda-footer-sticky__ghost {
  background: transparent;
  color: #a0a0a8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nuda-footer-sticky__primary {
  background: #e4ff54;
  color: #09090b;
}

@keyframes nuda-sticky-rise {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-footer-sticky { animation: none; }
}

How to use Sticky Bottom Bar

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.

More footers components

← Browse all NudaUI components