Free
Navbar
Movara Navbar
A navbar block extracted from the Movara template, available in Tailwind CSS.
0
9
A navbar block extracted from the Movara template, available in Tailwind CSS.
Free download · up to 5 blocks per day. Unlimited with All-Access
<!DOCTYPE html>
<html lang="en">
<head>
<script>
window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Movara Navbar | Tailwind CSS UI Block</title>
<meta name="description" content="A navbar block extracted from the Movara template, available in Tailwind CSS.">
<meta name="keywords" content="Movara, Tailwind CSS template, HTML website template, fitness template, gym website, class schedule, personal trainers, fitness app, membership pricing, workout studio">
<meta name="author" content="Let's templates">
<link rel="canonical" href="">
<meta property="og:type" content="product">
<meta property="og:site_name" content="Let's templates">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="">
<meta property="og:title" content="Movara | Tailwind CSS Health & Fitness Template">
<meta property="og:description" content="A friendly Tailwind CSS gym template with a bookable class schedule, weekly plan builder, trainer profiles and membership pricing.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="Movara template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="Movara | Tailwind CSS Health & Fitness Template">
<meta name="twitter:description" content="A friendly Tailwind CSS gym template with a bookable class schedule, weekly plan builder, trainer profiles and membership pricing.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="Movara template preview">
<script src="https://cdn.tailwindcss.com/3.4.17"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap" rel="stylesheet">
<script>
tailwind.config = {
theme: {
extend: {
colors: { leaf: { DEFAULT: '#a3e78c', deep: '#5fbf4a', soft: '#e3f7da' }, ink: { DEFAULT: '#1c1c1a', soft: '#3a3a36' }, sun: '#f6c25e', iris: '#98acf6', sage: '#a6c99d', cloud: '#f4f5f2' },
fontFamily: { sans: ['Jost', 'sans-serif'] }
}
}
}
</script>
<style>
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-out both page-fade-out; }
::view-transition-new(root) { animation: 220ms ease-in both page-fade-in; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
@keyframes drift-left { to { transform: translateX(-50%); } }
@keyframes drift-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
.drift-left { animation: drift-left 45s linear infinite; }
.drift-right { animation: drift-right 45s linear infinite; }
.drift-left:hover, .drift-right:hover { animation-play-state: paused; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.drift-left, .drift-right { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
</style>
</head>
<body class="bg-white font-sans text-ink antialiased">
<!-- preview canvas: shows overlay navbars on the original hero surface -->
<div class="block-preview-canvas" style="position:relative;min-height:12rem;background:#111827">
<!-- block:start navbar -->
<header class="absolute inset-x-0 top-0 text-white z-40">
<nav class="mx-auto grid max-w-7xl grid-cols-[1fr_auto_1fr] items-center gap-4 px-5 py-6 md:px-14 md:py-9" aria-label="Main">
<div class="flex items-center gap-6">
<button type="button" data-menu-toggle aria-controls="mobile-menu" aria-expanded="false" class="grid h-10 w-10 place-items-center rounded-full transition hover:bg-white/15" aria-label="Open menu"><i class="fa-solid fa-bars" aria-hidden="true"></i></button>
<ul class="hidden items-center gap-6 text-sm lg:flex">
<li><a href="about.html" class="border-b-2 pb-1 transition border-transparent opacity-80 hover:opacity-100">About</a></li>
<li><a href="services.html" class="border-b-2 pb-1 transition border-transparent opacity-80 hover:opacity-100">Services</a></li>
<li><a href="classes.html" class="border-b-2 pb-1 transition border-transparent opacity-80 hover:opacity-100">Classes</a></li>
<li><a href="trainers.html" class="border-b-2 pb-1 transition border-transparent opacity-80 hover:opacity-100">Trainers</a></li>
</ul>
</div>
<a href="index.html" class="flex items-center gap-2 text-2xl font-semibold tracking-tight"><svg viewBox="0 0 32 32" class="h-7 w-7" aria-hidden="true"><circle cx="16" cy="16" r="15" fill="#a3e78c"/><path d="M8 21c3-7 5-10 8-10s5 3 8 10" fill="none" stroke="#1c1c1a" stroke-width="3" stroke-linecap="round"/></svg>Movara</a>
<div class="flex justify-end">
<a href="pricing.html" class="flex items-center gap-2 rounded-full bg-leaf px-5 py-2.5 text-sm font-medium text-ink transition hover:bg-leaf-deep">Get started<i class="fa-solid fa-arrow-up rotate-45 text-xs" aria-hidden="true"></i></a>
</div>
</nav>
<div id="mobile-menu" class="absolute inset-x-5 top-full hidden rounded-3xl bg-white p-4 text-ink shadow-2xl md:inset-x-14">
<ul class="grid gap-1 text-lg sm:grid-cols-2">
<li><a href="index.html" aria-current="page" class="flex items-center justify-between rounded-2xl px-4 py-3 uppercase tracking-wide bg-leaf">Home<i class="fa-solid fa-arrow-up rotate-45 text-xs" aria-hidden="true"></i></a></li>
<li><a href="about.html" class="flex items-center justify-between rounded-2xl px-4 py-3 uppercase tracking-wide hover:bg-cloud">About<i class="fa-solid fa-arrow-up rotate-45 text-xs" aria-hidden="true"></i></a></li>
<li><a href="services.html" class="flex items-center justify-between rounded-2xl px-4 py-3 uppercase tracking-wide hover:bg-cloud">Services<i class="fa-solid fa-arrow-up rotate-45 text-xs" aria-hidden="true"></i></a></li>
<li><a href="classes.html" class="flex items-center justify-between rounded-2xl px-4 py-3 uppercase tracking-wide hover:bg-cloud">Classes<i class="fa-solid fa-arrow-up rotate-45 text-xs" aria-hidden="true"></i></a></li>
<li><a href="trainers.html" class="flex items-center justify-between rounded-2xl px-4 py-3 uppercase tracking-wide hover:bg-cloud">Trainers<i class="fa-solid fa-arrow-up rotate-45 text-xs" aria-hidden="true"></i></a></li>
<li><a href="pricing.html" class="flex items-center justify-between rounded-2xl px-4 py-3 uppercase tracking-wide hover:bg-cloud">Pricing<i class="fa-solid fa-arrow-up rotate-45 text-xs" aria-hidden="true"></i></a></li>
<li><a href="contact.html" class="flex items-center justify-between rounded-2xl px-4 py-3 uppercase tracking-wide hover:bg-cloud">Contact<i class="fa-solid fa-arrow-up rotate-45 text-xs" aria-hidden="true"></i></a></li>
</ul>
</div>
</header>
<!-- block:end navbar -->
</div>
<script>
const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
document.querySelectorAll('[data-menu-toggle]').forEach((button) => {
const menu = document.getElementById(button.getAttribute('aria-controls'));
button.addEventListener('click', () => {
const open = button.getAttribute('aria-expanded') === 'true';
button.setAttribute('aria-expanded', String(!open));
menu.classList.toggle('hidden', open);
});
});
document.querySelectorAll('[data-schedule]').forEach((root) => {
const tabs = [...root.querySelectorAll('[role="tab"]')];
const select = (tab, focus) => {
tabs.forEach((other) => { const on = other === tab; other.setAttribute('aria-selected', String(on)); other.tabIndex = on ? 0 : -1; document.getElementById(other.getAttribute('aria-controls')).hidden = !on; });
if (focus) tab.focus();
};
tabs.forEach((tab, i) => {
tab.addEventListener('click', () => select(tab));
tab.addEventListener('keydown', (event) => {
if (event.key === 'ArrowRight') select(tabs[(i + 1) % tabs.length], true);
if (event.key === 'ArrowLeft') select(tabs[(i - 1 + tabs.length) % tabs.length], true);
});
});
});
document.querySelectorAll('[data-booking]').forEach((row) => {
const button = row.querySelector('[data-book]');
const spots = row.querySelector('[data-spots]');
button.addEventListener('click', () => {
const booked = button.getAttribute('aria-pressed') !== 'true';
button.setAttribute('aria-pressed', String(booked));
button.textContent = booked ? 'Booked' : 'Book now';
spots.textContent = Number(spots.textContent) + (booked ? -1 : 1);
});
});
document.querySelectorAll('[data-planner]').forEach((root) => {
const data = JSON.parse(root.querySelector('[data-goal-data]').textContent);
const goals = [...root.querySelectorAll('[data-goal]')];
const output = root.querySelector('[data-sessions]');
const layouts = { 2: [1, 4], 3: [0, 2, 4], 4: [0, 1, 3, 5], 5: [0, 1, 3, 4, 5], 6: [0, 1, 2, 3, 4, 5] };
let goal = goals[0].dataset.goal;
let sessions = 3;
const render = () => {
const picks = layouts[sessions];
root.querySelectorAll('[data-day]').forEach((day) => {
const slot = picks.indexOf(Number(day.dataset.day));
day.dataset.on = String(slot >= 0);
day.querySelector('[data-day-class]').textContent = slot >= 0 ? data[goal].classes[slot] : 'Rest';
});
output.textContent = sessions;
root.querySelector('[data-plan-minutes]').textContent = sessions * 45;
root.querySelector('[data-plan-kcal]').textContent = (sessions * data[goal].kcal).toLocaleString('en-US');
root.querySelector('[data-plan-rest]').textContent = 7 - sessions;
};
goals.forEach((button) => button.addEventListener('click', () => {
goals.forEach((other) => other.setAttribute('aria-checked', String(other === button)));
goal = button.dataset.goal;
render();
}));
root.querySelectorAll('[data-sessions-step]').forEach((button) => button.addEventListener('click', () => {
sessions = Math.min(6, Math.max(2, sessions + Number(button.dataset.sessionsStep)));
render();
}));
});
if (watchMotion) {
document.documentElement.classList.add('reveal-ready');
const observer = new IntersectionObserver((entries) => entries.forEach((entry) => {
if (entry.isIntersecting) { entry.target.classList.add('is-visible'); observer.unobserve(entry.target); }
}), { threshold: 0.15 });
document.querySelectorAll('[data-reveal]').forEach((el) => observer.observe(el));
const counter = new IntersectionObserver((entries) => entries.forEach((entry) => {
if (!entry.isIntersecting) return;
const el = entry.target; const end = Number(el.dataset.count); const start = performance.now();
const tick = (now) => { const p = Math.min((now - start) / 900, 1); el.textContent = Math.round(end * p) + (p === 1 ? el.dataset.suffix : ''); if (p < 1) requestAnimationFrame(tick); };
requestAnimationFrame(tick); counter.unobserve(el);
}), { threshold: 0.5 });
document.querySelectorAll('[data-count]').forEach((el) => counter.observe(el));
}
</script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>
Premium
Health & Fitness
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.
Tailwind CSS · HTML download