Pixel UI/Hero sections/Flame hero

Flame hero

Soft fire rising behind a big serif statement.

<piix-fx>WebGL

Burn the
old playbook.

A studio for loud ideas

A complete hero section: a moving 3D layer and a layout around it. Copy the markup and the CSS, swap the words, and it is yours. Every hero answers the pointer.

Installation

<!-- once, anywhere on the page: every component -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/piixpal.min.js"></script>

Usage

<section class="hx hx-flame">
  <piix-fx kind="flame" fill></piix-fx>
  <h1><i>Burn</i> the<br>old playbook.</h1>
  <p class="hx-k">A studio for loud ideas</p>
</section>

<style>
.hx{position:relative;min-height:520px;overflow:hidden;color:#fff;font-family:"Bricolage Grotesque",system-ui,sans-serif;display:grid;align-content:end;justify-items:start;gap:18px;padding:56px;box-sizing:border-box}
.hx h1{position:relative;margin:0;font-size:clamp(44px,7vw,96px);font-weight:800;letter-spacing:-.05em;line-height:.88}
.hx p{position:relative;margin:0}
.hx-k{font:400 12px/1 "JetBrains Mono",monospace;letter-spacing:.14em;text-transform:uppercase;opacity:.75}
.hx-flame{background:#03040a;justify-items:center;text-align:center;align-content:center}
.hx-flame h1,.hx-ink h1{font:400 clamp(52px,8vw,120px)/.86 "Instrument Serif",serif;letter-spacing:-.03em}
.hx-flame i,.hx-ink i{color:#ff4d2e}
.hx-key{background:#000}
.hx-key piix-fx{position:absolute;inset:0 0 10% 35%;width:auto;height:auto}
.hx-key h1{font-weight:300}
</style>

Accessibility