Unlock every premium block and template with All-Access from $20 / 3 months, cancel anytime. Get All-Access
All blocks
Free Marquee

Fennly Marquee

A marquee block extracted from the Fennly template, available in Tailwind CSS.

0 33
Fennly Marquee preview

Download Codebase

Commercial License

Free download · up to 5 blocks per day. Unlimited with All-Access

fennly.html
<!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>Fennly Marquee | Tailwind CSS UI Block</title>
  <meta name="description" content="A marquee block extracted from the Fennly template, available in Tailwind CSS.">
  <meta name="keywords" content="Fennly, Tailwind CSS template, HTML website template, ecommerce template, meal delivery website, healthy food shop, meal plan subscription, nutrition, food ordering, salad bar">
  <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="Fennly | Tailwind CSS Ecommerce Template">
  <meta property="og:description" content="A fresh Tailwind CSS ecommerce template for healthy meal delivery, with meal tabs, a calorie card, an interactive ordering process and a plan carousel.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Fennly template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Fennly | Tailwind CSS Ecommerce Template">
  <meta name="twitter:description" content="A fresh Tailwind CSS ecommerce template for healthy meal delivery, with meal tabs, a calorie card, an interactive ordering process and a plan carousel.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Fennly 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=Figtree:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: { forest: { DEFAULT: '#0f4b3c', deep: '#0a3529' }, cream: '#fdfbf1', sand: { DEFAULT: '#f3efe3', deep: '#e9e3d1' }, mint: '#e2ebe2', ink: '#141414' },
          fontFamily: { sans: ['Figtree', '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; } }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .no-scrollbar { scrollbar-width: none; }
    .no-scrollbar::-webkit-scrollbar { display: none; }
    .marquee-track { animation: marquee 40s linear infinite; }
    @keyframes marquee { to { transform: translateX(-50%); } }
    .marquee:hover .marquee-track { animation-play-state: paused; }
    .swap { transition: opacity .35s ease; }
    .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; }
      .marquee-track { animation: none; }
      .swap { transition: none; }
      ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    }
  </style>
</head>
<body class="bg-cream font-sans text-ink antialiased">
<!-- block:start marquee -->
  <div class="marquee overflow-hidden bg-mint py-4 text-ink/70" aria-label="Fennly promises">
    <ul class="marquee-track flex w-max gap-10 whitespace-nowrap">
          <li class="flex items-center gap-10" ><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>Cooked fresh each morning</li>
          <li class="flex items-center gap-10" ><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>No added sugar</li>
          <li class="flex items-center gap-10" ><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>100% real ingredients</li>
          <li class="flex items-center gap-10" ><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>High in protein</li>
          <li class="flex items-center gap-10" ><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>Balanced by nutritionists</li>
          <li class="flex items-center gap-10" ><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>Gluten-free options</li>
          <li class="flex items-center gap-10" ><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>Calories on every label</li>
          <li class="flex items-center gap-10" aria-hidden="true"><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>Cooked fresh each morning</li>
          <li class="flex items-center gap-10" aria-hidden="true"><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>No added sugar</li>
          <li class="flex items-center gap-10" aria-hidden="true"><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>100% real ingredients</li>
          <li class="flex items-center gap-10" aria-hidden="true"><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>High in protein</li>
          <li class="flex items-center gap-10" aria-hidden="true"><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>Balanced by nutritionists</li>
          <li class="flex items-center gap-10" aria-hidden="true"><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>Gluten-free options</li>
          <li class="flex items-center gap-10" aria-hidden="true"><i class="fa-solid fa-leaf text-forest" aria-hidden="true"></i>Calories on every label</li>
    </ul>
  </div>
  <!-- block:end marquee -->
