Pixel UI/Hero sections/Orb hero

Orb hero

A breathing orb with an input underneath: an AI product hero.

<piix-fx>WebGL

Meet Nova.

Ask

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-orb">
  <piix-fx kind="orb"></piix-fx>
  <h1>Meet Nova.</h1>
  <piix-input look="glass" placeholder="Ask anything…">Ask</piix-input>
</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-key{background:#000}
.hx-key piix-fx{position:absolute;inset:0 0 10% 35%;width:auto;height:auto}
.hx-key h1{font-weight:300}
.hx-orb{background:radial-gradient(ellipse at 50% 30%,#1d1452,#04030a 65%);justify-items:center;text-align:center;align-content:center;gap:10px}
.hx-orb piix-fx{height:300px;width:100%}
.hx-orb piix-input{width:min(460px,100%)}
</style>

Accessibility