Orbit rings
Three tilted 3D hoops round a dashed axis, each carrying condensed words that circle and fade behind.
Part of the style
Starfield Halftone Globe
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/starfield-halftone-globe/rings/figma.html?palette=ff98fce80da04497
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/starfield-halftone-globe/rings/figma.html?palette=ff98fce80da04497 and pass that whole HTML document to the html_to_figma tool, so the part "Orbit rings" 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
<style>
/* Goes after the pack's base.css */
:root {
--night: #334493;
--void: #101360;
--cream: #fde3e2;
--white: #fff2f1;
--muted: #f4b0ae;
--hairline: rgba(255, 242, 241, 0.16);
--hairline-strong: rgba(255, 242, 241, 0.42);
--chip: #37478c;
--star: rgba(255, 242, 241, 0.55);
--pink: #fdb4b1;
--pink-deep: #f68686;
}
</style>
<section class="rings" aria-label="What a night here is made of">
<p class="rings__kicker">Every night, in rotation</p>
<div class="rings__stage">
<span class="rings__axis" aria-hidden="true"></span>
<div class="rings__orbit" data-speed="24" data-tilt="-12">
<span class="rings__hoop" aria-hidden="true"></span>
<span class="rings__word">Sound</span>
<span class="rings__word">Taste</span>
<span class="rings__word">Talk</span>
</div>
<div class="rings__orbit" data-speed="-30" data-tilt="-12">
<span class="rings__hoop" aria-hidden="true"></span>
<span class="rings__word">Vinyl</span>
<span class="rings__word">Smoke</span>
<span class="rings__word">Feeling</span>
</div>
<div class="rings__orbit" data-speed="32" data-tilt="-12">
<span class="rings__hoop" aria-hidden="true"></span>
<span class="rings__word">Dancing</span>
<span class="rings__word">Bitters</span>
<span class="rings__word">Rhythm</span>
</div>
</div>
</section>
<style>
.rings {
--ring-radius: min(42vw, 560px);
position: relative;
overflow: hidden;
padding: var(--space-l) var(--edge) var(--space-l);
background-color: var(--night);
background-image: var(--stars);
background-size: var(--stars-tile);
color: var(--cream);
}
.rings__kicker {
margin: 0;
font-size: var(--text-m);
font-weight: 600;
text-transform: uppercase;
text-align: center;
color: var(--white);
}
.rings__stage {
position: relative;
display: grid;
gap: clamp(110px, 14vw, 200px);
padding-block: clamp(90px, 10vw, 150px);
}
.rings__axis {
position: absolute;
left: 50%;
top: 0;
bottom: 0;
border-left: var(--rule) dashed var(--hairline-strong);
}
.rings__orbit {
position: relative;
height: 0;
transform-style: preserve-3d;
}
.rings__hoop {
position: absolute;
left: 50%;
top: 0;
width: calc(var(--ring-radius) * 2);
aspect-ratio: 1;
border: var(--rule-bold) solid var(--hairline-strong);
border-radius: var(--radius-round);
transform: translate(-50%, -50%) rotateX(78deg);
}
.rings__word {
position: absolute;
left: 50%;
top: 0;
font-family: var(--font-display);
font-size: clamp(44px, 6vw, 88px);
line-height: 1;
text-transform: uppercase;
white-space: nowrap;
translate: -50% -100%;
backface-visibility: visible;
will-change: transform, opacity;
}
@media (max-width: 760px) {
.rings {
--ring-radius: 36vw;
}
}
</style>
<script>
(() => {
const still = matchMedia('(prefers-reduced-motion: reduce)');
document.querySelectorAll('.rings').forEach((root) => {
const orbits = [...root.querySelectorAll('.rings__orbit')].map((orbit, index) => ({
words: [...orbit.querySelectorAll('.rings__word')],
period: Number(orbit.dataset.speed) || 24,
tilt: Number(orbit.dataset.tilt) || -12,
offset: index * 47,
}));
let frame = 0;
const place = (seconds) => {
const radius = parseFloat(getComputedStyle(root.querySelector('.rings__hoop')).width) / 2;
for (const orbit of orbits) {
const turn = (seconds / orbit.period) * 360 + orbit.offset;
orbit.words.forEach((word, i) => {
const angle = turn + (i * 360) / orbit.words.length;
const depth = Math.cos((angle * Math.PI) / 180);
const x = Math.sin((angle * Math.PI) / 180) * radius;
const y = depth * radius * 0.208;
const scale = 0.78 + 0.22 * depth;
word.style.transform = `translate(${x.toFixed(1)}px, ${y.toFixed(1)}px) rotateY(${(Math.sin((angle * Math.PI) / 180) * 55).toFixed(1)}deg) scale(${scale.toFixed(3)})`;
word.style.opacity = (0.12 + 0.88 * Math.max(0, depth * 0.5 + 0.5) ** 1.6).toFixed(2);
word.style.zIndex = depth > 0 ? 2 : 0;
});
}
};
const tick = (now) => {
place(now / 1000);
frame = requestAnimationFrame(tick);
};
place(3);
new ResizeObserver(() => place(performance.now() / 1000)).observe(root);
new IntersectionObserver(([entry]) => {
cancelAnimationFrame(frame);
if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
}).observe(root);
});
})();
</script>