3D artist portfolio
A dark 3D artist portfolio with a wireframe sphere built from CSS 3D that you spin by dragging, with momentum, plus a grid of renders.
"use client";
import {
useEffect,
useRef,
useState,
type CSSProperties,
type KeyboardEvent,
} from "react";
import "./render-portfolio.css";
/**
* RenderPortfolio: a dark portfolio for a 3D artist ("Kai Brenner").
* Its signature: a wireframe sphere built from plain CSS 3D transforms that you can
* spin by dragging (with momentum) or with the arrow keys. It turns slowly on its own.
*/
const WORK = [
{
title: "Soft machines",
client: "Personal series",
tools: "Blender, Cycles",
image: "/images/portfolio-3d-artist-render-01.jpg",
alt: "Smooth pastel mechanical parts resting on a pale studio floor",
tone: "#ff5a1f",
},
{
title: "Nimbus speaker launch",
client: "Nimbus Audio",
tools: "Cinema 4D, Redshift",
image: "/images/portfolio-3d-artist-render-02.jpg",
alt: "A fabric-covered speaker on a stone plinth in soft window light",
tone: "#57534b",
},
{
title: "Glass garden",
client: "Museum of Light, Eindhoven",
tools: "Houdini, Karma",
image: "/images/portfolio-3d-artist-render-03.jpg",
alt: "Glass flowers with caustic light patterns on a dark floor",
tone: "#2b35ff",
},
{
title: "Packaging in motion",
client: "Oda Skincare",
tools: "Blender, Octane",
image: "/images/portfolio-3d-artist-render-04.jpg",
alt: "Frosted glass skincare bottles floating among slow water ripples",
tone: "#8c7a6b",
},
];
const MERIDIANS = 9;
const PARALLELS = [-60, -30, 0, 30, 60];
function Globe() {
const stage = useRef<HTMLDivElement>(null);
const ball = useRef<HTMLDivElement>(null);
const rot = useRef({ x: -18, y: 20 });
const vel = useRef({ x: 0, y: 0 });
const drag = useRef<{ x: number; y: number } | null>(null);
useEffect(() => {
const reduce = window.matchMedia(
"(prefers-reduced-motion: reduce)",
).matches;
let raf = 0;
let visible = true;
const io = new IntersectionObserver(([e]) => (visible = e.isIntersecting));
if (stage.current) io.observe(stage.current);
const tick = () => {
if (visible) {
if (!drag.current) {
// momentum after a drag, then a slow idle spin
vel.current.x *= 0.94;
vel.current.y *= 0.94;
rot.current.x += vel.current.x;
rot.current.y += vel.current.y + (reduce ? 0 : 0.12);
}
rot.current.x = Math.max(-80, Math.min(80, rot.current.x));
if (ball.current)
ball.current.style.transform = `rotateX(${rot.current.x}deg) rotateY(${rot.current.y}deg)`;
}
raf = requestAnimationFrame(tick);
};
raf = requestAnimationFrame(tick);
return () => {
cancelAnimationFrame(raf);
io.disconnect();
};
}, []);
const onKey = (e: KeyboardEvent) => {
const step = 12;
const map: Record<string, [number, number]> = {
ArrowLeft: [0, -step],
ArrowRight: [0, step],
ArrowUp: [step, 0],
ArrowDown: [-step, 0],
};
const d = map[e.key];
if (!d) return;
e.preventDefault();
rot.current.x += d[0];
rot.current.y += d[1];
};
return (
<div
ref={stage}
className="gu-render__globe"
role="img"
tabIndex={0}
aria-label="A wireframe sphere. Drag it, or use the arrow keys, to turn it."
onKeyDown={onKey}
onPointerDown={(e) => {
e.currentTarget.setPointerCapture(e.pointerId);
drag.current = { x: e.clientX, y: e.clientY };
vel.current = { x: 0, y: 0 };
}}
onPointerMove={(e) => {
if (!drag.current) return;
const dx = e.clientX - drag.current.x;
const dy = e.clientY - drag.current.y;
drag.current = { x: e.clientX, y: e.clientY };
vel.current = { x: -dy * 0.35, y: dx * 0.35 };
rot.current.x -= dy * 0.35;
rot.current.y += dx * 0.35;
}}
onPointerUp={() => (drag.current = null)}
onPointerCancel={() => (drag.current = null)}
>
<div ref={ball} className="gu-render__ball">
{Array.from({ length: MERIDIANS }, (_, i) => (
<i
key={`m${i}`}
className="gu-render__ring is-meridian"
style={{ "--r": `${(i * 180) / MERIDIANS}deg` } as CSSProperties}
/>
))}
{PARALLELS.map((lat) => (
<i
key={`p${lat}`}
className="gu-render__ring is-parallel"
style={
{
"--s": Math.cos((lat * Math.PI) / 180).toFixed(3),
"--z": Math.sin((lat * Math.PI) / 180).toFixed(3),
} as CSSProperties
}
/>
))}
<i className="gu-render__core" />
</div>
</div>
);
}
function Render({
src,
alt,
tone,
}: {
src: string;
alt: string;
tone: string;
}) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<div className="gu-render__img" style={{ "--tone": tone } as CSSProperties}>
{!missing && (
<img
ref={img}
src={src}
alt={alt}
loading="lazy"
onError={() => setMissing(true)}
/>
)}
</div>
);
}
export function RenderPortfolio() {
return (
<div className="gu-render">
<nav className="gu-render__nav" aria-label="Main">
<a href="#" className="gu-render__name">
Kai Brenner
</a>
<a href="#render-work">Work</a>
<a href="#render-contact">Contact</a>
</nav>
<header className="gu-render__hero">
<div className="gu-render__copy">
<h1>3D artist making objects you want to touch.</h1>
<p>
Product launches, museum pieces and personal series, rendered in
Blender and Houdini. Based in Berlin, working everywhere.
</p>
<p className="gu-render__hint" aria-hidden="true">
Drag the sphere
</p>
</div>
<Globe />
</header>
<section
id="render-work"
className="gu-render__work"
aria-labelledby="gu-render-work"
>
<h2 id="gu-render-work">Recent work</h2>
<ul>
{WORK.map((w) => (
<li key={w.title}>
<a href="#">
<Render src={w.image} alt={w.alt} tone={w.tone} />
<span className="gu-render__info">
<b>{w.title}</b>
<span>{w.client}</span>
<small>{w.tools}</small>
</span>
</a>
</li>
))}
</ul>
</section>
<section id="render-contact" className="gu-render__contact">
<h2>Have a product nobody has photographed yet?</h2>
<a href="mailto:kai@example.com">kai@example.com</a>
<p>Booking projects from March 2027.</p>
</section>
</div>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: 3D artist portfolio
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A dark portfolio for a 3D artist ("Kai Brenner", Berlin). Its signature: a wireframe sphere made only of CSS 3D transforms (nine orange meridian rings, five cream latitude rings and a glowing lime core) that you spin by dragging, with momentum, or with the arrow keys. It turns slowly on its own. Sections: nav, hero (headline, intro, a small "Drag the sphere" hint, the sphere), a two-column grid of renders whose details slide up on hover, and a contact block.
## Palette
Background #0e0e10, surface #18181b, text #f3eee3, muted #aea89c, lines rgba(243,238,227,0.14), accent #ff5a1f (meridians, hint line, email hover), lime #d7ff3a (core, tool tags, focus ring).
## Layout
- Root uses container queries (container-type: inline-size), side padding 5%.
- Hero: two columns at ≥760px. Headline max 12ch, up to 6rem, weight 900. The sphere stage is min(80cqi, 420px) square with perspective 1100px, touch-action: none and a grab cursor.
- Sphere: an inner element (78% wide) with transform-style: preserve-3d.
- Meridian i: a full circle with a 2px orange border and rotateY(i × 20°).
- Parallel at latitude L: a circle with translateY(-sin(L) × 50%) rotateX(90deg) scale(cos(L)).
- Core: a small lime radial-gradient ball with a soft glow.
- Work: 2 columns at ≥720px, cards 4:3 with a 24px radius. An info layer at the bottom (title, client, a lime tools tag) over a dark gradient.
- Contact: surface band, a short question, the email up to 7rem.
## Images
Four renders (1600×1200, 4:3). Until a file exists, each card shows a radial gradient in its tone.
## Motion
- One requestAnimationFrame loop writes rotateX and rotateY directly to the element (no React re-render). Dragging adds 0.35° per pixel; on release the velocity decays by 0.94 per frame. When idle, it turns 0.12° per frame. Tilt is clamped to ±80°.
- The loop pauses while the sphere is off screen (IntersectionObserver).
- With a mouse, card info is hidden and slides up 12px on hover or focus while the render zooms to 1.04. On touch it is always visible.
## Accessibility
- The sphere is focusable (tabindex 0, role="img") with the label "A wireframe sphere. Drag it, or use the arrow keys, to turn it." Arrow keys turn it by 12°.
- Pointer capture keeps a drag working when the pointer leaves the sphere.
- prefers-reduced-motion: no idle spin (dragging and keys still work), no hover zoom or slide.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### RenderPortfolio.tsx
```tsx
"use client";
import {
useEffect,
useRef,
useState,
type CSSProperties,
type KeyboardEvent,
} from "react";
import "./render-portfolio.css";
/**
* RenderPortfolio: a dark portfolio for a 3D artist ("Kai Brenner").
* Its signature: a wireframe sphere built from plain CSS 3D transforms that you can
* spin by dragging (with momentum) or with the arrow keys. It turns slowly on its own.
*/
const WORK = [
{
title: "Soft machines",
client: "Personal series",
tools: "Blender, Cycles",
image: "/images/portfolio-3d-artist-render-01.jpg",
alt: "Smooth pastel mechanical parts resting on a pale studio floor",
tone: "#ff5a1f",
},
{
title: "Nimbus speaker launch",
client: "Nimbus Audio",
tools: "Cinema 4D, Redshift",
image: "/images/portfolio-3d-artist-render-02.jpg",
alt: "A fabric-covered speaker on a stone plinth in soft window light",
tone: "#57534b",
},
{
title: "Glass garden",
client: "Museum of Light, Eindhoven",
tools: "Houdini, Karma",
image: "/images/portfolio-3d-artist-render-03.jpg",
alt: "Glass flowers with caustic light patterns on a dark floor",
tone: "#2b35ff",
},
{
title: "Packaging in motion",
client: "Oda Skincare",
tools: "Blender, Octane",
image: "/images/portfolio-3d-artist-render-04.jpg",
alt: "Frosted glass skincare bottles floating among slow water ripples",
tone: "#8c7a6b",
},
];
const MERIDIANS = 9;
const PARALLELS = [-60, -30, 0, 30, 60];
function Globe() {
const stage = useRef<HTMLDivElement>(null);
const ball = useRef<HTMLDivElement>(null);
const rot = useRef({ x: -18, y: 20 });
const vel = useRef({ x: 0, y: 0 });
const drag = useRef<{ x: number; y: number } | null>(null);
useEffect(() => {
const reduce = window.matchMedia(
"(prefers-reduced-motion: reduce)",
).matches;
let raf = 0;
let visible = true;
const io = new IntersectionObserver(([e]) => (visible = e.isIntersecting));
if (stage.current) io.observe(stage.current);
const tick = () => {
if (visible) {
if (!drag.current) {
// momentum after a drag, then a slow idle spin
vel.current.x *= 0.94;
vel.current.y *= 0.94;
rot.current.x += vel.current.x;
rot.current.y += vel.current.y + (reduce ? 0 : 0.12);
}
rot.current.x = Math.max(-80, Math.min(80, rot.current.x));
if (ball.current)
ball.current.style.transform = `rotateX(${rot.current.x}deg) rotateY(${rot.current.y}deg)`;
}
raf = requestAnimationFrame(tick);
};
raf = requestAnimationFrame(tick);
return () => {
cancelAnimationFrame(raf);
io.disconnect();
};
}, []);
const onKey = (e: KeyboardEvent) => {
const step = 12;
const map: Record<string, [number, number]> = {
ArrowLeft: [0, -step],
ArrowRight: [0, step],
ArrowUp: [step, 0],
ArrowDown: [-step, 0],
};
const d = map[e.key];
if (!d) return;
e.preventDefault();
rot.current.x += d[0];
rot.current.y += d[1];
};
return (
<div
ref={stage}
className="gu-render__globe"
role="img"
tabIndex={0}
aria-label="A wireframe sphere. Drag it, or use the arrow keys, to turn it."
onKeyDown={onKey}
onPointerDown={(e) => {
e.currentTarget.setPointerCapture(e.pointerId);
drag.current = { x: e.clientX, y: e.clientY };
vel.current = { x: 0, y: 0 };
}}
onPointerMove={(e) => {
if (!drag.current) return;
const dx = e.clientX - drag.current.x;
const dy = e.clientY - drag.current.y;
drag.current = { x: e.clientX, y: e.clientY };
vel.current = { x: -dy * 0.35, y: dx * 0.35 };
rot.current.x -= dy * 0.35;
rot.current.y += dx * 0.35;
}}
onPointerUp={() => (drag.current = null)}
onPointerCancel={() => (drag.current = null)}
>
<div ref={ball} className="gu-render__ball">
{Array.from({ length: MERIDIANS }, (_, i) => (
<i
key={`m${i}`}
className="gu-render__ring is-meridian"
style={{ "--r": `${(i * 180) / MERIDIANS}deg` } as CSSProperties}
/>
))}
{PARALLELS.map((lat) => (
<i
key={`p${lat}`}
className="gu-render__ring is-parallel"
style={
{
"--s": Math.cos((lat * Math.PI) / 180).toFixed(3),
"--z": Math.sin((lat * Math.PI) / 180).toFixed(3),
} as CSSProperties
}
/>
))}
<i className="gu-render__core" />
</div>
</div>
);
}
function Render({
src,
alt,
tone,
}: {
src: string;
alt: string;
tone: string;
}) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<div className="gu-render__img" style={{ "--tone": tone } as CSSProperties}>
{!missing && (
<img
ref={img}
src={src}
alt={alt}
loading="lazy"
onError={() => setMissing(true)}
/>
)}
</div>
);
}
export function RenderPortfolio() {
return (
<div className="gu-render">
<nav className="gu-render__nav" aria-label="Main">
<a href="#" className="gu-render__name">
Kai Brenner
</a>
<a href="#render-work">Work</a>
<a href="#render-contact">Contact</a>
</nav>
<header className="gu-render__hero">
<div className="gu-render__copy">
<h1>3D artist making objects you want to touch.</h1>
<p>
Product launches, museum pieces and personal series, rendered in
Blender and Houdini. Based in Berlin, working everywhere.
</p>
<p className="gu-render__hint" aria-hidden="true">
Drag the sphere
</p>
</div>
<Globe />
</header>
<section
id="render-work"
className="gu-render__work"
aria-labelledby="gu-render-work"
>
<h2 id="gu-render-work">Recent work</h2>
<ul>
{WORK.map((w) => (
<li key={w.title}>
<a href="#">
<Render src={w.image} alt={w.alt} tone={w.tone} />
<span className="gu-render__info">
<b>{w.title}</b>
<span>{w.client}</span>
<small>{w.tools}</small>
</span>
</a>
</li>
))}
</ul>
</section>
<section id="render-contact" className="gu-render__contact">
<h2>Have a product nobody has photographed yet?</h2>
<a href="mailto:kai@example.com">kai@example.com</a>
<p>Booking projects from March 2027.</p>
</section>
</div>
);
}
```
### render-portfolio.css
```css
/* RenderPortfolio: change these colors to match your brand. */
.gu-render {
--bg: #0e0e10;
--surface: #18181b;
--text: #f3eee3;
--muted: #aea89c;
--line: rgb(243 238 227 / 0.14);
--accent: #ff5a1f;
--volt: #d7ff3a;
--ease: cubic-bezier(0.16, 1, 0.3, 1);
container-type: inline-size;
overflow: hidden;
background: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
}
.gu-render a {
color: inherit;
text-decoration: none;
}
.gu-render :focus-visible {
outline: 2px solid var(--volt);
outline-offset: 4px;
}
.gu-render h1,
.gu-render h2,
.gu-render p {
margin: 0;
}
.gu-render__nav {
display: flex;
align-items: center;
gap: 22px;
padding: 18px 5%;
font-weight: 600;
}
.gu-render__name {
margin-right: auto;
font-weight: 900;
letter-spacing: -0.03em;
}
/* Hero */
.gu-render__hero {
display: grid;
align-items: center;
gap: 24px;
padding: 24px 5% 64px;
}
@container (min-width: 760px) {
.gu-render__hero {
grid-template-columns: 1fr 1fr;
padding-top: 48px;
}
}
.gu-render__copy h1 {
max-width: 12ch;
font-size: clamp(2.6rem, 7cqi, 6rem);
font-weight: 900;
line-height: 0.92;
letter-spacing: -0.05em;
text-wrap: balance;
}
.gu-render__copy > p:not(.gu-render__hint) {
max-width: 38ch;
margin-top: 20px;
font-size: 1.08rem;
line-height: 1.5;
color: var(--muted);
}
.gu-render__hint {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 24px !important;
font-size: 0.85rem;
font-weight: 700;
color: var(--muted);
}
.gu-render__hint::before {
content: "";
width: 22px;
height: 2px;
background: var(--accent);
}
/* The sphere: rings rotated in 3D space */
.gu-render__globe {
--size: min(80cqi, 420px);
justify-self: center;
display: grid;
place-items: center;
width: var(--size);
aspect-ratio: 1;
border-radius: 50%;
perspective: 1100px;
cursor: grab;
touch-action: none;
user-select: none;
}
.gu-render__globe:active {
cursor: grabbing;
}
.gu-render__ball {
position: relative;
width: 78%;
aspect-ratio: 1;
transform-style: preserve-3d;
}
.gu-render__ring {
position: absolute;
inset: 0;
border-radius: 50%;
}
.gu-render__ring.is-meridian {
border: 2px solid var(--accent);
transform: rotateY(var(--r));
}
.gu-render__ring.is-parallel {
border: 1.5px solid rgb(243 238 227 / 0.55);
/* a horizontal circle, shrunk by cos(latitude) and lifted by sin(latitude) */
transform: translateY(calc(var(--z) * -50%)) rotateX(90deg) scale(var(--s));
}
.gu-render__core {
position: absolute;
inset: 38%;
border-radius: 50%;
background: radial-gradient(
circle at 35% 30%,
#fff8e8,
var(--volt) 40%,
#6f8a00
);
box-shadow: 0 0 40px rgb(215 255 58 / 0.35);
}
/* Work grid */
.gu-render__work {
padding: 56px 5%;
border-top: 1px solid var(--line);
}
.gu-render__work h2 {
margin-bottom: 24px;
font-size: 1rem;
color: var(--muted);
}
.gu-render__work ul {
display: grid;
gap: 20px;
margin: 0;
padding: 0;
list-style: none;
}
@container (min-width: 720px) {
.gu-render__work ul {
grid-template-columns: 1fr 1fr;
}
}
.gu-render__work a {
position: relative;
display: block;
overflow: hidden;
border-radius: 24px;
}
.gu-render__img {
position: relative;
aspect-ratio: 4 / 3;
background: radial-gradient(
90% 80% at 40% 30%,
color-mix(in srgb, var(--tone) 60%, #fff),
var(--tone)
);
}
.gu-render__img img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 1s var(--ease);
}
.gu-render__info {
position: absolute;
inset: auto 0 0;
display: grid;
gap: 2px;
padding: 48px 20px 18px;
background: linear-gradient(to top, rgb(14 14 16 / 0.85), transparent);
}
.gu-render__info b {
font-size: 1.3rem;
letter-spacing: -0.02em;
}
.gu-render__info span {
color: var(--muted);
}
.gu-render__info small {
margin-top: 6px;
justify-self: start;
padding: 3px 10px;
border-radius: 999px;
background: var(--volt);
color: var(--bg);
font-weight: 700;
}
@media (hover: hover) {
.gu-render__info {
opacity: 0;
transform: translateY(12px);
transition:
opacity 0.35s,
transform 0.5s var(--ease);
}
.gu-render__work a:hover .gu-render__info,
.gu-render__work a:focus-visible .gu-render__info {
opacity: 1;
transform: none;
}
.gu-render__work a:hover .gu-render__img img {
transform: scale(1.04);
}
}
/* Contact */
.gu-render__contact {
padding: 72px 5% 88px;
background: var(--surface);
}
.gu-render__contact h2 {
max-width: 20ch;
font-size: clamp(1.6rem, 3.6cqi, 2.6rem);
font-weight: 800;
line-height: 1.05;
letter-spacing: -0.03em;
}
.gu-render__contact a {
display: inline-block;
margin: 16px 0 12px;
font-size: clamp(2rem, 8.6cqi, 7rem);
font-weight: 900;
letter-spacing: -0.055em;
word-break: break-all;
transition: color 0.25s;
}
.gu-render__contact a:hover {
color: var(--accent);
}
.gu-render__contact p {
color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
.gu-render__img img,
.gu-render__info,
.gu-render__contact a {
transition: none;
}
.gu-render__work a:hover .gu-render__img img {
transform: none;
}
}
```
You might also want
Next piece: 404 page sectionFashion designer portfolio with a lookbook loupe
Portfolios, advanced
Illustrator portfolio with a print table
Portfolios, advanced
Photographer portfolio
Portfolios, intermediate



