Motion designer portfolio
A motion designer portfolio with an 8-second CSS showreel you can play or scrub frame by frame on a real timeline.
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./motion-portfolio.css";
/**
* MotionPortfolio: a portfolio for a motion designer ("Noor Haddad").
* Its signature: a showreel built from CSS keyframes, with a real timeline.
* Press play, or drag the playhead to scrub through it frame by frame.
* Every CSS animation in the reel is paused and driven by one number (--t, 0 to 1).
*/
const LENGTH = 8; // seconds
const MARKERS = [
{ at: 0, label: "Shapes" },
{ at: 0.25, label: "Morph" },
{ at: 0.5, label: "Orbit" },
{ at: 0.75, label: "Title" },
];
const PROJECTS = [
{
title: "Fernweh Maps onboarding",
kind: "Product motion",
year: "2026",
loop: "is-path",
},
{
title: "Oda Skincare launch film",
kind: "Brand film",
year: "2026",
loop: "is-drop",
},
{
title: "Nordlicht festival titles",
kind: "Title sequence",
year: "2025",
loop: "is-bars",
},
{
title: "Kept app, streak moments",
kind: "UI animation",
year: "2025",
loop: "is-pop",
},
];
const fmt = (t: number) => {
const s = t * LENGTH;
const sec = Math.floor(s);
const frames = Math.floor((s - sec) * 25);
return `00:0${sec}:${String(frames).padStart(2, "0")}`;
};
function Reel() {
const [t, setT] = useState(0.2); // start on a composed frame
const [playing, setPlaying] = useState(false);
const last = useRef(0);
useEffect(() => {
if (!playing) return;
let raf = 0;
last.current = performance.now();
const tick = (now: number) => {
const dt = (now - last.current) / 1000;
last.current = now;
setT((v) => (v + dt / LENGTH) % 1);
raf = requestAnimationFrame(tick);
};
raf = requestAnimationFrame(tick);
return () => cancelAnimationFrame(raf);
}, [playing]);
return (
<div className="gu-reel">
<div
className="gu-reel__stage"
style={{ "--t": t } as CSSProperties}
aria-hidden="true"
>
<i className="gu-reel__a" />
<i className="gu-reel__b" />
<i className="gu-reel__c" />
<i className="gu-reel__orbit">
<i />
</i>
<b className="gu-reel__title">
<span>N</span>
<span>O</span>
<span>O</span>
<span>R</span>
</b>
</div>
<div className="gu-reel__controls">
<button
type="button"
className="gu-reel__play"
onClick={() => setPlaying((p) => !p)}
aria-label={playing ? "Pause the reel" : "Play the reel"}
>
<span
className={playing ? "is-pause" : "is-play"}
aria-hidden="true"
/>
</button>
<div className="gu-reel__track">
<div className="gu-reel__markers" aria-hidden="true">
{MARKERS.map((m) => (
<span key={m.label} style={{ left: `${m.at * 100}%` }}>
{m.label}
</span>
))}
</div>
<input
type="range"
min={0}
max={1000}
value={Math.round(t * 1000)}
aria-label="Reel position"
aria-valuetext={fmt(t)}
onChange={(e) => {
setPlaying(false);
setT(Number(e.target.value) / 1000);
}}
style={{ "--p": `${t * 100}%` } as CSSProperties}
/>
</div>
<output className="gu-reel__time">{fmt(t)}</output>
</div>
</div>
);
}
export function MotionPortfolio() {
return (
<div className="gu-motion">
<nav className="gu-motion__nav" aria-label="Main">
<a href="#" className="gu-motion__name">
Noor Haddad
</a>
<a href="#reel-projects">Projects</a>
<a href="#reel-contact">Contact</a>
</nav>
<header className="gu-motion__hero">
<h1>
Motion designer. I make interfaces and brands move like they mean it.
</h1>
<p>
Drag the playhead to scrub my reel, frame by frame. It’s eight
seconds of pure CSS.
</p>
</header>
<Reel />
<section
id="reel-projects"
className="gu-motion__projects"
aria-labelledby="gu-motion-projects"
>
<h2 id="gu-motion-projects">Selected projects</h2>
<ul>
{PROJECTS.map((p) => (
<li key={p.title}>
<a href="#">
<span
className={`gu-motion__loop ${p.loop}`}
aria-hidden="true"
>
<i />
<i />
<i />
</span>
<span className="gu-motion__ptitle">{p.title}</span>
<span className="gu-motion__pkind">{p.kind}</span>
<span className="gu-motion__pyear">{p.year}</span>
</a>
</li>
))}
</ul>
</section>
<section
className="gu-motion__principles"
aria-labelledby="gu-motion-how"
>
<h2 id="gu-motion-how">How I work</h2>
<dl>
<div>
<dt>Motion explains first</dt>
<dd>
If an animation doesn’t tell you what changed, it gets cut.
</dd>
</div>
<div>
<dt>Built to ship</dt>
<dd>
Lottie, Rive or plain CSS, with specs your engineers can paste.
</dd>
</div>
<div>
<dt>Calm by default</dt>
<dd>Every piece has a reduced-motion version from day one.</dd>
</div>
</dl>
</section>
<section id="reel-contact" className="gu-motion__contact">
<p>Open for projects from February</p>
<a href="mailto:noor@example.com">noor@example.com</a>
</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: Motion designer 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 light portfolio for a motion designer ("Noor Haddad"). Its signature: an 8-second showreel built only from CSS keyframes, with a real timeline under it: a play/pause button, a scrubber with chapter markers (Shapes, Morph, Orbit, Title) and a timecode. Dragging the playhead scrubs the animation frame by frame. Sections: nav, hero, the reel, a projects list where each row has a tiny looping CSS animation as its thumbnail, three working principles and an orange contact block. No images.
## Palette
Background #f3eee3, surface #fbf8f2, text #0e0e10 (also the reel background), muted #57534b, lines rgba(14,14,16,0.14), accent #ff5a1f, lime #d7ff3a (reel bar, ring loop, scrubber focus), focus #2b35ff.
## How the scrubbing works
- React keeps one number t from 0 to 1 and writes it to the stage as `--t`. While playing, a requestAnimationFrame loop advances t by elapsed time / 8s and wraps at 1.
- Every animated element in the stage has `animation-play-state: paused`, an 8s duration, linear timing and `animation-delay: calc(var(--t) * 8s * -1)`. A paused animation with a negative delay shows exactly that moment, so changing t moves the whole reel to that frame.
- Staggered letters add a small positive offset to their delay (+0.12s, +0.24s, +0.36s).
## The reel (16:9, ink background)
- 0–25%: an orange rounded square spins in from the left; a cream ring grows in from the right; a lime bar draws itself under them.
- 25–50%: the square morphs into a circle and swells, the ring expands and fades, the bar shrinks away; then the circle collapses.
- 50–75%: a dashed orbit scales in and a dot circles it, turning lime for a moment.
- 75–100%: the letters N, O, O, R rise one after another with a small squash and overshoot (the last letter orange), and the lime bar returns.
## Layout
- Root uses container queries (container-type: inline-size), side padding 5%.
- Controls row: a 48px orange round play button (CSS triangle or two bars), the track (markers above a 6px rail filled orange up to the playhead, with a thin cream 4×26px thumb) and a monospace timecode (00:0S:FF at 25 frames per second). On narrow widths, every other marker hides.
- Projects: rows with a 64–72px square ink thumbnail running its own loop (dots sliding along a path, a drop squashing, bars bouncing, a pop with a ring), the title (up to 1.9rem, weight 800), the kind and the year (from 760px).
- Principles: three surface cards (a definition list).
- Contact: orange block with a huge email.
## Accessibility
- The scrubber is a native range input labelled "Reel position", with the timecode as aria-valuetext. The play button's label switches between "Play the reel" and "Pause the reel". The stage itself is aria-hidden (decorative).
- The reel never plays on its own; it only moves when someone presses play or drags.
- prefers-reduced-motion: the thumbnail loops stop and hover transitions are removed. The reel stays user-controlled.
## 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.
### MotionPortfolio.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./motion-portfolio.css";
/**
* MotionPortfolio: a portfolio for a motion designer ("Noor Haddad").
* Its signature: a showreel built from CSS keyframes, with a real timeline.
* Press play, or drag the playhead to scrub through it frame by frame.
* Every CSS animation in the reel is paused and driven by one number (--t, 0 to 1).
*/
const LENGTH = 8; // seconds
const MARKERS = [
{ at: 0, label: "Shapes" },
{ at: 0.25, label: "Morph" },
{ at: 0.5, label: "Orbit" },
{ at: 0.75, label: "Title" },
];
const PROJECTS = [
{
title: "Fernweh Maps onboarding",
kind: "Product motion",
year: "2026",
loop: "is-path",
},
{
title: "Oda Skincare launch film",
kind: "Brand film",
year: "2026",
loop: "is-drop",
},
{
title: "Nordlicht festival titles",
kind: "Title sequence",
year: "2025",
loop: "is-bars",
},
{
title: "Kept app, streak moments",
kind: "UI animation",
year: "2025",
loop: "is-pop",
},
];
const fmt = (t: number) => {
const s = t * LENGTH;
const sec = Math.floor(s);
const frames = Math.floor((s - sec) * 25);
return `00:0${sec}:${String(frames).padStart(2, "0")}`;
};
function Reel() {
const [t, setT] = useState(0.2); // start on a composed frame
const [playing, setPlaying] = useState(false);
const last = useRef(0);
useEffect(() => {
if (!playing) return;
let raf = 0;
last.current = performance.now();
const tick = (now: number) => {
const dt = (now - last.current) / 1000;
last.current = now;
setT((v) => (v + dt / LENGTH) % 1);
raf = requestAnimationFrame(tick);
};
raf = requestAnimationFrame(tick);
return () => cancelAnimationFrame(raf);
}, [playing]);
return (
<div className="gu-reel">
<div
className="gu-reel__stage"
style={{ "--t": t } as CSSProperties}
aria-hidden="true"
>
<i className="gu-reel__a" />
<i className="gu-reel__b" />
<i className="gu-reel__c" />
<i className="gu-reel__orbit">
<i />
</i>
<b className="gu-reel__title">
<span>N</span>
<span>O</span>
<span>O</span>
<span>R</span>
</b>
</div>
<div className="gu-reel__controls">
<button
type="button"
className="gu-reel__play"
onClick={() => setPlaying((p) => !p)}
aria-label={playing ? "Pause the reel" : "Play the reel"}
>
<span
className={playing ? "is-pause" : "is-play"}
aria-hidden="true"
/>
</button>
<div className="gu-reel__track">
<div className="gu-reel__markers" aria-hidden="true">
{MARKERS.map((m) => (
<span key={m.label} style={{ left: `${m.at * 100}%` }}>
{m.label}
</span>
))}
</div>
<input
type="range"
min={0}
max={1000}
value={Math.round(t * 1000)}
aria-label="Reel position"
aria-valuetext={fmt(t)}
onChange={(e) => {
setPlaying(false);
setT(Number(e.target.value) / 1000);
}}
style={{ "--p": `${t * 100}%` } as CSSProperties}
/>
</div>
<output className="gu-reel__time">{fmt(t)}</output>
</div>
</div>
);
}
export function MotionPortfolio() {
return (
<div className="gu-motion">
<nav className="gu-motion__nav" aria-label="Main">
<a href="#" className="gu-motion__name">
Noor Haddad
</a>
<a href="#reel-projects">Projects</a>
<a href="#reel-contact">Contact</a>
</nav>
<header className="gu-motion__hero">
<h1>
Motion designer. I make interfaces and brands move like they mean it.
</h1>
<p>
Drag the playhead to scrub my reel, frame by frame. It’s eight
seconds of pure CSS.
</p>
</header>
<Reel />
<section
id="reel-projects"
className="gu-motion__projects"
aria-labelledby="gu-motion-projects"
>
<h2 id="gu-motion-projects">Selected projects</h2>
<ul>
{PROJECTS.map((p) => (
<li key={p.title}>
<a href="#">
<span
className={`gu-motion__loop ${p.loop}`}
aria-hidden="true"
>
<i />
<i />
<i />
</span>
<span className="gu-motion__ptitle">{p.title}</span>
<span className="gu-motion__pkind">{p.kind}</span>
<span className="gu-motion__pyear">{p.year}</span>
</a>
</li>
))}
</ul>
</section>
<section
className="gu-motion__principles"
aria-labelledby="gu-motion-how"
>
<h2 id="gu-motion-how">How I work</h2>
<dl>
<div>
<dt>Motion explains first</dt>
<dd>
If an animation doesn’t tell you what changed, it gets cut.
</dd>
</div>
<div>
<dt>Built to ship</dt>
<dd>
Lottie, Rive or plain CSS, with specs your engineers can paste.
</dd>
</div>
<div>
<dt>Calm by default</dt>
<dd>Every piece has a reduced-motion version from day one.</dd>
</div>
</dl>
</section>
<section id="reel-contact" className="gu-motion__contact">
<p>Open for projects from February</p>
<a href="mailto:noor@example.com">noor@example.com</a>
</section>
</div>
);
}
```
### motion-portfolio.css
```css
/* MotionPortfolio: change these colors to match your brand. */
.gu-motion {
--bg: #f3eee3;
--surface: #fbf8f2;
--text: #0e0e10;
--muted: #57534b;
--line: rgb(14 14 16 / 0.14);
--accent: #ff5a1f;
--volt: #d7ff3a;
--blue: #2b35ff;
--focus: #2b35ff;
--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-motion a {
color: inherit;
text-decoration: none;
}
.gu-motion :focus-visible {
outline: 2px solid var(--focus);
outline-offset: 3px;
}
.gu-motion h1,
.gu-motion h2,
.gu-motion p,
.gu-motion dl,
.gu-motion dd {
margin: 0;
}
.gu-motion__nav {
display: flex;
align-items: center;
gap: 22px;
padding: 18px 5%;
font-weight: 600;
}
.gu-motion__name {
margin-right: auto;
font-weight: 900;
letter-spacing: -0.03em;
}
.gu-motion__hero {
padding: 40px 5% 32px;
}
.gu-motion__hero h1 {
max-width: 18ch;
font-size: clamp(2.2rem, 6.4cqi, 5.4rem);
font-weight: 900;
line-height: 0.94;
letter-spacing: -0.05em;
text-wrap: balance;
}
.gu-motion__hero p {
max-width: 40ch;
margin-top: 18px;
font-size: 1.05rem;
line-height: 1.5;
color: var(--muted);
}
/* The reel: every animation below is paused and positioned by --t (0 to 1). */
.gu-reel {
margin: 0 5%;
overflow: hidden;
border-radius: 24px;
background: var(--text);
color: var(--bg);
}
.gu-reel__stage {
--len: 8s;
position: relative;
aspect-ratio: 16 / 9;
overflow: hidden;
}
.gu-reel__stage > *,
.gu-reel__title span,
.gu-reel__orbit i {
animation-duration: var(--len);
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-fill-mode: both;
animation-play-state: paused;
animation-delay: calc(var(--t) * var(--len) * -1);
}
.gu-reel__a,
.gu-reel__b,
.gu-reel__c,
.gu-reel__orbit {
position: absolute;
left: 50%;
top: 50%;
}
.gu-reel__a {
width: 18%;
aspect-ratio: 1;
margin: -9% 0 0 -9%;
background: var(--accent);
animation-name: gu-reel-a;
}
@keyframes gu-reel-a {
0% {
transform: translateX(-260%) rotate(-180deg);
border-radius: 14%;
}
12% {
transform: translateX(-60%) rotate(0deg);
border-radius: 14%;
animation-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
25% {
transform: translateX(-60%) rotate(0deg) scale(1);
border-radius: 14%;
}
38% {
transform: translateX(0) scale(1.5);
border-radius: 50%;
}
50% {
transform: translateX(0) scale(0.4);
border-radius: 50%;
opacity: 1;
}
52%,
100% {
transform: scale(0.4);
border-radius: 50%;
opacity: 0;
}
}
.gu-reel__b {
width: 12%;
aspect-ratio: 1;
margin: -6% 0 0 -6%;
border: 0.5cqi solid var(--bg);
border-radius: 50%;
animation-name: gu-reel-b;
}
@keyframes gu-reel-b {
0%,
4% {
transform: translate(300%, 0) scale(0);
}
14% {
transform: translate(90%, 0) scale(1);
}
25% {
transform: translate(90%, 0) scale(1);
}
38% {
transform: translate(0, 0) scale(2.6);
opacity: 0.5;
}
48%,
100% {
transform: scale(4);
opacity: 0;
}
}
.gu-reel__c {
width: 40%;
height: 3%;
margin: 14% 0 0 -20%;
border-radius: 999px;
background: var(--volt);
transform-origin: left;
animation-name: gu-reel-c;
}
@keyframes gu-reel-c {
0%,
8% {
transform: scaleX(0);
}
20% {
transform: scaleX(1);
}
30% {
transform: scaleX(1) translateY(0);
opacity: 1;
}
40%,
70% {
transform: scaleX(0.2) translateY(-300%);
opacity: 0;
}
80% {
transform: scaleX(0);
opacity: 1;
}
92%,
100% {
transform: scaleX(1);
opacity: 1;
}
}
.gu-reel__orbit {
width: 36%;
aspect-ratio: 1;
margin: -18% 0 0 -18%;
border: 1px dashed rgb(243 238 227 / 0.4);
border-radius: 50%;
animation-name: gu-reel-orbit;
}
.gu-reel__orbit i {
position: absolute;
top: -6%;
left: 44%;
width: 12%;
aspect-ratio: 1;
border-radius: 50%;
background: var(--accent);
animation-name: gu-reel-dot;
}
@keyframes gu-reel-orbit {
0%,
46% {
transform: scale(0) rotate(0deg);
}
54% {
transform: scale(1) rotate(90deg);
}
70% {
transform: scale(1) rotate(540deg);
opacity: 1;
}
76%,
100% {
transform: scale(0.2) rotate(720deg);
opacity: 0;
}
}
@keyframes gu-reel-dot {
0%,
50% {
background: var(--accent);
}
60% {
background: var(--volt);
}
70%,
100% {
background: var(--accent);
}
}
.gu-reel__title {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 0.02em;
font-size: 15cqi;
font-weight: 900;
letter-spacing: -0.06em;
animation: none !important;
}
.gu-reel__title span {
display: inline-block;
animation-name: gu-reel-letter;
}
.gu-reel__title span:nth-child(2) {
animation-delay: calc(var(--t) * var(--len) * -1 + 0.12s);
}
.gu-reel__title span:nth-child(3) {
animation-delay: calc(var(--t) * var(--len) * -1 + 0.24s);
}
.gu-reel__title span:nth-child(4) {
animation-delay: calc(var(--t) * var(--len) * -1 + 0.36s);
color: var(--accent);
}
@keyframes gu-reel-letter {
0%,
74% {
transform: translateY(80%) scaleY(0.2);
opacity: 0;
}
82% {
transform: translateY(-8%) scaleY(1.1);
opacity: 1;
}
86%,
96% {
transform: none;
opacity: 1;
}
100% {
transform: none;
opacity: 0;
}
}
/* Timeline controls */
.gu-reel__controls {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: end;
gap: 16px;
padding: 14px 18px 18px;
border-top: 1px solid rgb(243 238 227 / 0.12);
}
.gu-reel__play {
display: grid;
place-items: center;
width: 48px;
height: 48px;
border: 0;
border-radius: 50%;
background: var(--accent);
cursor: pointer;
transition: transform 0.2s var(--ease);
}
.gu-reel__play:active {
transform: scale(0.92);
}
.gu-reel__play .is-play {
width: 0;
height: 0;
margin-left: 4px;
border-style: solid;
border-width: 8px 0 8px 13px;
border-color: transparent transparent transparent var(--text);
}
.gu-reel__play .is-pause {
width: 14px;
height: 16px;
border-inline: 5px solid var(--text);
}
.gu-reel__track {
display: grid;
gap: 6px;
}
.gu-reel__markers {
position: relative;
height: 18px;
font-size: 0.72rem;
font-weight: 600;
color: #aea89c;
}
.gu-reel__markers span {
position: absolute;
top: 0;
padding-left: 6px;
border-left: 1px solid rgb(243 238 227 / 0.3);
white-space: nowrap;
}
@container (max-width: 480px) {
.gu-reel__markers span:nth-child(even) {
display: none;
}
}
.gu-reel__track input {
width: 100%;
height: 28px;
margin: 0;
background: transparent;
cursor: pointer;
appearance: none;
}
.gu-reel__track input::-webkit-slider-runnable-track {
height: 6px;
border-radius: 999px;
background:
linear-gradient(var(--accent), var(--accent)) left / var(--p) 100% no-repeat,
rgb(243 238 227 / 0.18);
}
.gu-reel__track input::-moz-range-track {
height: 6px;
border-radius: 999px;
background:
linear-gradient(var(--accent), var(--accent)) left / var(--p) 100% no-repeat,
rgb(243 238 227 / 0.18);
}
.gu-reel__track input::-webkit-slider-thumb {
width: 4px;
height: 26px;
margin-top: -10px;
border: 0;
border-radius: 2px;
background: var(--bg);
appearance: none;
}
.gu-reel__track input::-moz-range-thumb {
width: 4px;
height: 26px;
border: 0;
border-radius: 2px;
background: var(--bg);
}
.gu-reel__track input:focus-visible {
outline: 2px solid var(--volt);
}
.gu-reel__time {
min-width: 8ch;
padding-bottom: 4px;
font-family: ui-monospace, "SF Mono", Menlo, monospace;
font-size: 0.85rem;
font-variant-numeric: tabular-nums;
color: #aea89c;
}
/* Projects */
.gu-motion__projects {
padding: 72px 5% 48px;
}
.gu-motion__projects h2,
.gu-motion__principles h2 {
margin-bottom: 20px;
font-size: 1rem;
color: var(--muted);
}
.gu-motion__projects ul {
margin: 0;
padding: 0;
list-style: none;
}
.gu-motion__projects li {
border-top: 1px solid var(--line);
}
.gu-motion__projects li:last-child {
border-bottom: 1px solid var(--line);
}
.gu-motion__projects a {
display: grid;
grid-template-columns: 64px 1fr;
align-items: center;
gap: 6px 18px;
padding: 16px 0;
}
@container (min-width: 760px) {
.gu-motion__projects a {
grid-template-columns: 72px 1fr auto 4em;
}
}
.gu-motion__ptitle {
font-size: clamp(1.2rem, 2.8cqi, 1.9rem);
font-weight: 800;
letter-spacing: -0.03em;
transition: color 0.2s;
}
.gu-motion__projects a:hover .gu-motion__ptitle {
color: var(--accent);
}
.gu-motion__pkind,
.gu-motion__pyear {
color: var(--muted);
}
.gu-motion__pkind {
grid-column: 2;
}
@container (min-width: 760px) {
.gu-motion__pkind {
grid-column: auto;
}
}
.gu-motion__pyear {
display: none;
text-align: right;
font-variant-numeric: tabular-nums;
}
@container (min-width: 760px) {
.gu-motion__pyear {
display: block;
}
}
/* Little looping thumbnails, one idea each */
.gu-motion__loop {
position: relative;
grid-row: span 2;
aspect-ratio: 1;
overflow: hidden;
border-radius: 14px;
background: var(--text);
}
@container (min-width: 760px) {
.gu-motion__loop {
grid-row: auto;
}
}
.gu-motion__loop i {
position: absolute;
border-radius: 50%;
background: var(--accent);
}
.gu-motion__loop.is-path i {
top: 44%;
width: 12%;
aspect-ratio: 1;
animation: gu-loop-path 2.4s var(--ease) infinite;
}
.gu-motion__loop.is-path i:nth-child(2) {
animation-delay: 0.2s;
background: var(--bg);
}
.gu-motion__loop.is-path i:nth-child(3) {
animation-delay: 0.4s;
background: var(--volt);
}
@keyframes gu-loop-path {
0% {
left: -15%;
}
60%,
100% {
left: 105%;
}
}
.gu-motion__loop.is-drop i {
left: 38%;
width: 24%;
aspect-ratio: 1;
animation: gu-loop-drop 1.8s cubic-bezier(0.5, 0, 0.5, 1) infinite alternate;
}
.gu-motion__loop.is-drop i:nth-child(n + 2) {
display: none;
}
@keyframes gu-loop-drop {
from {
top: -24%;
border-radius: 50% 50% 50% 0;
transform: rotate(-45deg);
}
to {
top: 60%;
border-radius: 50%;
transform: scaleX(1.4) scaleY(0.6);
}
}
.gu-motion__loop.is-bars {
display: flex;
align-items: end;
justify-content: center;
gap: 10%;
padding: 18%;
}
.gu-motion__loop.is-bars i {
position: static;
width: 18%;
height: 100%;
border-radius: 3px;
background: var(--bg);
transform-origin: bottom;
animation: gu-loop-bars 1.2s var(--ease) infinite alternate;
}
.gu-motion__loop.is-bars i:nth-child(2) {
animation-delay: 0.2s;
background: var(--accent);
}
.gu-motion__loop.is-bars i:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes gu-loop-bars {
from {
transform: scaleY(0.2);
}
}
.gu-motion__loop.is-pop i {
inset: 30%;
animation: gu-loop-pop 1.6s var(--ease) infinite;
}
.gu-motion__loop.is-pop i:nth-child(2) {
inset: 30%;
background: none;
border: 2px solid var(--volt);
animation-name: gu-loop-ring;
}
.gu-motion__loop.is-pop i:nth-child(3) {
display: none;
}
@keyframes gu-loop-pop {
0%,
100% {
transform: scale(0.6);
}
30% {
transform: scale(1.1);
}
50% {
transform: scale(1);
}
}
@keyframes gu-loop-ring {
0%,
25% {
transform: scale(0.8);
opacity: 1;
}
100% {
transform: scale(2.2);
opacity: 0;
}
}
/* Principles */
.gu-motion__principles {
padding: 24px 5% 64px;
}
.gu-motion__principles dl {
display: grid;
gap: 24px;
}
@container (min-width: 760px) {
.gu-motion__principles dl {
grid-template-columns: repeat(3, 1fr);
}
}
.gu-motion__principles div {
padding: 22px;
border-radius: 20px;
background: var(--surface);
}
.gu-motion__principles dt {
font-size: 1.25rem;
font-weight: 800;
letter-spacing: -0.02em;
}
.gu-motion__principles dd {
margin-top: 8px;
line-height: 1.5;
color: var(--muted);
}
.gu-motion__contact {
padding: 72px 5% 88px;
background: var(--accent);
}
.gu-motion__contact p {
font-weight: 700;
}
.gu-motion__contact a {
display: inline-block;
margin-top: 8px;
font-size: clamp(2rem, 8.6cqi, 7rem);
font-weight: 900;
letter-spacing: -0.055em;
word-break: break-all;
}
.gu-motion__contact a:hover {
text-decoration: underline;
text-decoration-thickness: 0.06em;
text-underline-offset: 0.1em;
}
@media (prefers-reduced-motion: reduce) {
.gu-motion__loop i {
animation: none;
}
.gu-motion__ptitle,
.gu-reel__play {
transition: none;
}
}
```
You might also want
Next piece: Multi-step formCeramicist portfolio with a pottery wheel
Portfolios, advanced
Developer portfolio
Portfolios, intermediate
Filmmaker portfolio with a screening room
Portfolios, advanced