Nahorniak Templates
База референсів шаблонів і компонентів
Назад до шаблону · Softec - Data Analytics & Software Technology HTML Template
c235

footer-dark

Футер·Шаблон: Softec - Data Analytics & Software Technology HTML Template·Складність анімації: medium·Адаптивний: Так
footer-dark

Файли-джерела

  • index.htmldiv.tp-footer__pl-pr

Бібліотеки

gsapscrolltriggerjquery

Summary

Dark footer split into a top newsletter row, a four-column widget grid (logo+social, "What We Do", "Other Pages", "Contact Us" with magenta-stroke SVG icons), and a copyright bar with a language dropdown. The whole black background scrubs from scaleX: 1 to scaleX: .95 and gains a 30px border-radius as the section enters view.

HTML structure (minimal)

<div class="tp-footer__pl-pr p-relative">
  <div class="footer-black-bg tp-gsap-bg"></div>
  <div class="tp-footer__area pt-50">
    <div class="container">
      <div class="tp-footer__border-bottom">
        <!-- newsletter row (separate component) -->
      </div>
      <div class="tp-footer__top-space">
        <div class="row">
          <div class="col-xl-4 col-md-7">
            <div class="tp-footer__widget footer-col-1">
              <a href="index.html" class="tp-footer__widget-logo"><img src="logo-white.png"></a>
              <div class="tp-footer__text">
                <p>Our highly skilled development teams specialized in data analysis.</p>
              </div>
              <div class="tp-footer__social">
                <a><i class="fab fa-facebook-f"></i></a>
                <a><i class="fab fa-twitter"></i></a>
                <a><i class="fab fa-linkedin-in"></i></a>
                <a><i class="fab fa-vimeo-v"></i></a>
              </div>
            </div>
          </div>
          <div class="col-xl-3"><div class="tp-footer__widget"><h4>What We Do</h4><ul>…</ul></div></div>
          <div class="col-xl-2"><div class="tp-footer__widget"><h4>Other Pages</h4><ul>…</ul></div></div>
          <div class="col-xl-3">
            <div class="tp-footer__widget">
              <h4>Contact Us</h4>
              <div class="tp-footer__contact-info">
                <ul>
                  <li><span><svg stroke="#FF3C82">phone</svg></span><a href="tel:…">+806 (000) 88 99</a></li>
                  <li><span><svg stroke="#FF3C82">message</svg></span><a href="mailto:…">contact@info.com</a></li>
                  <li><span><svg stroke="#FF3C82">pin</svg></span><a target="_blank">1234 North Avenue Luke Lane…</a></li>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="tp-copyright__area pt-20 pb-20">
    <div class="container">
      <div class="row align-items-center">
        <div class="col-md-6"><span>Full Copyright & Design By <a>@Theme pure</a> – 2023</span></div>
        <div class="col-md-6">
          <div class="tp-copyright__lang-box d-flex justify-content-md-end">
            <ul>
              <li>
                <a id="tp-copyright__lang-toggle"><span>English (US)<i class="fal fa-angle-down"></i></span></a>
                <ul class="tp-copyright__lang-submenu"><li><a>Arabic</a></li><li><a>Spanish</a></li><li><a>Mandarin</a></li></ul>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

Key SCSS tokens

.footer-black-bg {
  position: absolute; inset: 0;
  background: var(--tp-common-black);
  z-index: -1;
}
.tp-footer {
  &__pl-pr { padding: 0 50px; color: var(--tp-common-white); }
  &__widget-title {
    color: var(--tp-common-white);
    font-weight: 600; font-size: 18px;
    margin-bottom: 25px;
  }
  &__content ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px; line-height: 2;
    transition: color .25s;
    &:hover { color: var(--tp-theme-1); }
  }
  &__social a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    margin-right: 8px;
    &:hover { background: var(--tp-theme-1); border-color: transparent; color: #fff; }
  }
}
.tp-copyright__lang-submenu {
  position: absolute; top: 100%; right: 0;
  background: #fff; color: var(--tp-common-black);
  padding: 10px 0; min-width: 140px;
  border-radius: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .3s;
}
#tp-copyright__lang-toggle:hover ~ .tp-copyright__lang-submenu,
.tp-copyright__lang:hover .tp-copyright__lang-submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

Animation logic

// Background "tucks in" as the footer enters view (only at >=1400px)
gsap.set('.tp-gsap-bg', { scaleX: 1 });
let mm = gsap.matchMedia();
mm.add('(min-width:1400px)', () => {
  gsap.to('.tp-gsap-bg', {
    scrollTrigger: {
      trigger: '.tp-gsap-bg',
      scrub: 0.02,
      start: 'top bottom',
      end: 'bottom bottom'
    },
    scaleX: .95,
    borderRadius: '30px',
    transformOrigin: 'center center',
    ease: 'none'
  });
});

Notable details

  • The dark band is a separately positioned .footer-black-bg.tp-gsap-bg element rather than body { background: black } — it has to be a discrete element so GSAP can scrub its scaleX and border-radius.
  • Contact icons are inline SVGs with stroke="#FF3C82" — keeps the magenta accent without loading another icon font.
  • Language switcher uses pure CSS hover for the submenu reveal.

Use when

  • Long-page sites where the footer transition needs more drama than a static reveal.
  • Multi-section footers with social, sitemap, and contact widgets in one row.
  • Designs that want the dark footer to feel like a card at the bottom of the page.

Caveats

  • The scaleX scrub only fires >=1400px — on narrower viewports the band stays full-width by design.
  • Removing tp-gsap-bg removes the effect; the static class still styles correctly.