Pillar ring
White section with four tabs that advance on their own: serif heading and copy swap on the left, a hairline ring fills with a teal arc, and a rounded diamond holds a drawing of glass plates that restack for each pillar. A second diamond on wide screens shows the pager dots.
Part of the style
Glass Lens Calm
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/glass-lens-calm/pillars/figma.html
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/glass-lens-calm/pillars/figma.html and pass that whole HTML document to the html_to_figma tool, so the part "Pillar ring" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<section class="pillars">
<div class="pillars__text">
<p class="pillars__kicker">How we hold up</p>
<div class="pillars__panels">
<article class="pillars__panel is-active">
<h2 class="pillars__heading">Sized for the dry year</h2>
<p class="pillars__copy">Every plant is drawn for the worst summer on record plus a margin, so a drought changes the schedule and nothing else.</p>
</article>
<article class="pillars__panel" aria-hidden="true">
<h2 class="pillars__heading">A clean audit trail</h2>
<p class="pillars__copy">Each litre is sampled at four points and logged for the regulator. No plant of ours has failed an inspection.</p>
</article>
<article class="pillars__panel" aria-hidden="true">
<h2 class="pillars__heading">Built to stay on</h2>
<p class="pillars__copy">Twin lines, spare membranes on site and our own crew on call keep supply steady through repairs and storms.</p>
</article>
<article class="pillars__panel" aria-hidden="true">
<h2 class="pillars__heading">One contract, one owner</h2>
<p class="pillars__copy">We design it, build it and run it, so there is a single name to call for the next thirty years.</p>
</article>
</div>
<a class="pillars__button" href="#">Plan a plant</a>
</div>
<div class="pillars__tabs" role="tablist" aria-label="Pillars">
<button class="pillars__tab is-active" type="button" role="tab" aria-selected="true"><svg class="pillars__tab-arrow" viewBox="0 0 13 10" aria-hidden="true" focusable="false"><path d="M1 5h11M8 1l4 4-4 4" /></svg>Capacity</button>
<button class="pillars__tab" type="button" role="tab" aria-selected="false"><svg class="pillars__tab-arrow" viewBox="0 0 13 10" aria-hidden="true" focusable="false"><path d="M1 5h11M8 1l4 4-4 4" /></svg>Quality and permits</button>
<button class="pillars__tab" type="button" role="tab" aria-selected="false"><svg class="pillars__tab-arrow" viewBox="0 0 13 10" aria-hidden="true" focusable="false"><path d="M1 5h11M8 1l4 4-4 4" /></svg>Reliability</button>
<button class="pillars__tab" type="button" role="tab" aria-selected="false"><svg class="pillars__tab-arrow" viewBox="0 0 13 10" aria-hidden="true" focusable="false"><path d="M1 5h11M8 1l4 4-4 4" /></svg>Ownership</button>
</div>
<div class="pillars__figure" aria-hidden="true">
<svg class="pillars__ring" viewBox="0 0 100 100" focusable="false">
<circle class="pillars__track" cx="50" cy="50" r="49.5" />
<circle class="pillars__arc" cx="50" cy="50" r="49.5" pathLength="1" />
</svg>
<div class="pillars__diamond">
<svg class="pillars__art" viewBox="0 0 400 400" focusable="false">
<defs>
<linearGradient id="pillars-plate-side" x1="0" y1="0" x2="1" y2="0">
<stop class="pillars__stop-edge" offset="0" />
<stop class="pillars__stop-face" offset="0.3" />
<stop class="pillars__stop-face" offset="0.62" />
<stop class="pillars__stop-edge" offset="1" />
</linearGradient>
<linearGradient id="pillars-plate-top" x1="0" y1="0" x2="1" y2="1">
<stop class="pillars__stop-face" offset="0.2" />
<stop class="pillars__stop-tint" offset="1" />
</linearGradient>
</defs>
<g class="pillars__plate" style="--slide: -1; --level: 5">
<path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
<ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
</g>
<g class="pillars__plate" style="--slide: 0.9; --level: 4">
<path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
<ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
</g>
<g class="pillars__plate" style="--slide: -0.6; --level: 3">
<path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
<ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
</g>
<g class="pillars__plate" style="--slide: 0.5; --level: 2">
<path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
<ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
</g>
<g class="pillars__plate" style="--slide: -0.3; --level: 1">
<path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
<ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
</g>
<g class="pillars__plate pillars__plate--marked" style="--slide: 0.15; --level: 0">
<path class="pillars__plate-side" d="M70 0v20a130 40 0 0 0 260 0V0Z" />
<ellipse class="pillars__plate-top" cx="200" cy="0" rx="130" ry="40" />
<ellipse class="pillars__plate-mark" cx="200" cy="0" rx="56" ry="17" />
</g>
</svg>
</div>
</div>
<div class="pillars__pager" aria-hidden="true">
<span class="pillars__dot is-active"></span>
<span class="pillars__dot"></span>
<span class="pillars__dot"></span>
<span class="pillars__dot"></span>
</div>
</section>
<style>
.pillars {
display: grid;
grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr) minmax(0, 21rem);
grid-template-rows: 1fr auto;
gap: var(--space-l) clamp(1.5rem, 3.5vw, 3rem);
align-items: start;
padding: var(--section-space) var(--gutter);
background: var(--paper);
}
.pillars__text {
grid-column: 1;
grid-row: 1;
}
.pillars__kicker {
display: flex;
align-items: center;
gap: 0.75rem;
margin: 0 0 var(--space-m);
color: var(--deep);
font-size: var(--text-xs);
letter-spacing: var(--tracking-label);
text-transform: uppercase;
}
.pillars__kicker::before {
content: "";
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
background: var(--coral);
}
/* All four panels share one grid cell, so the column keeps the height of the longest and nothing jumps. */
.pillars__panels {
display: grid;
}
.pillars__panel {
grid-area: 1 / 1;
opacity: 0;
visibility: hidden;
transform: translateY(0.75rem);
transition: opacity var(--time-slow) ease, transform var(--time-slow) var(--ease-out), visibility 0s linear var(--time-slow);
}
.pillars__panel.is-active {
opacity: 1;
visibility: visible;
transform: none;
transition-delay: 0s;
}
.pillars__heading {
margin: 0 0 var(--space-m);
color: var(--deep);
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: var(--display-weight);
font-variation-settings: var(--display-cut);
line-height: 1.12;
letter-spacing: var(--tracking-display);
}
.pillars__copy {
margin: 0;
color: var(--ink-soft);
text-wrap: pretty;
}
.pillars__button {
display: inline-flex;
align-items: center;
min-height: var(--control);
margin-top: var(--space-l);
padding: 0 1.375rem;
border-radius: var(--radius-pill);
background: var(--coral);
color: var(--paper);
font-weight: 500;
text-decoration: none;
transition: background-color var(--time) ease;
}
.pillars__button:hover {
background: var(--coral-press);
}
.pillars__button:focus-visible,
.pillars__tab:focus-visible {
outline: 2px solid var(--deep);
outline-offset: 3px;
}
.pillars__tabs {
grid-column: 1;
grid-row: 2;
display: grid;
}
.pillars__tab {
display: flex;
align-items: center;
min-height: var(--control);
padding: 0;
border: 0;
border-top: 1px solid var(--line);
background: none;
color: var(--ink-soft);
font: inherit;
font-size: var(--text-xs);
letter-spacing: var(--tracking-label);
text-align: left;
text-transform: uppercase;
cursor: pointer;
transition: color var(--time) ease, border-color var(--time) ease;
}
/* The arrow of the chosen tab grows out of nothing and pushes the label right. */
.pillars__tab-arrow {
flex: none;
width: 0;
height: 0.625rem;
margin-right: 0;
fill: none;
stroke: currentColor;
stroke-width: 1.2;
stroke-linecap: round;
stroke-linejoin: round;
transition: width var(--time-slow) var(--ease-out), margin-right var(--time-slow) var(--ease-out);
}
.pillars__tab:hover,
.pillars__tab.is-active {
color: var(--deep);
}
.pillars__tab.is-active {
border-color: var(--deep);
}
.pillars__tab.is-active .pillars__tab-arrow {
width: 0.8125rem;
margin-right: 0.5rem;
}
/* A hairline ring, an arc that fills while the pillars play through, and a rounded diamond holding the picture. */
.pillars__figure {
grid-column: 2;
grid-row: 1 / -1;
position: relative;
justify-self: center;
width: min(100%, 38.25rem);
aspect-ratio: 1;
}
.pillars__ring {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
transform: rotate(-90deg);
fill: none;
}
.pillars__track,
.pillars__arc {
stroke-width: 0.2;
}
.pillars__track {
stroke: var(--line);
}
.pillars__arc {
stroke: var(--sea);
stroke-dasharray: 1;
stroke-dashoffset: calc(1 - var(--pillars-filled, 0.25));
transition: stroke-dashoffset var(--pillars-fill-time, var(--time-slow)) linear;
}
.pillars__diamond {
position: absolute;
inset: 16%;
overflow: hidden;
border-radius: 11%;
background: var(--mist);
transform: rotate(45deg);
}
/* The picture: glass settling plates. Each pillar slides them into a different stagger. */
.pillars__art {
width: 100%;
height: 100%;
overflow: visible;
transform: rotate(-45deg) scale(1.22);
}
.pillars__plate {
transform: translate(calc(var(--slide) * var(--pillars-fan, 1) * 46px), calc(306px - var(--level) * 44px));
transition: transform calc(var(--time-slow) * 2.5) var(--ease-out);
}
.pillars__plate-side {
fill: url(#pillars-plate-side);
stroke: var(--sea);
stroke-opacity: 0.35;
stroke-width: 0.75;
}
.pillars__plate-top {
fill: url(#pillars-plate-top);
stroke: var(--sea);
stroke-opacity: 0.45;
stroke-width: 0.75;
}
.pillars__plate-mark {
fill: none;
stroke: var(--coral);
stroke-width: 2;
}
.pillars__stop-face {
stop-color: var(--paper);
stop-opacity: 0.92;
}
.pillars__stop-edge {
stop-color: var(--frost);
stop-opacity: 0.9;
}
.pillars__stop-tint {
stop-color: var(--mint);
stop-opacity: 0.85;
}
.pillars__pager {
grid-column: 3;
grid-row: 1 / -1;
align-self: center;
justify-self: center;
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 1.25rem;
width: min(100%, 15rem);
aspect-ratio: 1;
}
.pillars__pager::before {
content: "";
position: absolute;
inset: 0;
border: 1px solid var(--line);
border-radius: 14%;
transform: rotate(45deg);
}
.pillars__dot {
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
background: var(--deep);
opacity: 0.2;
transform: scale(0.75);
transition: opacity var(--time) ease, transform var(--time) ease;
}
.pillars__dot.is-active {
opacity: 1;
transform: none;
}
@media (max-width: 72rem) {
.pillars {
grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr);
}
.pillars__pager {
display: none;
}
}
@media (max-width: 48rem) {
.pillars {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: auto;
}
.pillars__text,
.pillars__tabs,
.pillars__figure {
grid-column: 1;
grid-row: auto;
}
.pillars__figure {
order: -1;
width: min(100%, 24rem);
}
}
@media (prefers-reduced-motion: reduce) {
.pillars__panel,
.pillars__plate,
.pillars__arc,
.pillars__tab-arrow {
transition-duration: 0s;
}
}
</style>
<script>
(() => {
const FANS = [1, -0.7, 0.35, -1.3];
const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)");
function setUp(root) {
const tabs = [...root.querySelectorAll(".pillars__tab")];
const panels = [...root.querySelectorAll(".pillars__panel")];
const dots = [...root.querySelectorAll(".pillars__dot")];
const figure = root.querySelector(".pillars__figure");
const arc = root.querySelector(".pillars__arc");
const dwell = parseFloat(getComputedStyle(root).getPropertyValue("--time-dwell")) * 1000;
let current = 0;
let visible = false;
let timer = 0;
const plays = () => visible && !reducedMotion.matches;
function mark(items, index) {
items.forEach((item, position) => item.classList.toggle("is-active", position === index));
}
function fillArc(from, to, time) {
figure.style.setProperty("--pillars-fill-time", "0s");
figure.style.setProperty("--pillars-filled", from);
arc.getBoundingClientRect();
figure.style.setProperty("--pillars-fill-time", time);
figure.style.setProperty("--pillars-filled", to);
}
function show(index) {
current = index;
mark(tabs, index);
mark(panels, index);
mark(dots, index);
tabs.forEach((tab, position) => tab.setAttribute("aria-selected", position === index));
panels.forEach((panel, position) => panel.setAttribute("aria-hidden", position !== index));
figure.style.setProperty("--pillars-fan", FANS[index % FANS.length]);
}
function play() {
clearTimeout(timer);
const done = (current + 1) / tabs.length;
if (!plays()) {
fillArc(done, done, "0s");
return;
}
fillArc(current / tabs.length + 0.02, done, `${dwell}ms`);
timer = setTimeout(() => {
show((current + 1) % tabs.length);
play();
}, dwell);
}
tabs.forEach((tab, index) =>
tab.addEventListener("click", () => {
show(index);
play();
}),
);
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
play();
}).observe(root);
}
document.querySelectorAll(".pillars").forEach(setUp);
})();
</script>