<script>
    const reducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const watchMotion = !reducedMotion && !navigator.webdriver && 'IntersectionObserver' in window;
    const cart = { get: () => { try { return JSON.parse(localStorage.getItem('fennly-cart')) || []; } catch (error) { return []; } }, set: (value) => { try { localStorage.setItem('fennly-cart', JSON.stringify(value)); } catch (error) { /* storage unavailable */ } } };
    const paintCart = () => document.querySelectorAll('[data-cart-count]').forEach((el) => { el.textContent = cart.get().length; });
    paintCart();

    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-add-cart]').forEach((button) => button.addEventListener('click', () => {
      cart.set([...cart.get(), button.dataset.addCart]);
      paintCart();
      button.animate([{ transform: 'scale(1)' }, { transform: 'scale(1.15)' }, { transform: 'scale(1)' }], { duration: reducedMotion ? 0 : 300 });
    }));

    document.querySelectorAll('[data-popover]').forEach((root) => {
      const toggle = root.querySelector('[data-popover-toggle]');
      const panel = document.getElementById(toggle.getAttribute('aria-controls'));
      const set = (open) => { panel.hidden = !open; toggle.setAttribute('aria-expanded', String(open)); };
      toggle.addEventListener('click', () => set(panel.hidden));
      document.addEventListener('click', (event) => { if (!root.contains(event.target)) set(false); });
      root.addEventListener('keydown', (event) => { if (event.key === 'Escape') { set(false); toggle.focus(); } });
    });

    document.querySelectorAll('[data-meal-tabs]').forEach((root) => {
      const tabs = [...root.querySelectorAll('[data-category-tab]')];
      const items = [...root.querySelectorAll('[data-cats]')];
      const range = root.querySelector('[data-kcal]');
      let category = tabs.find((tab) => tab.getAttribute('aria-selected') === 'true').dataset.categoryTab;
      const paint = () => {
        const max = Number(range.value);
        root.querySelector('[data-kcal-label]').textContent = max;
        let shown = 0;
        items.forEach((item) => { const match = item.dataset.cats.split(' ').includes(category) && Number(item.dataset.kcalValue) <= max; item.hidden = !match; if (match) shown += 1; });
        root.querySelector('[data-meal-empty]').hidden = shown > 0;
      };
      tabs.forEach((tab) => tab.addEventListener('click', () => {
        tabs.forEach((other) => other.setAttribute('aria-selected', String(other === tab)));
        category = tab.dataset.categoryTab;
        paint();
      }));
      range.addEventListener('input', paint);
      paint();
    });

    document.querySelectorAll('[data-perks]').forEach((root) => {
      const perks = [...root.querySelectorAll('[data-perk]')];
      perks.forEach((perk) => perk.addEventListener('click', () => {
        perks.forEach((other) => other.setAttribute('aria-pressed', String(other === perk)));
        root.querySelector('[data-perk-text]').textContent = perk.dataset.text;
      }));
    });

    document.querySelectorAll('[data-steps]').forEach((root) => {
      const steps = [...root.querySelectorAll('[data-step]')];
      const image = root.querySelector('[data-step-image]');
      const select = (step) => {
        steps.forEach((other) => other.setAttribute('aria-selected', String(other === step)));
        root.querySelector('[data-step-title]').textContent = step.lastElementChild.textContent;
        root.querySelector('[data-step-text]').textContent = step.dataset.text;
        const icon = root.querySelector('[data-step-icon]');
        icon.classList.remove(...[...icon.classList].filter((name) => name.startsWith('fa-') && name !== 'fa-solid'));
        icon.classList.add(step.dataset.icon);
        image.src = step.dataset.img; image.alt = step.dataset.alt;
      };
      steps.forEach((step, i) => {
        step.addEventListener('click', () => select(step));
        step.addEventListener('mouseenter', () => select(step));
        step.addEventListener('keydown', (event) => {
          if (event.key === 'ArrowDown') { event.preventDefault(); steps[(i + 1) % steps.length].focus(); select(steps[(i + 1) % steps.length]); }
          if (event.key === 'ArrowUp') { event.preventDefault(); steps[(i - 1 + steps.length) % steps.length].focus(); select(steps[(i - 1 + steps.length) % steps.length]); }
        });
      });
    });

    document.querySelectorAll('[data-plan-reviews]').forEach((root) => {
      const data = JSON.parse(root.querySelector('[data-plan-data]').textContent);
      const tabs = [...root.querySelectorAll('[data-plan]')];
      const faces = [...root.querySelectorAll('[data-face]')];
      let plan = tabs[0].dataset.plan; let index = 1;
      const paint = () => {
        const set = data[plan]; const quote = set.quotes[index];
        faces.forEach((face, i) => { face.setAttribute('aria-pressed', String(i === index)); face.querySelector('[data-face-img]').src = `https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/${set.quotes[i].avatar}.jpg`; });
        root.querySelector('[data-quote]').textContent = `“${quote.quote}”`;
        root.querySelector('[data-quote-name]').textContent = quote.name;
        root.querySelector('[data-quote-city]').textContent = quote.city;
        root.querySelector('[data-result-a]').textContent = set.a; root.querySelector('[data-result-a-label]').textContent = set.aLabel;
        root.querySelector('[data-result-b]').textContent = set.b; root.querySelector('[data-result-b-label]').textContent = set.bLabel;
      };
      tabs.forEach((tab) => tab.addEventListener('click', () => { tabs.forEach((other) => other.setAttribute('aria-selected', String(other === tab))); plan = tab.dataset.plan; index = 1; paint(); }));
      faces.forEach((face, i) => face.addEventListener('click', () => { index = i; paint(); }));
      root.querySelector('[data-review-prev]').addEventListener('click', () => { index = (index + 2) % 3; paint(); });
      root.querySelector('[data-review-next]').addEventListener('click', () => { index = (index + 1) % 3; paint(); });
    });

    document.querySelectorAll('[data-fit]').forEach((root) => {
      const data = JSON.parse(root.querySelector('[data-fit-data]').textContent);
      const dots = [...root.querySelectorAll('[data-fit-dot]')];
      let index = 0;
      const url = (id, w, h) => `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=${w}&h=${h}&q=80`;
      const paint = () => {
        const plan = data[index];
        root.querySelector('[data-fit-name]').textContent = plan.name;
        root.querySelector('[data-fit-text]').textContent = plan.text;
        root.querySelector('[data-fit-price]').textContent = plan.price;
        const card = root.querySelector('[data-fit-card-img]'); card.src = url(plan.card, 600, 800); card.alt = plan.cardAlt;
        const big = root.querySelector('[data-fit-big-img]'); big.src = url(plan.big, 1100, 800); big.alt = plan.bigAlt;
        dots.forEach((dot, i) => { dot.classList.toggle('w-6', i === index); dot.classList.toggle('w-1.5', i !== index); dot.classList.toggle('opacity-30', i !== index); });
      };
      root.querySelector('[data-fit-prev]').addEventListener('click', () => { index = (index - 1 + data.length) % data.length; paint(); });
      root.querySelector('[data-fit-next]').addEventListener('click', () => { index = (index + 1) % data.length; paint(); });
    });

    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));
    }
  </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>

From this template

Fennly screenshot Premium

Food & Restaurant

Fennly

Unlimited access to all products

Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.

$20 / 3 months or $60 / year
Get Unlimited Access