Nahorniak Templates
База референсів шаблонів і компонентів
Назад до шаблону · Pillar - Lawyer & Attorney HTML
c169

feature-cards-overlap

Можливості·Шаблон: Pillar - Lawyer & Attorney HTML·Складність анімації: subtle·Адаптивний: Так
feature-cards-overlap

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

  • index.htmlmain > div.section.overflow-visible[style*="-17rem"]

Бібліотеки

bootstrap

Summary

Four equal-width white cards (icon + title + paragraph) that overlap the bottom of the hero by margin-top: -17rem on the section. Each card is card-outline-hover: a soft drop-shadow at rest, a teal solid background and white text on hover.

HTML structure (minimal)

<div class="section overflow-visible" style="margin-top: -17rem;">
  <div class="r-container">
    <div class="row row-cols-xl-4 row-cols-1">
      <div class="col mb-3">
        <div class="card card-outline-hover rounded-0 h-100">
          <div class="d-flex flex-column gap-3 py-4 px-5">
            <i class="rtmicon rtmicon-balance accent-color-2 fs-1"></i>
            <h4>Tailored Legal Solution</h4>
            <p>Donec facilisis augue a sapien cursus dictum…</p>
          </div>
        </div>
      </div>
      <!-- 3 more cards: rtmicon-user-group, rtmicon-awards, rtmicon-cloud-check-145 -->
    </div>
  </div>
</div>

Key SCSS tokens

.card.card-outline-hover {
  box-shadow: 0 7px 15px rgba(0,0,0,.13), 0 1px 4px rgba(0,0,0,.11);
  color: var(--accent-color);
  transition: all .5s;
}
.card.card-outline-hover:hover {
  box-shadow: 0 0 0 2px var(--accent-color);
  background: var(--accent-color);
  color: var(--primary);
}
.card:hover { transform: translateY(-5px); }

Notable details

  • The overlap trick is just padding-bottom: 17rem on the hero plus margin-top: -17rem here, with overflow-visible on the wrapper. No absolute positioning, no JS — it survives any column-count change cleanly.
  • Icons come from a custom rtmicons icon font shipped with the template (font/rtmicon/), not FontAwesome — so the same <i> syntax works but the glyphs are unique to the pack.
  • rounded-0 overrides Bootstrap's default .card radius — Pillar consistently uses sharp corners for a more legalistic feel.

Use when

  • Any "core values" / "why us" row that should sit atop a photographic hero.
  • Service introductions where each card has one icon, one short heading, and one paragraph.

Caveats

  • The 17rem overlap is set in inline styles in two places — change one without the other and the cards either swallow the hero or float into empty space.
  • rtmicons is a locally-bundled icon font; if you copy this component without the font directory the icons will render as boxes.