Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Portada

Halation Hero

A hero block extracted from the Halation template, available in Tailwind CSS.

0 3
Halation Hero preview
halation.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>Halation Hero | Tailwind CSS UI Block</title>
  <meta name="description" content="A hero block extracted from the Halation template, available in Tailwind CSS.">
  <meta name="keywords" content="Halation, Tailwind CSS template, HTML website template, portfolio template, film production website, videographer portfolio, director showreel, horizontal scroll gallery, case study page, dark portfolio design">
  <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="Halation | Tailwind CSS Portfolio Template">
  <meta property="og:description" content="A dark Tailwind CSS portfolio template for film studios, directors and videographers, with a sideways reel of film frames, a colour grade slider, a client quote switcher, a filterable work page, a case study and an enquiry form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Halation template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Halation | Tailwind CSS Portfolio Template">
  <meta name="twitter:description" content="A dark Tailwind CSS portfolio template for film studios, directors and videographers, with a sideways reel of film frames, a colour grade slider, a client quote switcher, a filterable work page, a case study and an enquiry form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Halation 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=Schibsted+Grotesk:wght@400;500;700;800&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            ash: '#8b8b8b',
            soot: '#141414',
            flare: '#ff4d8d'
          },
          fontFamily: {
            sans: ['"Schibsted Grotesk"', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .cursor::after { content: "_"; color: #ff4d8d; animation: blink 1.1s steps(1) infinite; }
    @keyframes blink { 50% { opacity: 0; } }
    .lnk { padding-bottom: .3rem; border-bottom: 2px solid transparent; transition: border-color .2s ease, color .2s ease; }
    .lnk:hover, .lnk[aria-current] { border-color: currentColor; }
    .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .rail::-webkit-scrollbar { display: none; }
    .rail > * { flex: 0 0 auto; scroll-snap-align: start; }
    .bar { position: relative; height: 1px; background: rgba(255, 255, 255, .28); }
    .bar > span { position: absolute; top: -1px; left: var(--x, 0%); width: var(--w, 25%); height: 3px; background: #fff; }
    .round { display: inline-flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
    .round:hover { background: #fff; color: #000; }
    .grade { position: relative; overflow: hidden; --pos: 50%; }
    .grade-raw { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
    .grade-raw img { filter: saturate(.25) contrast(.72) brightness(1.18); }
    .grade-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
    .grade-line::after { content: ""; position: absolute; top: 50%; left: 50%; height: 2.75rem; width: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .2); }
    .grade input { position: absolute; inset: 0; height: 100%; width: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
    .grade input:focus-visible ~ .grade-line::after { box-shadow: 0 0 0 6px #ff4d8d; }
    .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; }
    .still .cursor::after { animation: none; }
    @media (prefers-reduced-motion: reduce) { .cursor::after { animation: none; } html { scroll-behavior: auto; } }
  </style>
</head>
<body class="bg-black font-sans text-white antialiased">
<!-- block:start hero -->
    <section id="top" class="bg-black pb-16 md:pb-24">
      <div class="grid items-end gap-8 px-6 pb-12 pt-6 md:grid-cols-12 md:px-12 md:pb-20 md:pt-12">
        <h1 class="text-5xl font-extrabold leading-[.95] tracking-tight md:col-span-7 md:text-7xl lg:text-8xl">Films people watch to the end.</h1>
        <div class="md:col-span-4 md:col-start-9">
          <p class="text-lg leading-relaxed text-ash md:text-xl">A small film studio making commercials, music videos and documentaries for brands with something to say.</p>
          <a href="work.html" class="lnk mt-6 inline-flex items-center gap-3 border-white text-lg font-bold lowercase">see all the work<i class="fa-solid fa-arrow-right text-sm" aria-hidden="true"></i></a>
        </div>
      </div>
      <div data-rail>
        <div class="rail" data-rail-track tabindex="0" aria-label="Recent films">
            <a href="night-swim.html" class="group block w-[82vw] sm:w-[52vw] lg:w-[36vw]">
              <span class="block overflow-hidden"><img src="https://images.unsplash.com/photo-1748194257153-605214ecd302?auto=format&amp;fit=crop&amp;w=1100&amp;q=80" alt="Swimmers seen from below in deep blue water crossed by beams of light" class="aspect-[16/9] w-full object-cover transition-transform duration-700 group-hover:scale-105"></span>
              <span class="block px-6 pt-7 md:px-8">
                <span class="block text-2xl font-bold tracking-tight md:text-[1.7rem]">Night Swim</span>
                <span class="mt-1 block text-lg text-ash md:text-xl">A city pool that opens after dark</span>
              </span>
            </a>
            <a href="work.html" class="group block w-[82vw] sm:w-[52vw] lg:w-[36vw]">
              <span class="block overflow-hidden"><img src="https://images.unsplash.com/photo-1531889212584-6d114ab8f37d?auto=format&amp;fit=crop&amp;w=1100&amp;q=80" alt="A lone figure walking through a hall with bright yellow walls" class="aspect-[16/9] w-full object-cover transition-transform duration-700 group-hover:scale-105"></span>
              <span class="block px-6 pt-7 md:px-8">
                <span class="block text-2xl font-bold tracking-tight md:text-[1.7rem]">Yellow Line</span>
                <span class="mt-1 block text-lg text-ash md:text-xl">Music video for Odile Marsh</span>
              </span>
            </a>
            <a href="work.html" class="group block w-[82vw] sm:w-[52vw] lg:w-[36vw]">
              <span class="block overflow-hidden"><img src="https://images.unsplash.com/photo-1599839575635-8cd5c146ed39?auto=format&amp;fit=crop&amp;w=1100&amp;q=80" alt="Boxer in a red top standing in a warehouse gym with sun behind him" class="aspect-[16/9] w-full object-cover transition-transform duration-700 group-hover:scale-105"></span>
              <span class="block px-6 pt-7 md:px-8">
                <span class="block text-2xl font-bold tracking-tight md:text-[1.7rem]">Second Wind</span>
                <span class="mt-1 block text-lg text-ash md:text-xl">A boxing gym that never closed</span>
              </span>
            </a>
            <a href="work.html" class="group block w-[82vw] sm:w-[52vw] lg:w-[36vw]">
              <span class="block overflow-hidden"><img src="https://images.unsplash.com/photo-1543868519-fc5437bc63fe?auto=format&amp;fit=crop&amp;w=1100&amp;q=80" alt="Portrait of a woman lit in red against a dark blue room" class="aspect-[16/9] w-full object-cover transition-transform duration-700 group-hover:scale-105"></span>
              <span class="block px-6 pt-7 md:px-8">
                <span class="block text-2xl font-bold tracking-tight md:text-[1.7rem]">Red Room</span>
                <span class="mt-1 block text-lg text-ash md:text-xl">Our first feature-length concert film</span>
              </span>
            </a>
            <a href="work.html" class="group block w-[82vw] sm:w-[52vw] lg:w-[36vw]">
              <span class="block overflow-hidden"><img src="https://images.unsplash.com/photo-1660478481785-cb609142d9ab?auto=format&amp;fit=crop&amp;w=1100&amp;q=80" alt="Wet city street at night with blue and red reflections" class="aspect-[16/9] w-full object-cover transition-transform duration-700 group-hover:scale-105"></span>
              <span class="block px-6 pt-7 md:px-8">
                <span class="block text-2xl font-bold tracking-tight md:text-[1.7rem]">After Rain</span>
                <span class="mt-1 block text-lg text-ash md:text-xl">The night bus, seen from the back seat</span>
              </span>
            </a>
            <a href="work.html" class="group block w-[82vw] sm:w-[52vw] lg:w-[36vw]">
              <span class="block overflow-hidden"><img src="https://images.unsplash.com/photo-1743660606584-a08c89003d13?auto=format&amp;fit=crop&amp;w=1100&amp;q=80" alt="Woman in a straw hat and yellow dress sitting against a yellow wall" class="aspect-[16/9] w-full object-cover transition-transform duration-700 group-hover:scale-105"></span>
              <span class="block px-6 pt-7 md:px-8">
                <span class="block text-2xl font-bold tracking-tight md:text-[1.7rem]">Hat Weather</span>
                <span class="mt-1 block text-lg text-ash md:text-xl">Summer campaign for Lowen and Pike</span>
              </span>
            </a>
        </div>
        <div class="mt-14 flex items-center justify-center gap-6 px-6 md:mt-20">
          <button type="button" data-rail-prev aria-label="Previous films" class="round"><i class="fa-solid fa-arrow-left" aria-hidden="true"></i></button>
          <div class="bar w-40 md:w-96" aria-hidden="true"><span data-rail-thumb></span></div>
          <button type="button" data-rail-next aria-label="Next films" class="round"><i class="fa-solid fa-arrow-right" aria-hidden="true"></i></button>
        </div>
      </div>
    </section>
    <!-- block:end hero -->
<script>
    if (navigator.webdriver) document.documentElement.classList.add("still");

    document.querySelectorAll("[data-menu-toggle]").forEach((button) => {
      const menu = document.getElementById(button.getAttribute("aria-controls"));
      if (!menu) return;
      button.addEventListener("click", () => {
        const open = button.getAttribute("aria-expanded") === "true";
        button.setAttribute("aria-expanded", String(!open));
        menu.classList.toggle("hidden", open);
      });
    });

    (() => {
      const items = document.querySelectorAll("[data-reveal]");
      const skip = navigator.webdriver || !("IntersectionObserver" in window) || matchMedia("(prefers-reduced-motion: reduce)").matches;
      if (!items.length || skip) return;
      document.documentElement.classList.add("reveal-ready");
      const observer = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (!entry.isIntersecting) return;
          entry.target.classList.add("is-visible");
          observer.unobserve(entry.target);
        });
      }, { rootMargin: "0px 0px -10% 0px" });
      items.forEach((item) => observer.observe(item));
    })();

    document.querySelectorAll("[data-rail]").forEach((rail) => {
      const track = rail.querySelector("[data-rail-track]");
      const thumb = rail.querySelector("[data-rail-thumb]");
      if (!track) return;
      const update = () => {
        if (!thumb) return;
        thumb.style.setProperty("--w", `${Math.min(100, (track.clientWidth / track.scrollWidth) * 100)}%`);
        thumb.style.setProperty("--x", `${(track.scrollLeft / track.scrollWidth) * 100}%`);
      };
      const move = (direction) => {
        const end = track.scrollLeft + track.clientWidth >= track.scrollWidth - 4;
        const left = direction > 0 && end ? 0 : direction < 0 && track.scrollLeft <= 4 ? track.scrollWidth : track.scrollLeft + direction * track.clientWidth * 0.8;
        track.scrollTo({ left, behavior: "smooth" });
      };
      rail.querySelector("[data-rail-prev]")?.addEventListener("click", () => move(-1));
      rail.querySelector("[data-rail-next]")?.addEventListener("click", () => move(1));
      track.addEventListener("scroll", update, { passive: true });
      addEventListener("resize", update);
      update();
    });

    document.querySelectorAll("[data-grade]").forEach((grade) => {
      const input = grade.querySelector("[data-grade-input]");
      if (!input) return;
      const update = () => grade.style.setProperty("--pos", `${input.value}%`);
      input.addEventListener("input", update);
      update();
    });

    document.querySelectorAll("[data-switcher]").forEach((root) => {
      root.addEventListener("click", (event) => {
        const button = event.target.closest("[data-switch]");
        if (!button) return;
        root.querySelectorAll("[data-switch]").forEach((tab) => tab.setAttribute("aria-selected", String(tab === button)));
        root.querySelectorAll("[data-switch-panel]").forEach((panel) => { panel.hidden = panel.dataset.switchPanel !== button.dataset.switch; });
      });
    });
  </script>
<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>

De esta plantilla

Halation screenshot

Portfolio

Halation

Acceso ilimitado a todos los productos

Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.

20 € / 3 meses o 60 € / año
Conseguir acceso ilimitado