176 web animation techniques, each a live demo with plain settings and a ready-made prompt for your AI assistant. No dependencies, no build step.
HTML ai-promptsanimationcss-animationsfrontendgithub-pagesjavascriptmicrointeractionsmotion-designno-dependenciesreferencescroll-animationui-animationweb-animationweb-developmentwebgl
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Famous effects — Animation Handbook</title>
<meta name="description" content="Effects people admire on well-known websites, the handbook animations that make something similar, and a prompt to build your own.">
<meta name="robots" content="index, follow, max-image-preview:large">
<meta name="theme-color" content="#f8f7f4">
<link rel="canonical" href="https://matinmonshizadeh.github.io/animation-handbook/famous/">
<link rel="icon" type="image/png" sizes="96x96" href="../favicon.png">
<link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="apple-touch-icon" href="../apple-touch-icon.png">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Animation Handbook">
<meta property="og:title" content="Famous effects — Animation Handbook">
<meta property="og:description" content="Effects people admire on well-known websites, the handbook animations that make something similar, and a prompt to build your own.">
<meta property="og:url" content="https://matinmonshizadeh.github.io/animation-handbook/famous/">
<meta property="og:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Famous effects — Animation Handbook">
<meta name="twitter:description" content="Effects people admire on well-known websites, the handbook animations that make something similar, and a prompt to build your own.">
<meta name="twitter:image" content="https://matinmonshizadeh.github.io/animation-handbook/og-image.png">
<script>
// The theme is the visitor's own pick (ah-theme), else the system's, as on the home page.
function setTheme(t){document.documentElement.dataset.theme=t;document.querySelector('meta[name="theme-color"]').content=t==='dark'?'#0e0e11':'#f8f7f4';}
(function(){var t=matchMedia('(prefers-color-scheme: light)').matches?'light':'dark';try{t=localStorage.getItem('ah-theme')||t;}catch(e){}setTheme(t);})();
// With scripts and a browser that has the dialog, the entries open in a pop-up (the js class hides their list); otherwise they stay on the page.
if(window.HTMLDialogElement&&HTMLDialogElement.prototype.showModal)document.documentElement.classList.add('js');</script>
<style>
@font-face{font-family:'Schibsted Grotesk';src:url('../assets/fonts/schibsted-latin-ext.woff2') format('woff2');font-weight:400 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Schibsted Grotesk';src:url('../assets/fonts/schibsted-latin.woff2') format('woff2');font-weight:400 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* the home page's colors and type, copied as they are (tests/famous.test.js compares them) */
:root{
--bg:#f8f7f4;--surface:#ffffff;--ink:#16161b;--ink-2:#45454f;--muted:#676771;
--line:#e5e3dc;--line-2:#efede8;--brand:#2f5bea;--ok:#157a43;
--shadow:0 1px 2px rgba(22,22,27,.04),0 8px 24px rgba(22,22,27,.06);
--shadow-2:0 2px 4px rgba(22,22,27,.05),0 18px 40px rgba(22,22,27,.11);
--c1:#6ea8ff;--c2:#5fd88a;--c3:#b98cff;--c4:#ff9d5c;--c5:#ff6f8b;--c6:#3fd6c4;--c7:#ffce5a;
--disp:'Schibsted Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;--text:var(--disp);
--ease:cubic-bezier(.22,1,.36,1);--gut:clamp(16px,4vw,40px);
color-scheme:light;
}
:root[data-theme="dark"]{
--bg:#0e0e11;--surface:#17171c;--ink:#f4f4f2;--ink-2:#c6c6cc;--muted:#9c9ca5;
--line:rgba(255,255,255,.13);--line-2:rgba(255,255,255,.07);--brand:#86a8ff;
--shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25);
--shadow-2:0 2px 4px rgba(0,0,0,.35),0 18px 40px rgba(0,0,0,.45);
color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html,body{background:var(--bg);color:var(--ink)}
body{font-family:var(--text);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:16px;top:-80px;z-index:100;padding:10px 16px;border-radius:10px;background:var(--ink);color:var(--bg);font-weight:700;text-decoration:none}
.skip:focus{top:12px}
.i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wrap{width:min(1280px,calc(100% - 2 * var(--gut)));margin-inline:auto}
/* the top bar and the footer: the home page's */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px}
.brand{display:inline-flex;align-items:center;gap:12px;min-height:44px;text-decoration:none;font-size:17px;font-weight:800;letter-spacing:-.015em;white-space:nowrap}
.mark{width:30px;height:30px;flex:none}
.mark .ring{fill:var(--bg);stroke:currentColor;stroke-width:1.8}
.mark .ball{fill:currentColor}
.nav{display:flex;align-items:center;gap:6px}
.lnk{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:999px;text-decoration:none;font-size:15px;font-weight:600;color:var(--ink-2);white-space:nowrap}
.lnk[aria-current="page"]{color:var(--ink);background:var(--line-2)}
.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:999px;border:0;background:none;color:var(--ink-2);cursor:pointer}
.theme-btn .sun,:root[data-theme="dark"] .theme-btn .moon{display:none}
:root[data-theme="dark"] .theme-btn .sun{display:block}
.gh{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);text-decoration:none;font-size:15px;font-weight:600;white-space:nowrap}
.gh-c{color:var(--muted);font-variant-numeric:tabular-nums}
.foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;padding:36px 0 44px}
.foot-t{font-size:15px;color:var(--muted)}
/* one centered column: the head, the gallery and, without scripts, the entries */
.fx-page{width:min(1120px,calc(100% - 2 * var(--gut)));margin-inline:auto;padding-bottom:clamp(20px,4vw,48px)}
.fx-head{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:clamp(16px,4vw,48px)}
.pill{display:inline-flex;align-items:center;padding:8px 16px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:14px;font-weight:600;color:var(--ink-2)}
.h1{margin-top:22px;font-size:clamp(34px,5.2vw,64px);font-weight:800;line-height:1.04;letter-spacing:-.035em}
.fx-lede{margin-top:18px;max-width:640px;font-size:clamp(16px,1.4vw,19px);line-height:1.55;color:var(--ink-2)}
.fx-legal{margin-top:14px;max-width:640px;font-size:14px;line-height:1.55;color:var(--muted)}
/* an entry: seen on, the title, what you see, the cards, the prompt and Copy prompt */
.fx{margin-top:clamp(36px,5vw,56px);padding-top:clamp(36px,5vw,56px);border-top:1px solid var(--line);scroll-margin-top:16px}
.fx-seen{font-size:15px;color:var(--muted)} /* a line breaks before the link or before "in", never before the year: a no-break space joins them */
.fx-seen a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:5px}
.fx h2{font-size:clamp(26px,3.2vw,36px);font-weight:800;line-height:1.1;letter-spacing:-.025em}
.fx-what{margin-top:14px;max-width:68ch;font-size:17px;line-height:1.65;color:var(--ink-2)}
.fx-what a{color:var(--ink);text-underline-offset:4px}
.fx-sub{margin:32px 0 14px;font-size:18px;font-weight:700;letter-spacing:-.01em}
.fx-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.fx-pbox{max-width:760px;padding:20px 22px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow)}
.fx-prompt{font-size:17px;line-height:1.65;color:var(--ink)}
.fx-prompt mark{padding:1px 5px;border-radius:4px;background:color-mix(in srgb,var(--brand) 16%,transparent);color:var(--ink)}
.fx-toggle{display:none;align-items:center;min-height:44px;margin-top:4px;padding:0;border:0;background:none;color:var(--brand);font-size:15px;font-weight:700;cursor:pointer}
.copy{display:inline-flex;align-items:center;gap:10px;min-height:48px;margin-top:16px;padding:0 24px;border-radius:999px;border:0;background:var(--ink);color:var(--bg);font-size:16px;font-weight:700;cursor:pointer;transition:background .2s,color .2s}
.copy.done{background:var(--ok);color:#fff}
/* the cards: the home page's, with what each animation makes here on its preview and no Copy prompt */
.card{position:relative;display:flex;flex-direction:column;padding:10px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow);transition:transform .35s var(--ease)}
.card:has(.title a:focus-visible){outline:3px solid var(--brand);outline-offset:3px}
.stage{position:relative;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:#08080a}
.tag{position:absolute;z-index:1;left:10px;top:10px;max-width:calc(100% - 20px);padding:5px 11px;border-radius:999px;background:rgba(255,255,255,.94);color:#16161b;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meta{display:flex;flex-direction:column;flex:1;padding:14px 8px 6px}
.title{font-size:18px;font-weight:700;letter-spacing:-.01em;line-height:1.25}
.title a{text-decoration:none;outline:none}
.title a::after{content:"";position:absolute;inset:0;z-index:2;border-radius:20px}
.desc{flex:1;margin-top:6px;font-size:15px;line-height:1.5;color:var(--ink-2)}
/* Seen one we should add?: the last tile of the gallery (see below) */
.fx-suggest{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:18px;padding:0 24px;border-radius:999px;border:1.5px solid var(--ink);font-size:16px;font-weight:700;text-decoration:none;transition:background .2s,color .2s}
/* the message after a copy: the home page's */
.toast{position:fixed;z-index:60;left:50%;bottom:24px;display:flex;align-items:center;gap:10px;min-height:52px;width:max-content;max-width:calc(100% - 32px);padding:0 18px;border-radius:16px;background:var(--ink);color:var(--bg);font-size:15px;font-weight:600;box-shadow:0 12px 32px rgba(22,22,27,.28);opacity:0;transform:translate(-50%,16px);pointer-events:none;transition:opacity .25s,transform .25s var(--ease)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast .ok{display:inline-grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:#1f9d57;color:#fff}
.toast .ok .i{width:16px;height:16px}
@media(hover:hover){
.lnk:hover,.icon-btn:hover{color:var(--ink);background:var(--line-2)}
.gh:hover{border-color:var(--ink);color:var(--ink)}
.fx-seen a:hover{text-decoration-color:currentColor}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-2)}
.card:hover .pv{transform:scale(1.04)}
.copy:hover{background:var(--brand);color:var(--bg)}
.copy.done:hover{background:var(--ok);color:#fff}
.fx-suggest:hover{background:var(--ink);color:var(--bg)}
.tile:not(.tile-more):hover{transform:translateY(-4px);box-shadow:var(--shadow-2)}
.t-site:hover,.fx-real:hover{text-decoration-color:currentColor}
.fx-pbtn:hover{background:var(--brand);border-color:var(--brand);color:var(--bg)}
.fx-dbtn:hover{border-color:var(--ink)}
}
/* two cards across below 761px; from 760px down the GitHub button is a round star, as on the home page */
@media(max-width:760px){
.fx-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gh{position:relative;width:44px;padding:0;justify-content:center;gap:0}
.gh-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gh-c{display:none}
}
/* phones */
@media(max-width:600px){
.top{min-height:60px}
.top .nav .lnk{display:none}
.brand{gap:10px;font-size:15px}
.mark{width:28px;height:28px}
.pill{padding:7px 13px;font-size:13px}
.fx-what{font-size:16px;line-height:1.6}
.fx-what a{padding-block:14px} /* a link inside a sentence: its touch area grows to 44px without moving the lines */
.fx-pbox{padding:16px 18px}
.fx-prompt{font-size:16px;line-height:1.6}
.fx-prompt.is-clamped{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.fx-toggle{display:inline-flex}
.copy{width:100%;justify-content:center}
.card{padding:6px;border-radius:16px}
.title a::after{border-radius:16px}
.stage{border-radius:10px}
.tag{left:6px;top:6px;max-width:calc(100% - 12px);padding:3px 8px;font-size:11px;white-space:normal} /* two cards across: a long label takes a second line instead of being cut */
.meta{padding:10px 6px 4px}
.title{font-size:15px}
.desc{flex:none;margin-top:4px;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fx-suggest{width:100%}
.foot{flex-direction:column;align-items:flex-start}
}
@media(min-width:601px) and (max-width:640px){.top .nav .lnk{padding:0 6px}} /* the two text links come back at 601px: up to 640px they are narrower, so the bar fits beside the logo */
@media(max-width:360px){.tag{left:5px;top:5px;max-width:calc(100% - 10px);padding:3px 6px;font-size:10px}}
@media(max-width:359px){.gh{display:none}}
/* reduced motion: the cards do not lift and the message fades in place (the previews hold still: see the block below) */
@media(prefers-reduced-motion:reduce){
.card,.card:hover,.card:hover .pv,.tile,.tile:hover{transform:none;transition:none}
.toast{transform:translate(-50%,0);transition:opacity .25s}
}
/* the gallery: one tile per effect, in page order, then the suggestion tile */
.fx-gallery{margin-top:clamp(28px,4vw,48px)}
.fx-grid{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,24px)}
.tile{position:relative;display:flex;flex-direction:column;padding:10px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.t-stage{position:relative;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:#08080a;container-type:size}
.t-tags{position:absolute;z-index:3;left:10px;right:10px;top:10px;display:flex;justify-content:space-between;align-items:flex-start;gap:6px;pointer-events:none}
.t-tag{padding:5px 11px;border-radius:999px;background:rgba(255,255,255,.94);color:#16161b;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
.t-start{background:rgba(8,8,10,.78);color:#f4f4f2;box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)}
.t-meta{display:flex;flex-direction:column;flex:1;padding:14px 8px 2px}
.t-title{font-size:18px;font-weight:700;letter-spacing:-.01em;line-height:1.25}
.t-title a{text-decoration:none;outline:none}
.t-title a::after{content:"";position:absolute;inset:0;border-radius:20px}
.t-title a:focus-visible::after{outline:3px solid var(--brand);outline-offset:3px}
.t-desc{flex:1;margin-top:6px;font-size:15px;line-height:1.5;color:var(--ink-2)}
.t-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 14px;margin-top:4px;font-size:14px;color:var(--muted)}
.t-site{position:relative;z-index:1;display:inline-flex;align-items:center;gap:.3em;min-height:44px;color:var(--ink-2);font-weight:600;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:5px}
.t-count{font-variant-numeric:tabular-nums}
/* Seen one we should add? */
.tile-more{align-items:center;justify-content:center;text-align:center;padding:28px 22px;background:transparent;box-shadow:none;border:1.5px dashed var(--line)}
.tile-more h3{font-size:clamp(20px,2vw,24px);font-weight:800;line-height:1.15;letter-spacing:-.02em}
.tile-more p{margin-top:10px;max-width:34ch;font-size:15px;line-height:1.55;color:var(--ink-2)}
.tile-more .fx-note{margin-top:16px;font-size:14px;color:var(--muted)}
/* the tiles' pictures: our own light loops in the site's colors, moved with transform and opacity only. Each picture is drawn at
rest (the still frame that reduced motion keeps); where motion is allowed the loops below move it. A tile outside the window, and
every tile behind the pop-up, holds still. */
.gp{position:absolute;inset:0;overflow:hidden}
.gp i{position:absolute;display:block}
.js .tile:not(.playing) .gp *,.js .tile:not(.playing) .gp *::before,.js .tile:not(.playing) .gp *::after,
.fx-open .tile .gp *,.fx-open .tile .gp *::before,.fx-open .tile .gp *::after{animation-play-state:paused!important}
/* the twisting ribbon: a bow tie of fine strands that change places at the pinch, over soft bands of light. Its two halves open and close in turn. */
.gp-ribbon{background:radial-gradient(90% 100% at 50% 45%,#10163a,#08080a 72%);isolation:isolate}
.gp-ribbon .rb{left:-18cqw;width:136cqw;height:15cqh;border-radius:50%;mix-blend-mode:screen;filter:blur(8px);opacity:.36}
.gp-ribbon .rb1{top:50cqh;background:linear-gradient(90deg,var(--c6),var(--c1));transform:rotate(-16deg) scaleY(.9)}
.gp-ribbon .rb2{top:40cqh;background:linear-gradient(90deg,var(--c1),var(--c3));transform:rotate(-10deg) scaleY(1.1)}
.gp-ribbon .rb3{top:30cqh;background:linear-gradient(90deg,var(--c3),var(--c5));transform:rotate(-6deg) scaleY(.7)}
.gp-ribbon .rw{position:absolute;inset:0;transform:rotate(-12deg) scale(1.2)}
.gp-ribbon svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.gp-ribbon .la{transform:scaleY(.95)}
.gp-ribbon .ra{transform:scaleY(.62)}
.gp-ribbon path{fill:none;stroke-width:.5;stroke-linecap:round}
.gp-ribbon .a{stroke:var(--c6)}
.gp-ribbon .b{stroke:var(--c1)}
.gp-ribbon .c{stroke:var(--c3)}
.gp-ribbon .d{stroke:var(--c5)}
.gp-ribbon path:nth-child(3n){stroke-opacity:.5}
.gp-ribbon path:nth-child(4n+1){stroke-width:.8}
.gp-ribbon .rp{left:50%;top:50%;width:22cqw;height:12cqh;margin:-6cqh 0 0 -11cqw;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.85),rgba(185,230,255,.35) 45%,transparent);mix-blend-mode:screen}
/* the headset: the visor drawn as four plates (glass, frame ring, lenses, coral band ring). At rest they are taken apart and seen at
a tilt, glass on top; the loop brings the stack up from below, carries the glass and the frame off the top while the lenses and the
band turn to face you, then fades and starts again. */
.gp-visor{background:radial-gradient(70% 90% at 50% 55%,#111631,#08080a 72%);perspective:90cqw}
.vz{--u:4.2cqw;position:absolute;left:calc(50cqw - var(--u) * 5);top:calc(35cqw - var(--u) * 2.275);width:calc(var(--u) * 10);height:calc(var(--u) * 4.55);transform-style:preserve-3d;transform:rotateX(64deg) rotateY(-16deg)}
.vz>i{transform:translateZ(calc(var(--u) * var(--z1)))}
.v-glass{inset:0;border-radius:34% / 50%;overflow:hidden;--z0:.12;--z1:4.5;--z2:22;background:linear-gradient(180deg,rgba(255,255,255,.22),transparent 48%),linear-gradient(135deg,rgba(110,168,255,.66),rgba(63,214,196,.5));box-shadow:inset 0 0 0 calc(var(--u) * .07) rgba(255,255,255,.6),inset 0 calc(var(--u) * -.6) calc(var(--u) * 1.2) rgba(63,214,196,.3)}
.v-glass::before,.v-glass::after{content:"";position:absolute;top:-12%;bottom:-12%;transform:skewX(-24deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent)}
.v-glass::before{left:15%;width:13%}
.v-glass::after{left:33%;width:3.5%}
.v-frame,.v-band{border:solid transparent;-webkit-mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);mask-composite:exclude}
.v-frame{inset:calc(var(--u) * -.28);border-width:calc(var(--u) * .5);border-radius:34% / 50%;--z0:.08;--z1:1.5;--z2:17;background:linear-gradient(135deg,#e2d2ff,var(--c3) 45%,#7d57dd) border-box}
.v-band{inset:calc(var(--u) * -.28) calc(var(--u) * -1.15);border-width:calc(var(--u) * .4);border-radius:99em;--z0:0;--z1:-4.5;background:linear-gradient(90deg,var(--c5),var(--c4) 50%,var(--c5)) border-box}
.v-lens{inset:0;transform-style:preserve-3d;--z0:.04;--z1:-1.5}
.v-lens span{position:absolute;inset:0;backface-visibility:hidden}
.v-lens .fb{transform:rotateY(180deg)}
.v-lens span i{top:50%;width:calc(var(--u) * 2.4);aspect-ratio:1;margin:calc(var(--u) * -1.2) 0 0 calc(var(--u) * -1.2);border-radius:50%}
.v-lens span i:first-child{left:28%}
.v-lens span i:last-child{left:72%}
.v-lens .fa i{background:radial-gradient(circle at 36% 30%,#4b5c93,#10142a 62%);box-shadow:inset 0 0 0 calc(var(--u) * .08) rgba(63,214,196,.6)}
.v-lens .fb i{background:radial-gradient(circle closest-side,#fff 0 20%,#0e1226 20% 38%,var(--c3) 38% 50%,#0e1226 50% 63%,var(--c1) 63% 75%,#0e1226 75% 88%,var(--c6) 88%)}
/* the liquid reveal: the night picture, and a crisp-edged blob with a short tail that shows the same scene by day; the day picture is moved the other way, so it stays put */
.gp-reveal{background:#0a0a1c}
.rv-a,.rv-b{position:absolute;left:0;top:0;width:100cqw;height:100cqh;overflow:hidden;background:var(--sky)}
.rv-a{--sky:linear-gradient(180deg,#0b0a22,#1c1952 42%,#432f82 72%);--o1:#f8f3ff;--o2:#c9b9ff;--far:#2b2870;--near:#14123a;--tree:#0b0922}
.rv-b{--sky:linear-gradient(180deg,var(--c5),var(--c4) 42%,#ffd873 72%);--o1:#fffbe3;--o2:var(--c7);--far:#2cb5a3;--near:#14867d;--tree:#0b524f;transform:translate(-31cqw,-17.2cqh)}
.rv-o{left:56cqw;top:9cqh;width:17cqw;height:17cqw;border-radius:50%;background:radial-gradient(circle at 40% 35%,var(--o1),var(--o2))}
.rv-f{left:-24cqw;top:47cqh;width:86cqw;height:60cqh;border-radius:50%;background:var(--far)}
.rv-g{left:30cqw;top:52cqh;width:90cqw;height:60cqh;border-radius:50%;background:var(--far)}
.rv-t{width:6cqw;height:12cqw;background:var(--tree);clip-path:polygon(50% 0,88% 46%,68% 46%,100% 100%,0 100%,32% 46%,12% 46%)}
.rv-t.t1{left:78cqw;top:58cqh}
.rv-t.t2{left:87cqw;top:53cqh;height:15cqw}
.rv-t.t3{left:9cqw;top:60cqh}
.rv-n{left:-10cqw;top:76cqh;width:120cqw;height:60cqh;border-radius:50%;background:var(--near)}
.rv-blob{position:absolute;left:0;top:0;width:44cqw;height:26cqw;transform:translate(31cqw,17.2cqh);clip-path:polygon(56.7% 7.5%,59.3% 5.4%,62.1% 3.7%,64.9% 2.4%,67.8% 1.7%,70.8% 1.5%,73.7% 1.9%,76.6% 2.7%,79.4% 4.0%,82.2% 5.8%,84.8% 8.0%,87.2% 10.7%,89.5% 13.9%,91.6% 17.3%,93.5% 21.2%,95.1% 25.3%,96.5% 29.7%,97.6% 34.3%,98.4% 39.1%,98.9% 44.0%,99.1% 49.0%,99.0% 53.9%,98.6% 58.9%,97.9% 63.7%,97.0% 68.4%,95.7% 72.9%,94.2% 77.1%,92.4% 81.1%,90.4% 84.7%,88.2% 88.0%,85.8% 90.9%,83.3% 93.3%,80.6% 95.3%,77.8% 96.8%,74.9% 97.9%,72.0% 98.4%,69.1% 98.4%,66.1% 97.9%,63.3% 96.9%,60.5% 95.4%,54.9% 90.4%,49.3% 85.5%,43.6% 80.8%,37.9% 76.5%,32.1% 72.6%,26.2% 69.1%,20.2% 66.0%,14.1% 63.3%,8.0% 60.8%,1.8% 58.5%,7.7% 54.6%,13.6% 50.7%,19.3% 46.5%,25.0% 41.9%,30.6% 37.0%,36.0% 31.7%,41.3% 26.1%,46.5% 20.1%,51.6% 13.9%)}
/* the headline that comes into focus: two bars for the headline and a thin one under them, two buttons and the top of an app window. Each bar is a sharp bar over a soft copy of itself;
the copy fades out as the bar fades in, which reads as coming into focus. At rest the later parts are fainter, as if caught half way in. */
.gp-intro{background:radial-gradient(80% 70% at 50% 0,#171c34,#08080a 72%)}
.gp-intro .t{left:var(--l);top:var(--y);width:var(--w);height:var(--h,7.4cqh);border-radius:1.5cqh}
.gp-intro .t::before,.gp-intro .t::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--bar,#e9ebf3)}
.gp-intro .t::before{filter:blur(1.1cqw);opacity:.55}
.gp-intro .n1{--l:27cqw;--w:46cqw;--y:19cqh}
.gp-intro .n2{--l:33cqw;--w:34cqw;--y:30cqh}
.gp-intro .n3{--l:35cqw;--w:30cqw;--y:43cqh;--h:3.4cqh;--bar:#9298b0;opacity:.85}
.gp-intro .n4,.gp-intro .n5{top:50.5cqh;width:15cqw;height:8.4cqh;border-radius:999px;opacity:.7}
.gp-intro .n4{left:34cqw;background:var(--c1)}
.gp-intro .n5{left:51cqw;box-shadow:inset 0 0 0 .45cqw rgba(255,255,255,.45)}
.gp-intro .n6{left:17cqw;top:66cqh;width:66cqw;height:44cqh;border-radius:2cqw 2cqw 0 0;background:linear-gradient(#1c1c29,#12121b);box-shadow:inset 0 0 0 .3cqw rgba(255,255,255,.14);opacity:.6}
.gp-intro .n6 b{position:absolute;left:var(--l);top:var(--y);width:var(--w);height:var(--h,1.8cqh);border-radius:1cqh;background:var(--bar,rgba(255,255,255,.2))}
.gp-intro .n7{left:10cqw;top:54cqh;width:80cqw;height:64cqh;border-radius:50%;background:radial-gradient(closest-side,rgba(110,168,255,.36),rgba(185,140,255,.16) 62%,transparent);opacity:.6}
/* the menu that opens: its button turns into an X while the links drop in */
.gp-menu{background:radial-gradient(80% 100% at 50% 20%,#12162a,#08080a 70%)}
.mn-pg i{top:56cqh;width:28cqw;height:52cqh;border-radius:2cqw;opacity:.85;background:linear-gradient(150deg,var(--a),var(--b))}
.mn-pg i:nth-child(1){left:6cqw;--a:var(--c1);--b:var(--c3)}
.mn-pg i:nth-child(2){left:36cqw;--a:var(--c4);--b:var(--c5)}
.mn-pg i:nth-child(3){left:66cqw;--a:var(--c6);--b:var(--c2)}
.mn-bar{position:absolute;left:0;right:0;top:21cqh;height:15cqh;border-bottom:1px solid rgba(255,255,255,.08)}
.mn-dot{left:5cqw;top:50%;width:4.6cqw;height:4.6cqw;margin-top:-2.3cqw;border-radius:50%;background:linear-gradient(135deg,var(--c1),var(--c3))}
.mn-dot::after{content:"";position:absolute;left:calc(100% + 1.6cqw);top:50%;width:13cqw;height:1.6cqw;margin-top:-.8cqw;border-radius:1cqw;background:#e9ebf3}
.mn-btn{position:absolute;right:5cqw;top:50%;width:6cqw;height:4.4cqw;margin-top:-2.2cqw}
.mn-btn i{left:0;right:0;height:.8cqw;min-height:2px;border-radius:2px;background:#e9ebf3}
.mn-btn i:nth-child(1){top:0;transform:translateY(1.8cqw) rotate(45deg)}
.mn-btn i:nth-child(2){top:50%;margin-top:-.4cqw;opacity:0}
.mn-btn i:nth-child(3){bottom:0;transform:translateY(-1.8cqw) rotate(-45deg)}
.mn-panel{position:absolute;left:0;right:0;top:36cqh;bottom:0;background:rgba(12,13,19,.88)}
.mn-panel i{left:6cqw;height:4.2cqh;border-radius:.9cqh;background:#e9ebf3}
.mn-panel i:nth-child(1){top:4.5cqh;width:30cqw}
.mn-panel i:nth-child(2){top:16cqh;width:22cqw}
.mn-panel i:nth-child(3){top:27.5cqh;width:27cqw}
.mn-panel i:nth-child(4){top:39cqh;width:20cqw;--d:.42s}
.mn-panel i:nth-child(5){top:50.5cqh;width:24cqw;--d:.56s}
/* link previews: a pointer rests on a link and a small card rises above it */
.gp-wiki{background:radial-gradient(80% 110% at 25% 0,#141830,#08080a 72%)}
.gp-wiki .tx{left:10cqw;height:3.6cqh;border-radius:1cqh;background:#2a3042}
.gp-wiki .tx1{top:17cqh;width:78cqw}
.gp-wiki .tx2{top:28cqh;width:68cqw}
.gp-wiki .tx3{top:39cqh;width:26cqw}
.gp-wiki .tx4{top:39cqh;left:39cqw;width:20cqw;background:var(--c1)}
.gp-wiki .tx5{top:39cqh;left:61cqw;width:27cqw}
.gp-wiki .tx6{top:50cqh;width:56cqw}
.gp-wiki .tx7{top:61cqh;width:70cqw}
.wk-card{position:absolute;left:46cqw;top:46cqh;width:46cqw;height:28cqh;border-radius:2.2cqw;background:#181a23;border:1px solid rgba(255,255,255,.17);box-shadow:0 1.5cqw 4cqw rgba(0,0,0,.5)}
.wk-card::before{content:"";position:absolute;left:2cqw;top:-1.1cqw;width:2cqw;height:2cqw;background:#181a23;border:solid rgba(255,255,255,.17);border-width:1px 0 0 1px;transform:rotate(45deg)}
.wk-card i{border-radius:1cqw}
.wk-card .im{left:2.4cqw;top:2.4cqw;width:12cqw;height:12cqw;background:linear-gradient(140deg,var(--c1),var(--c3))}
.wk-card .im::after{content:"";position:absolute;inset:22% 18% 20% 18%;background:#fff;clip-path:polygon(0 66%,100% 0,66% 100%,48% 68%)}
.wk-card .l1{left:16.6cqw;top:3.2cqw;width:14cqw;height:2cqw;background:#fff}
.wk-card .l2{left:16.6cqw;top:7.2cqw;width:25cqw;height:1.5cqw;background:#9aa0b8}
.wk-card .l3{left:16.6cqw;top:10.4cqw;width:20cqw;height:1.5cqw;background:#9aa0b8}
.wk-ptr{left:47cqw;top:37.3cqh;width:4.4cqw;height:4.4cqw;border-radius:50%;border:2px solid #fff;background:rgba(255,255,255,.22);box-shadow:0 0 0 1px rgba(8,8,10,.7),0 .8cqw 2cqw rgba(0,0,0,.45)}
/* the color that sweeps across a headline: two headline bars, hidden until a band of color (violet, coral, amber, then plain white) brings them in
from the left. One wide gradient, as wide as the top bar times 5.12, slides across both bars; at rest it is part way, the front near the end of the top bar. */
.gp-sweep{background:#0b0b0f}
.gp-sweep .sw{left:12cqw;height:17cqh;border-radius:2.8cqh;overflow:hidden}
.gp-sweep .w1{top:30cqh;width:76cqw}
.gp-sweep .w2{top:54cqh;left:24cqw;width:52cqw}
.gp-sweep .sw i{left:0;top:0;bottom:0;width:389cqw;border-radius:0;transform:translateX(-50.8%);background:linear-gradient(90deg,#f4f4f2 19.53%,#ffe9b8 35.16%,#ffce5a 43.95%,#ff9d5c 49.8%,#ff6f8b 54.69%,#b98cff 60.55%,#3a2872 66.02%,#0b0b0f 70.31%)}
.gp-sweep .w2 i{left:-12cqw}
.gp-sweep .sw::after{content:"";position:absolute;top:0;bottom:0;width:4cqw;background:#0b0b0f}
.gp-sweep .w1::after{left:22cqw}
.gp-sweep .w2::after{left:12.5cqw}
/* the cards: a pointer comes onto the first card, which lightens while a round play button rises into its corner, then crosses to the second */
.gp-cards{background:#08080a}
.gp-cards .cd{position:absolute;top:18cqw;width:26.6cqw;height:34cqw;border-radius:2.4cqw;background:rgba(255,255,255,.04)}
.gp-cards .ca{left:5.4cqw}
.gp-cards .cb{left:36.7cqw}
.gp-cards .cc{left:68cqw}
.gp-cards .cv{left:1.5cqw;top:1.5cqw;width:23cqw;height:23cqw;border-radius:1.6cqw}
.gp-cards .ca .cv{background:radial-gradient(circle at 36% 38%,rgba(255,255,255,.92) 0 17%,transparent 17.6%),linear-gradient(140deg,#ffce5a,#ff9d5c 42%,#ff6f8b 76%,#6b2c6e)}
.gp-cards .cb .cv{background:radial-gradient(circle at 68% 29%,#ffce5a 0 12%,transparent 12.6%),linear-gradient(140deg,#b98cff,#6a5bd0 42%,#252a78 76%,#12153c)}
.gp-cards .cc .cv{background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.92) 0 16%,transparent 16.6%),linear-gradient(140deg,#ff6f8b,#b98cff 50%,#4a2f94 80%,#1c1650)}
.gp-cards .cd .t1{left:1.5cqw;top:26.4cqw;width:17cqw;height:1.9cqw;border-radius:1cqw;background:#d5d9e6}
.gp-cards .cd .t2{left:1.5cqw;top:29.8cqw;width:11cqw;height:1.6cqw;border-radius:1cqw;background:#5d6580}
.gp-cards .ov{inset:0;border-radius:2.4cqw;background:rgba(255,255,255,.07);opacity:0}
.gp-cards .cb .ov{opacity:1}
.gp-cards .play{right:1.6cqw;bottom:1.6cqw;width:7cqw;height:7cqw;border-radius:50%;background:var(--c1);box-shadow:0 1cqw 1cqw rgba(0,0,0,.3);opacity:0}
.gp-cards .cb .play{opacity:1}
.gp-cards .play::after{content:"";position:absolute;left:32%;top:25%;width:42%;height:50%;background:#0b1226;clip-path:polygon(0 0,100% 50%,0 100%)}
.gp-cards .ptr{left:44.3cqw;top:26.5cqw;width:4.4cqw;height:4.4cqw;border-radius:50%;border:2px solid #fff;background:rgba(255,255,255,.22);box-shadow:0 0 0 1px rgba(8,8,10,.7),0 .8cqw 2cqw rgba(0,0,0,.45)}
/* gray shapes that fill in: they sit still while the content loads, then the text swaps in at once and each picture switches on a moment after the one before it; at rest the first card is filled and the others are still gray */
.gp-load{background:#0b0b0f}
.gp-load .ld{position:absolute;top:19.5cqw;width:26.6cqw;height:25cqw}
.gp-load .l-a{left:5.4cqw}
.gp-load .l-b{left:36.7cqw}
.gp-load .l-c{left:68cqw}
.gp-load .ld i{background:#2f3445;overflow:hidden}
.gp-load .th{left:0;top:0;width:100%;height:15cqw;border-radius:1.6cqw;background:#232738}
.gp-load .av{left:0;top:17.4cqw;width:5.6cqw;height:5.6cqw;border-radius:50%}
.gp-load .m1{left:7.2cqw;top:17.6cqw;width:17.5cqw;height:2cqw;border-radius:.6cqw}
.gp-load .m2{left:7.2cqw;top:21.4cqw;width:11.6cqw;height:1.7cqw;border-radius:.6cqw}
.gp-load .ld i b{position:absolute;inset:0;opacity:0}
.gp-load .l-a i b{opacity:1}
.gp-load .l-a .th b{background:radial-gradient(circle at 74% 28%,var(--c7) 0 9%,#0000 9.6%),radial-gradient(ellipse 72% 40% at 20% 112%,#0b1530 0 97%,#0000 100%),linear-gradient(155deg,var(--c1),var(--c6))}
.gp-load .l-b .th b{background:radial-gradient(circle at 30% 70%,#ffe2b0 0 17%,#0000 17.6%),radial-gradient(circle at 62% 74%,#ffd08a 0 19%,#0000 19.6%),linear-gradient(155deg,var(--c4),var(--c5))}
.gp-load .l-c .th b{background:radial-gradient(circle at 26% 30%,#f4f1ff 0 6.5%,#0000 7.1%),radial-gradient(ellipse 85% 36% at 30% 120%,#0d0b2a 0 97%,#0000 100%),linear-gradient(155deg,var(--c3),#2b2a72)}
.gp-load .l-a .av b{background:var(--c1)}
.gp-load .l-b .av b{background:var(--c4)}
.gp-load .l-c .av b{background:var(--c3)}
.gp-load .m1 b{background:#e6e8f0}
.gp-load .m2 b{background:#8f96ad}
/* the chart that changes step by step as the text goes by: columns of dots that grow, then the three tallest light up while the rest fade, then
slide to the front. A column is a clipped box; the dotted layer inside it moves down to hide dots from the top, so the column keeps its
dots at the baseline (transform only). At rest the picture shows the middle step. */
.gp-chart{background:radial-gradient(80% 90% at 70% 60%,#10152a,#08080a 72%)}
.gp-chart .tl{left:8cqw;height:2.2cqw;border-radius:1cqw;background:#2a3042}
.gp-chart .tl1{top:14cqw;width:25cqw}
.gp-chart .tl2{top:20cqw;width:21cqw}
.gp-chart .tl3{top:26cqw;width:26cqw}
.gp-chart .tl4{top:32cqw;width:19cqw}
.gp-chart .tl5{top:38cqw;width:24cqw}
.gp-chart .mk{left:5.4cqw;top:13.2cqw;width:.8cqw;height:3.8cqw;border-radius:1cqw;background:var(--c1);transform:translateY(6cqw)}
.gp-chart .bar{bottom:9cqw;width:6.2cqw;height:33.6cqw;overflow:hidden;opacity:var(--dim)}
.gp-chart .mv,.gp-chart .g{left:0;top:0;width:100%;height:100%;background:radial-gradient(circle 1.5cqw at 50% 50%,var(--dc) 96%,transparent) 0 0/100% 4.8cqw}
.gp-chart .mv{--dc:#8d93ad;transform:translateY(calc(var(--h2) * 4.8cqw))}
.gp-chart .g{--dc:var(--c1);opacity:var(--lit)}
.gp-chart .k1{left:44cqw;--h1:6;--h2:5;--lit:0;--dim:.26;--sx:33.6cqw}
.gp-chart .k2{left:52.4cqw;--h1:6;--h2:4;--lit:0;--dim:.26;--sx:16.8cqw}
.gp-chart .k3{left:60.8cqw;--h1:5;--h2:2;--lit:1;--dim:1;--sx:-8.4cqw}
.gp-chart .k4{left:69.2cqw;--h1:5;--h2:1;--lit:1;--dim:1;--sx:-25.2cqw}
.gp-chart .k5{left:77.6cqw;--h1:6;--h2:3;--lit:1;--dim:1;--sx:-16.8cqw}
.gp-chart .k6{left:86cqw;--h1:6;--h2:5;--lit:0;--dim:.26;--sx:0cqw}
/* the top bar that moves with the scroll: a page whose lines rise, the bar going up with them and coming back as soon as they sink a little.
At rest the picture shows the bar half way back, over lines that have scrolled. */
.gp-bar{background:radial-gradient(80% 90% at 50% 100%,#12162a,#08080a 72%)}
.tb-frame{position:absolute;left:14cqw;right:14cqw;top:21cqh;bottom:-8cqh;border-radius:2.2cqw 2.2cqw 0 0;overflow:hidden;background:#0b0b0f;border:1px solid #262c3d}
.tb-page{position:absolute;left:7cqw;right:7cqw;top:20cqh;display:flex;flex-direction:column;gap:3.4cqh;transform:translateY(-30.5cqh)}
.tb-page i{position:static;height:3cqh;border-radius:1cqh;background:#2a3042}
.tb-page .k{width:22%;height:2cqh;background:var(--c1);opacity:.85}
.tb-page .h{width:88%;height:5cqh;background:#d9dcea;opacity:.8}
.tb-page .s{width:58%}
.tb-page .au{display:flex;align-items:center;gap:2cqw;height:4.4cqw;background:none}
.tb-page .au b{display:block;flex:none;width:4.4cqw;height:4.4cqw;border-radius:50%;background:linear-gradient(135deg,var(--c4),var(--c5))}
.tb-page .au b+b{width:24cqw;height:1.8cqh;border-radius:1cqh;background:#3a4258}
.tb-page .im{height:15cqh;border-radius:1.6cqh;background:radial-gradient(circle at 76% 34%,#ffe9b8 0 6%,rgba(255,206,90,.45) 6.5%,transparent 20%),linear-gradient(160deg,#27407f,#5a3a99 58%,#8a3d6a)}
.tb-page .im~i:nth-child(4n+2){width:92%}
.tb-page .im~i:nth-child(4n+3){width:84%}
.tb-page .im~i:nth-child(4n){width:96%}
.tb-page .im~i:nth-child(4n+1){width:70%}
.tb-bar{position:absolute;left:0;right:0;top:0;height:15cqh;background:#151823;border-bottom:1px solid #2a2f40;transform:translateY(-7.5cqh)}
.tb-bar i{top:50%}
.tb-bar .d{left:5cqw;width:4.4cqw;height:4.4cqw;margin-top:-2.2cqw;border-radius:50%;background:linear-gradient(135deg,var(--c1),var(--c3))}
.tb-bar .t{left:11.5cqw;width:15cqw;height:1.8cqh;margin-top:-.9cqh;border-radius:1cqh;background:#e9ebf3;opacity:.75}
.tb-bar .a{right:11.2cqw;width:3.6cqw;height:3.6cqw;margin-top:-1.8cqw;border-radius:50%;box-shadow:inset 0 0 0 .5cqw #5d6580}
.tb-bar .f{right:5cqw;width:3.6cqw;height:3.6cqw;margin-top:-1.8cqw;border-radius:50%;background:var(--c1)}
@keyframes g-rib{from{transform:rotate(-20deg) translateY(-12%) scaleY(.6)}to{transform:rotate(-6deg) translateY(12%) scaleY(1.2)}}
@keyframes g-sway{from{transform:rotate(-17deg) scale(1.2)}to{transform:rotate(-8deg) scale(1.2)}}
@keyframes g-la{from{transform:scaleY(1)}to{transform:scaleY(.45)}}
@keyframes g-ra{from{transform:scaleY(.5)}to{transform:scaleY(1.05)}}
@keyframes g-pinch{from{opacity:.55}to{opacity:1}}
@keyframes g-lift{0%,26%{transform:translateZ(calc(var(--u) * var(--z1)))}44%{transform:translateZ(calc(var(--u) * var(--z1)))}70%,100%{transform:translateZ(calc(var(--u) * var(--z0)))}}
@keyframes g-away{0%,24%{opacity:1;transform:translateZ(calc(var(--u) * var(--z1)))}44%{opacity:1;transform:translateZ(calc(var(--u) * var(--z2)))}46%,100%{opacity:0;transform:translateZ(calc(var(--u) * var(--z2)))}}
@keyframes g-tip{0%,4%{transform:translateY(62cqh) rotateX(64deg) rotateY(-16deg)}28%,44%{transform:translateY(0) rotateX(64deg) rotateY(-16deg)}70%,84%{transform:translateY(0) rotateX(188deg) rotateY(12deg)}98%,100%{transform:translateY(-72cqh) rotateX(188deg) rotateY(12deg)}}
@keyframes g-blob{0%{opacity:0;transform:translate(-45cqw,49.2cqh)}6.3%{opacity:1;transform:translate(-38.6cqw,45cqh)}12.5%{transform:translate(-30.2cqw,39.2cqh)}18.8%{transform:translate(-21.9cqw,33.2cqh)}25%{transform:translate(-13cqw,27.2cqh)}31.3%{transform:translate(-4cqw,21.3cqh)}37.5%{transform:translate(5.3cqw,16.4cqh)}43.8%{transform:translate(16cqw,14.4cqh)}50%{transform:translate(27.6cqw,16cqh)}56.3%{transform:translate(36.9cqw,20.6cqh)}62.5%{transform:translate(44.9cqw,27.4cqh)}68.8%{transform:translate(52cqw,34.2cqh)}75%{transform:translate(58.2cqw,41.4cqh)}81.3%{transform:translate(64.5cqw,45.7cqh)}87.5%{transform:translate(72.2cqw,44.7cqh)}93.8%{opacity:1;transform:translate(79.3cqw,42.7cqh)}100%{opacity:0;transform:translate(85cqw,41.2cqh)}}
@keyframes g-blob-i{0%{transform:translate(45cqw,-49.2cqh)}6.3%{transform:translate(38.6cqw,-45cqh)}12.5%{transform:translate(30.2cqw,-39.2cqh)}18.8%{transform:translate(21.9cqw,-33.2cqh)}25%{transform:translate(13cqw,-27.2cqh)}31.3%{transform:translate(4cqw,-21.3cqh)}37.5%{transform:translate(-5.3cqw,-16.4cqh)}43.8%{transform:translate(-16cqw,-14.4cqh)}50%{transform:translate(-27.6cqw,-16cqh)}56.3%{transform:translate(-36.9cqw,-20.6cqh)}62.5%{transform:translate(-44.9cqw,-27.4cqh)}68.8%{transform:translate(-52cqw,-34.2cqh)}75%{transform:translate(-58.2cqw,-41.4cqh)}81.3%{transform:translate(-64.5cqw,-45.7cqh)}87.5%{transform:translate(-72.2cqw,-44.7cqh)}93.8%{transform:translate(-79.3cqw,-42.7cqh)}100%{transform:translate(-85cqw,-41.2cqh)}}
@keyframes g-line{0%,6%{opacity:0;transform:translateY(5cqh)}24%,80%{opacity:1;transform:none}92%,100%{opacity:0;transform:translateY(-2cqh)}}
@keyframes g-soft{0%,6%{opacity:.95}22%,100%{opacity:0}}
@keyframes g-sharp{0%,6%{opacity:0}22%,100%{opacity:1}}
@keyframes g-fade{0%,6%{opacity:0}30%,80%{opacity:1}92%,100%{opacity:0}}
@keyframes g-x1{0%,14%{transform:none}28%,72%{transform:translateY(1.8cqw) rotate(45deg)}86%,100%{transform:none}}
@keyframes g-x2{0%,14%{opacity:1}28%,72%{opacity:0}86%,100%{opacity:1}}
@keyframes g-x3{0%,14%{transform:none}28%,72%{transform:translateY(-1.8cqw) rotate(-45deg)}86%,100%{transform:none}}
@keyframes g-panel{0%,14%{opacity:0;transform:translateY(-3cqh)}28%,72%{opacity:1;transform:none}86%,100%{opacity:0;transform:translateY(-2cqh)}}
@keyframes g-drop{0%,22%{opacity:0;transform:translateY(-4cqh)}36%,72%{opacity:1;transform:none}84%,100%{opacity:0;transform:translateY(-2cqh)}}
@keyframes g-ptr{0%,8%{transform:translate(30cqw,12cqh)}24%,80%{transform:none}94%,100%{transform:translate(30cqw,12cqh)}}
@keyframes g-card{0%,31%{opacity:0;transform:translateY(5cqh)}36%,84%{opacity:1;transform:none}89%,100%{opacity:0;transform:translateY(4cqh)}}
@keyframes g-sweep{0%,8%{transform:translateX(-80.08%);opacity:1}62%,86%{transform:none;opacity:1}96%{transform:none;opacity:0}96.1%,100%{transform:translateX(-80.08%);opacity:0}}
@keyframes g-hv{0%,13%{opacity:0}17%,45.5%{opacity:1}49%,100%{opacity:0}}
@keyframes g-pl{0%,13%{opacity:0;transform:translateY(1cqw)}17%,45.5%{opacity:1;transform:none}49%,100%{opacity:0;transform:translateY(1cqw)}}
@keyframes g-pt{0%{opacity:0;transform:translate(-41.5cqw,-15.7cqw)}6%{opacity:1;transform:translate(-41.5cqw,-15.7cqw)}16%,40%{opacity:1;transform:translate(-31.3cqw,0)}50%,78%{opacity:1;transform:none}86%{opacity:1;transform:translate(8cqw,-16.7cqw)}92%,100%{opacity:0;transform:translate(8cqw,-16.7cqw)}}
@keyframes g-pop{0%,31%{opacity:0}31.5%,88%{opacity:1}88.5%,100%{opacity:0}}
@keyframes g-fill{0%,33%{opacity:0}33.4%,88%{opacity:1}88.5%,100%{opacity:0}}
@keyframes g-dots{0%,26%{transform:translateY(calc(var(--h1) * 4.8cqw))}36%,92%{transform:translateY(calc(var(--h2) * 4.8cqw))}100%{transform:translateY(calc(var(--h1) * 4.8cqw))}}
@keyframes g-lit{0%,26%{opacity:0}36%,92%{opacity:var(--lit)}100%{opacity:0}}
@keyframes g-sort{0%,26%{opacity:1;transform:none}36%,62%{opacity:var(--dim);transform:none}72%,92%{opacity:var(--dim);transform:translateX(var(--sx))}100%{opacity:1;transform:none}}
@keyframes g-mark{0%,26%{transform:none}36%,62%{transform:translateY(6cqw)}72%,92%{transform:translateY(12cqw)}100%{transform:none}}
@keyframes g-page{0%{transform:translateY(0)}8%{transform:translateY(0)}10.67%{transform:translateY(-0.21cqh)}13.33%{transform:translateY(-1.67cqh)}16%{transform:translateY(-5.63cqh)}18.67%{transform:translateY(-13.34cqh)}21.33%{transform:translateY(-24.66cqh)}24%{transform:translateY(-32.37cqh)}26.67%{transform:translateY(-36.33cqh)}29.33%{transform:translateY(-37.79cqh)}32%{transform:translateY(-38cqh)}40%{transform:translateY(-38cqh)}41.33%{transform:translateY(-37.91cqh)}42.67%{transform:translateY(-37.25cqh)}44%{transform:translateY(-35.48cqh)}45.33%{transform:translateY(-32.03cqh)}46.67%{transform:translateY(-26.97cqh)}48%{transform:translateY(-23.52cqh)}49.33%{transform:translateY(-21.75cqh)}50.67%{transform:translateY(-21.09cqh)}52%{transform:translateY(-21cqh)}82%{transform:translateY(-21cqh)}83.56%{transform:translateY(-20.88cqh)}85.11%{transform:translateY(-20.08cqh)}86.67%{transform:translateY(-17.89cqh)}88.22%{transform:translateY(-13.63cqh)}89.78%{transform:translateY(-7.37cqh)}91.33%{transform:translateY(-3.11cqh)}92.89%{transform:translateY(-0.92cqh)}94.44%{transform:translateY(-0.12cqh)}96%{transform:translateY(0)}100%{transform:translateY(0)}}
@keyframes g-slide{0%{transform:translateY(0)}8%{transform:translateY(0)}10.67%{transform:translateY(-0.21cqh)}13.33%{transform:translateY(-1.67cqh)}16%{transform:translateY(-5.63cqh)}18.67%{transform:translateY(-13.34cqh)}21.33%{transform:translateY(-15cqh)}40%{transform:translateY(-15cqh)}41.33%{transform:translateY(-14.91cqh)}42.67%{transform:translateY(-14.25cqh)}44%{transform:translateY(-12.48cqh)}45.33%{transform:translateY(-9.03cqh)}46.67%{transform:translateY(-3.97cqh)}48%{transform:translateY(-0.52cqh)}49.33%{transform:translateY(0)}100%{transform:translateY(0)}}
/* each loop starts part way in (--x), at a frame that shows the effect, so a tile that is not playing still shows it; the delays of the
parts that follow one another (--d) are counted from there */
@media(prefers-reduced-motion:no-preference){
.gp-ribbon .rb{animation:g-rib 8s ease-in-out infinite alternate backwards}
.gp-ribbon .rb2{animation-duration:10s;animation-delay:-3s}
.gp-ribbon .rb3{animation-duration:12s;animation-delay:-6s}
.gp-ribbon .rw{animation:g-sway 14s ease-in-out infinite alternate backwards}
.gp-ribbon .la{animation:g-la 9s ease-in-out infinite alternate backwards}
.gp-ribbon .ra{animation:g-ra 9s ease-in-out infinite alternate backwards}
.gp-ribbon .rp{animation:g-pinch 9s ease-in-out infinite alternate backwards}
.gp-visor{--x:2.4s}
.gp-visor .vz{animation:g-tip 9s ease-in-out infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-visor .vz>i{animation:g-lift 9s ease-in-out infinite backwards;animation-delay:calc(var(--d,0s) - var(--x))}
.gp-visor .vz>.v-glass,.gp-visor .vz>.v-frame{animation-name:g-away}
.gp-visor .vz>.v-frame{--d:.22s}
.gp-visor .vz>.v-band{--d:.14s}
.gp-reveal{--x:4.7s}
.rv-blob{animation:g-blob 9s linear infinite backwards;animation-delay:calc(0s - var(--x))}
.rv-b{animation:g-blob-i 9s linear infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-intro{--x:1.5s}
.gp-intro i{animation:g-line 6s var(--ease) infinite backwards;animation-delay:calc(var(--d,0s) - var(--x))}
.gp-intro .t::before{animation:g-soft 6s var(--ease) infinite backwards;animation-delay:calc(var(--d,0s) - var(--x))}
.gp-intro .t::after{animation:g-sharp 6s var(--ease) infinite backwards;animation-delay:calc(var(--d,0s) - var(--x))}
.gp-intro .n2{--d:.12s}
.gp-intro .n3{--d:.34s}
.gp-intro .n4{--d:.62s}
.gp-intro .n5{--d:.74s}
.gp-intro .n6,.gp-intro .n7{--d:1s;animation-name:g-fade}
.gp-menu{--x:2.6s}
.mn-btn i:nth-child(1){animation:g-x1 6s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.mn-btn i:nth-child(2){animation:g-x2 6s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.mn-btn i:nth-child(3){animation:g-x3 6s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.mn-panel{animation:g-panel 6s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.mn-panel i{animation:g-drop 6s var(--ease) infinite backwards;animation-delay:calc(var(--d,0s) - var(--x))}
.mn-panel i:nth-child(2){--d:.14s}
.mn-panel i:nth-child(3){--d:.28s}
.gp-wiki{--x:4s}
.wk-ptr{animation:g-ptr 6.5s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.wk-card{animation:g-card 6.5s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-sweep{--x:1.66s}
.gp-sweep .sw i{animation:g-sweep 6s linear infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-cards{--x:3.7s}
.gp-cards .ov{animation:g-hv 6s linear infinite backwards;animation-delay:calc(var(--d,0s) - var(--x))}
.gp-cards .play{animation:g-pl 6s ease-out infinite backwards;animation-delay:calc(var(--d,0s) - var(--x))}
.gp-cards .cb{--d:1.95s}
.gp-cards .ptr{animation:g-pt 6s ease-in-out infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-load{--x:1.5s}
.gp-load .ld i b{animation:g-pop 7s linear infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-load .ld .th b{animation-name:g-fill;animation-delay:calc(var(--d,0s) - var(--x))}
.gp-load .l-b{--d:.15s}
.gp-load .l-c{--d:.3s}
.gp-chart{--x:3.2s}
.gp-chart .mv{animation:g-dots 7s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-chart .g{animation:g-lit 7s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-chart .bar{animation:g-sort 7s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-chart .mk{animation:g-mark 7s var(--ease) infinite backwards;animation-delay:calc(0s - var(--x))}
.gp-bar{--x:3.2s}
.tb-page{animation:g-page 7s linear infinite backwards;animation-delay:calc(0s - var(--x))}
.tb-bar{animation:g-slide 7s linear infinite backwards;animation-delay:calc(0s - var(--x))}
}
@media(max-width:960px){.fx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
.fx-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.tile{padding:8px;border-radius:18px}
.t-title a::after{border-radius:18px}
.t-tags{left:8px;right:8px;top:8px}
.t-meta{padding:12px 6px 0}
.t-title{font-size:17px}
.tile-more{padding:24px 18px}
}
/* with scripts the entries wait in their list, out of sight, and open one at a time in the pop-up */
.js .fx-list{display:none}
/* an entry's new parts: the chips, Our version with its player, Good to know and the link to the real page */
.fx-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.fx-chip{display:inline-flex;align-items:center;min-height:32px;padding:0 13px;border-radius:999px;background:var(--line-2);border:1px solid var(--line);font-size:14px;font-weight:600;color:var(--ink-2)}
.fx-version{display:none;margin-top:22px}
.js .fx-version{display:block}
.fx-stage{position:relative;height:clamp(240px,calc(100vh - 420px),420px);height:clamp(240px,calc(100dvh - 420px),420px);border-radius:16px;overflow:hidden;background:#08080a;border:1px solid var(--line)}
.fx-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#08080a}
.fx-stage.is-focused{outline:3px solid var(--brand);outline-offset:3px} /* the browser draws no focus ring inside a frame, so the stage does */
.fx-vlabel{position:absolute;z-index:2;left:12px;top:12px;padding:5px 11px;border-radius:999px;background:rgba(255,255,255,.94);color:#16161b;font-size:12px;font-weight:700;line-height:1.2;pointer-events:none}
.fx-player{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:12px}
.fx-pbtn{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 22px;border-radius:999px;border:1.5px solid var(--ink);background:none;color:var(--ink);font-size:15px;font-weight:700;cursor:pointer;transition:background .2s,color .2s}
.fx-pbtn:first-child{background:var(--ink);color:var(--bg)}
.fx-phint{flex:1 1 220px;font-size:14px;line-height:1.5;color:var(--muted)}
.fx-know{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fx-know>div{padding:14px 16px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}
.fx-know dt{font-size:13px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.fx-know dd{margin-top:4px;font-size:15px;line-height:1.5;color:var(--ink-2)}
.fx-real{display:flex;align-items:center;gap:.3em;width:fit-content;min-width:44px;min-height:44px;margin-top:8px;color:var(--ink);font-size:16px;font-weight:700;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:5px}
/* the pop-up: one native dialog that shows one entry at a time (the entry's section is moved in, and back when it closes) */
.fx-dlg{position:fixed;inset:0;margin:auto;width:min(980px,calc(100% - 2 * var(--gut)));max-width:none;height:fit-content;max-height:calc(100vh - 2 * var(--gut));max-height:calc(100dvh - 2 * var(--gut));padding:0;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-2);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.fx-dlg::backdrop{background:rgba(8,8,12,.62)}
.fx-dlg[open]{animation:fx-in .26s var(--ease)}
.fx-dlg[open]::backdrop{animation:fx-fade .26s ease-out}
@keyframes fx-in{from{opacity:0;transform:translateY(12px)}}
@keyframes fx-fade{from{opacity:0}}
html.fx-open{overflow:hidden;padding-right:var(--fx-gap,0px)} /* the page does not scroll behind the pop-up, and keeps its width where its scrollbar was */
.fx-dbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:6px;padding:10px clamp(12px,2.4vw,20px);background:var(--surface);border-bottom:1px solid var(--line)}
.fx-dbtn{border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.fx-dnote{flex:1;min-width:0;margin:0 8px;font-size:12px;line-height:1.3;color:var(--muted);text-align:center;text-wrap:balance}
.fx-dclose{margin-left:auto}
.fx-dlg .fx h2{width:fit-content;max-width:100%}
.fx-dlg .fx{margin:0;padding:clamp(14px,2.2vw,24px) clamp(18px,4vw,40px) clamp(28px,4vw,44px);border-top:0;scroll-margin-top:65px}
@media(max-width:600px),(max-height:500px){
.fx-dlg{width:100%;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none}
.fx-stage{height:min(300px,calc(100vh - 140px));height:min(300px,calc(100dvh - 140px))}
.fx-dlg .copy{position:sticky;bottom:12px;z-index:4;box-shadow:0 8px 20px rgba(22,22,27,.3)}
.fx-dlg .toast{bottom:76px}
.fx-dlg .fx-what a{padding-block:14px} /* a link inside a sentence: its touch area grows to 44px without moving the lines */
}
@media(max-width:600px){.fx-dlg .copy{box-shadow:0 0 0 12px var(--surface),0 -16px 16px 4px var(--surface)}} /* full width: the page's own color around it hides the text that scrolls past */
@media(max-height:720px){.fx-dlg .copy{position:static;box-shadow:none}} /* a short window (a phone of 720px or less, a phone held sideways): the button stays at the end of the entry, where it cannot cover the stage */
@media(max-width:760px){.fx-know{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.fx-dlg[open],.fx-dlg[open]::backdrop{animation:none}}
/* ── previews: written by tools/make-famous.mjs from the home page; run it again, never edit by hand ── */
/* the base: each category's accent color, the preview box, and its animations paused unless its card plays */
.c1{--accent:var(--c1);--g1:#8fbeff;--g2:#3b5cf0}
.c2{--accent:var(--c2);--g1:#8ae7ab;--g2:#139a58}
.c3{--accent:var(--c3);--g1:#d1b0ff;--g2:#7340ea}
.c4{--accent:var(--c4);--g1:#ffc083;--g2:#ff5b3a}
.c5{--accent:var(--c5);--g1:#ffa3b8;--g2:#e8366d}
.c6{--accent:var(--c6);--g1:#76e9d7;--g2:#0c9896}
.c7{--accent:var(--c7);--g1:#ffdd75;--g2:#ff962b}
.pv{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;container-type:size;transition:transform .6s var(--ease);background:radial-gradient(ellipse 22% 35% at 90% 99%,rgba(255,255,255,.12) 98%,transparent 100%),radial-gradient(75% 95% at 12% -5%,rgba(255,255,255,.42),transparent 58%),linear-gradient(150deg,var(--g1),var(--g2));--cp-ease:cubic-bezier(.22,1,.36,1);--cp-inout:cubic-bezier(.65,0,.35,1);--cp-spring:cubic-bezier(.34,1.56,.64,1);--cp-ink:#1c1a24;--cp-lip:color-mix(in srgb,var(--g2) 26%,#e9e5f0);--cp-sh:color-mix(in srgb,var(--g2) 55%,#1a0830);--cp-lift:0 1.3cqh 0 var(--cp-lip),0 3.6cqh 6cqh color-mix(in srgb,var(--cp-sh) 40%,transparent);--cp-word:0 .9cqh 0 color-mix(in srgb,var(--g2) 62%,#000 38%);--cp-tip:0 0 0 .9cqh #fff,0 1.6cqh 2.8cqh color-mix(in srgb,var(--cp-sh) 60%,transparent);--cp-dusk:linear-gradient(180deg,color-mix(in srgb,var(--g2) 30%,#2b1050),color-mix(in srgb,var(--g2) 68%,#3a1250) 58%,var(--g2))}
.pv *{will-change:transform}
.card:not(.playing) .pv .anim,.card:not(.playing) .pv .anim::before,.card:not(.playing) .pv .anim::after{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.pv .anim,.pv .anim::before,.pv .anim::after{animation-play-state:paused!important}}
/* aurora: Aurora / Northern Lights */
.pv-aurora{background:var(--cp-dusk)}
.pv-aurora .st{position:absolute;inset:0;background:radial-gradient(circle at 12% 18%,#fff 0 .35cqh,transparent .6cqh),radial-gradient(circle at 27% 8%,#fff 0 .3cqh,transparent .55cqh),radial-gradient(circle at 46% 22%,#fff 0 .3cqh,transparent .55cqh),radial-gradient(circle at 64% 10%,#fff 0 .4cqh,transparent .65cqh),radial-gradient(circle at 81% 26%,#fff 0 .3cqh,transparent .55cqh),radial-gradient(circle at 90% 9%,#fff 0 .35cqh,transparent .6cqh),radial-gradient(circle at 36% 38%,#fff 0 .25cqh,transparent .5cqh),radial-gradient(circle at 73% 42%,#fff 0 .25cqh,transparent .5cqh);animation:k-aurora-tw 3.6s ease-in-out infinite}
.pv-aurora .rb{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:blur(1.1cqw)}
.pv-aurora .rb path{fill:none;stroke-linecap:round;transform-box:view-box;transform-origin:50% 50%}
.pv-aurora .r1{stroke:color-mix(in srgb,var(--g1) 75%,#fff);stroke-width:13;opacity:.9;animation:k-aurora-rib 7s ease-in-out infinite}
.pv-aurora .r2{stroke:#ffbfe6;stroke-width:9;opacity:.75;animation:k-aurora-rib 8.6s ease-in-out infinite -3s}
.pv-aurora .r3{stroke:#fff;stroke-width:5;opacity:.7;animation:k-aurora-rib 7.8s ease-in-out infinite -5s}
.pv-aurora .hz{position:absolute;left:0;right:0;bottom:0;height:27%;background:var(--cp-ink);clip-path:polygon(0 58%,8% 40%,16% 54%,26% 22%,36% 46%,47% 30%,57% 52%,67% 34%,77% 54%,86% 26%,94% 44%,100% 32%,100% 100%,0 100%)}
@keyframes k-aurora-rib{0%,100%{transform:translateX(-7%) scaleY(.8)}50%{transform:translateX(7%) scaleY(1.2)}}
@keyframes k-aurora-tw{0%,100%{opacity:.85}50%{opacity:.35}}
/* grain2: Grain / Film Noise Overlay */
.pv-grain2 .fs{position:absolute;left:-3cqw;right:-3cqw;top:25cqh;height:66cqh;background:var(--cp-ink);box-shadow:0 3.6cqh 6cqh color-mix(in srgb,var(--cp-sh) 45%,transparent)}
.pv-grain2 .row{position:absolute;left:0;right:0;top:3cqh;display:flex;justify-content:space-between;padding:0 1.2cqw}
.pv-grain2 .row.rb{top:auto;bottom:3cqh}
.pv-grain2 .row i{width:3.6cqw;height:4cqh;border-radius:1.1cqh;background:rgba(255,255,255,.7)}
.pv-grain2 .fr{position:absolute;top:11cqh;width:40cqw;height:44cqh;border-radius:1.8cqh;overflow:hidden;background:linear-gradient(170deg,var(--g1),var(--g2))}
.pv-grain2 .f0{left:-10cqw}
.pv-grain2 .f1{left:33cqw}
.pv-grain2 .f2{left:76cqw}
.pv-grain2 .sun{position:absolute;right:20%;top:var(--y,20%);width:12cqh;height:12cqh;border-radius:50%;background:#fff}
.pv-grain2 .f0 .sun{--y:30%}
.pv-grain2 .f2 .sun{--y:10%}
.pv-grain2 .hill{position:absolute;left:-25%;right:-25%;bottom:-48%;height:88%;border-radius:50%;background:var(--cp-ink)}
.pv-grain2 .fl{position:absolute;inset:0;background:#fff;opacity:0;animation:k-grain2-flick 1.5s steps(1,end) infinite}
.pv-grain2 .gn{position:absolute;inset:-14cqh -9cqw;opacity:.85;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cfilter id='g' x='0' y='0' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .14 6 0 0 0 -3.6'/%3E%3C/filter%3E%3Crect width='48' height='48' filter='url(%23g)'/%3E%3C/svg%3E") 0 0/32cqh 32cqh,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cfilter id='g' x='0' y='0' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 6 0 0 -3.7'/%3E%3C/filter%3E%3Crect width='48' height='48' filter='url(%23g)'/%3E%3C/svg%3E") 0 0/32cqh 32cqh;animation:k-grain2-jump .5s steps(1,end) infinite}
@keyframes fl{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-16px) rotate(14deg)}}
@keyframes k-grain2-jump{0%{transform:translate(0,0)}20%{transform:translate(-9.4cqh,5.7cqh)}40%{transform:translate(4.3cqh,-11.1cqh)}60%{transform:translate(-6.1cqh,-3.9cqh)}80%{transform:translate(10.3cqh,8.3cqh)}}
@keyframes k-grain2-flick{0%{opacity:0}14%{opacity:.1}26%{opacity:.03}40%{opacity:.14}52%{opacity:0}66%{opacity:.08}80%{opacity:.02}90%{opacity:.12}}
/* shader: WebGL Shader Animation */
.pv-shader .fw{position:absolute;inset:0;animation:k-shader-flow 3s linear infinite}
.pv-shader .cl{position:absolute;top:-30cqh;height:160cqh;left:calc(var(--i) * 3.125%);width:3.25%;background:repeating-linear-gradient(180deg,#fff 0 5cqh,transparent 0 11cqh,var(--cp-ink) 0 13.5cqh,transparent 0 20cqh);animation:k-shader-wave 3s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -.27s)}
@keyframes k-shader-flow{from{transform:translateY(-20cqh)}to{transform:translateY(0)}}
@keyframes k-shader-wave{from{transform:translateY(-7cqh)}to{transform:translateY(7cqh)}}
/* scrub: Scrub Animation */
.pv-scrub .rail{position:absolute;z-index:5;right:3cqw;top:20cqh;bottom:20cqh;width:1.8cqh;border-radius:1cqh;background:rgba(28,26,36,.2)}
.pv-scrub .rail i{position:absolute;left:0;right:0;top:0;height:20cqh;border-radius:1cqh;background:#fff;box-shadow:0 .5cqh 0 var(--cp-lip)}
.pv-scrub .rt{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.pv-scrub .rt path{fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-dasharray:0 4;opacity:.7}
.pv-scrub .rt circle{fill:#fff}
.pv-scrub .cl{position:absolute;left:50cqw;top:44cqh;width:60cqh;height:120cqh;overflow:hidden;transform-origin:0 50%;transform:rotate(-60deg)}
.pv-scrub .cl i{position:absolute;left:-59.2cqh;top:.8cqh;width:118.4cqh;height:118.4cqh;box-sizing:border-box;border:2.4cqh solid transparent;border-top-color:#fff;border-right-color:#fff;border-radius:50%;--t0:rotate(-135deg);--t1:rotate(-15deg);animation:k-scrub-go 5.4s var(--cp-inout) infinite}
.pv-scrub .arm{position:absolute;left:50cqw;top:104cqh;width:0;height:0;--t0:rotate(-60deg);--t1:rotate(60deg);animation:k-scrub-go 5.4s var(--cp-inout) infinite}
.pv-scrub .arm svg{position:absolute;left:-9.5cqh;top:-67.5cqh;width:19cqh;height:19cqh;overflow:visible;filter:drop-shadow(0 .8cqh 0 var(--cp-lip))}
.pv-scrub .arm path{fill:#fff;stroke:#fff;stroke-width:1.2;stroke-linejoin:round}
.pv-scrub .arm path+path{fill:none;stroke:var(--cp-ink);stroke-width:1.6;stroke-linecap:round}
.pv-scrub .bar{position:absolute;left:28cqw;right:24cqw;top:86cqh;height:3.6cqh;margin-top:-1.8cqh;border-radius:2cqh;background:rgba(28,26,36,.2)}
.pv-scrub .bar::before{content:"";position:absolute;left:-7cqw;top:50%;margin-top:-3cqh;border-left:3.9cqw solid var(--cp-ink);border-top:3cqh solid transparent;border-bottom:3cqh solid transparent}
.pv-scrub .bar b{position:absolute;inset:0;border-radius:inherit;background:#fff;transform-origin:0 50%;--t0:scaleX(0);--t1:scaleX(1);animation:k-scrub-go 5.4s var(--cp-inout) infinite}
.pv-scrub .bar i{position:absolute;left:-4.2cqh;top:50%;width:8.4cqh;height:8.4cqh;margin-top:-4.2cqh;border-radius:50%;background:radial-gradient(circle,var(--cp-ink) 0 1.6cqh,#fff 1.8cqh);box-shadow:0 .8cqh 0 var(--cp-lip);--t0:translateX(0);--t1:translateX(48cqw);animation:k-scrub-go 5.4s var(--cp-inout) infinite}
.pv-scrub .rail i{--t0:translateY(0);--t1:translateY(40cqh);animation:k-scrub-go 5.4s var(--cp-inout) infinite}
@keyframes k-scrub-go{0%,10%{transform:var(--t0)}46%,58%{transform:var(--t1)}94%,100%{transform:var(--t0)}}
/* pin: Pin Animation */
.pv-pin .rail{position:absolute;z-index:5;right:3cqw;top:20cqh;bottom:20cqh;width:1.8cqh;border-radius:1cqh;background:rgba(28,26,36,.2)}
.pv-pin .rail i{position:absolute;left:0;right:0;top:0;height:20cqh;border-radius:1cqh;background:#fff;box-shadow:0 .5cqh 0 var(--cp-lip)}
.pv-pin .bg{position:absolute;left:8cqw;right:10cqw;top:4cqh;display:flex;flex-direction:column;gap:5cqh;--t0:translateY(0);--t1:translateY(-64cqh);animation:k-pin-go 6s linear infinite}
.pv-pin .bg b{flex:none;width:92%;height:3cqh;border-radius:2cqh;background:rgba(255,255,255,.24)}
.pv-pin .bg b:nth-child(3n){width:64%}
.pv-pin .bg b:nth-child(3n+2){width:80%}
.pv-pin .ph{position:absolute;left:28cqw;top:29cqh;width:21cqw;height:64cqh;border-radius:5cqh;background:#fff;box-shadow:var(--cp-lift)}
.pv-pin .ph::before{content:"";position:absolute;inset:1.6cqh;border-radius:3.6cqh;background:var(--cp-ink)}
.pv-pin .ph i{position:absolute;left:50%;top:50%;opacity:0}
.pv-pin .f1{width:15cqh;height:15cqh;margin:-7.5cqh 0 0 -7.5cqh;border-radius:50%;background:linear-gradient(150deg,var(--g1),var(--g2));animation:k-pin-f1 6s var(--cp-ease) infinite}
.pv-pin .f2{width:14cqh;height:15cqh;margin:-7.5cqh 0 0 -7cqh;background:linear-gradient(#fff,#fff) 0 100%/3.6cqh 42% no-repeat,linear-gradient(#fff,#fff) 50% 100%/3.6cqh 70% no-repeat,linear-gradient(var(--g1),var(--g1)) 100% 100%/3.6cqh 100% no-repeat;animation:k-pin-f2 6s var(--cp-ease) infinite}
.pv-pin .f3{width:15cqh;height:15cqh;margin:-7.5cqh 0 0 -7.5cqh;border-radius:4cqh;background:#fff;animation:k-pin-f3 6s var(--cp-ease) infinite}
.pv-pin .f3::after{content:"";position:absolute;left:36%;top:17%;width:24%;height:44%;border:solid var(--g2);border-width:0 1.6cqh 1.6cqh 0;transform:rotate(45deg)}
.pv-pin .pn{position:absolute;left:46.4cqw;top:25.2cqh;width:8.4cqh;height:8.4cqh;border-radius:50%;background:var(--cp-ink);box-shadow:0 .8cqh 0 #000;transform:rotate(32deg)}
.pv-pin .pn::before{content:"";position:absolute;left:20%;top:16%;width:30%;height:30%;border-radius:50%;background:rgba(255,255,255,.8)}
.pv-pin .pn::after{content:"";position:absolute;left:50%;top:92%;width:1.3cqh;height:5.4cqh;margin-left:-.65cqh;border-radius:0 0 1cqh 1cqh;background:var(--cp-ink)}
.pv-pin .tx{position:absolute;left:56cqw;top:42cqh;width:30cqw;height:30cqh}
.pv-pin .tx span{position:absolute;inset:0;display:flex;flex-direction:column;gap:2.4cqh;opacity:0}
.pv-pin .tx b{flex:none;width:90%;height:2.6cqh;border-radius:2cqh;background:rgba(255,255,255,.7)}
.pv-pin .tx b:first-child{width:76%;height:3.6cqh;background:var(--cp-ink)}
.pv-pin .tx b:last-child{width:58%}
.pv-pin .t1{animation:k-pin-f1 6s var(--cp-ease) infinite}
.pv-pin .t2{animation:k-pin-f2 6s var(--cp-ease) infinite}
.pv-pin .t3{animation:k-pin-f3 6s var(--cp-ease) infinite}
.pv-pin .t2 b:first-child{width:58%}
.pv-pin .t3 b:first-child{width:86%}
.pv-pin .dt{position:absolute;left:56cqw;top:74cqh;width:14cqw;height:3cqh;background:radial-gradient(circle,rgba(255,255,255,.45) 0 1.3cqh,transparent 1.5cqh) 0 0/4.6cqw 100% repeat-x}
.pv-pin .dt i{position:absolute;left:0;top:-.4cqh;width:4.6cqw;height:3.8cqh;background:radial-gradient(circle,#fff 0 1.7cqh,transparent 1.9cqh);animation:k-pin-dot 6s var(--cp-spring) infinite}
.pv-pin .rail i{--t0:translateY(0);--t1:translateY(40cqh);animation:k-pin-go 6s linear infinite}
@keyframes k-pin-go{0%{transform:var(--t0)}86%{transform:var(--t1);animation-timing-function:cubic-bezier(.65,0,.35,1)}96%,100%{transform:var(--t0)}}
@keyframes k-pin-f1{0%,26%{opacity:1;transform:translateY(0)}32%,86%{opacity:0;transform:translateY(-4cqh)}87%{opacity:0;transform:translateY(4cqh)}94%,100%{opacity:1;transform:translateY(0)}}
@keyframes k-pin-f2{0%,26%{opacity:0;transform:translateY(4cqh)}32%,56%{opacity:1;transform:translateY(0)}62%,100%{opacity:0;transform:translateY(-4cqh)}}
@keyframes k-pin-f3{0%,56%{opacity:0;transform:translateY(4cqh)}62%,86%{opacity:1;transform:translateY(0)}92%,100%{opacity:0;transform:translateY(-4cqh)}}
@keyframes k-pin-dot{0%,26%{transform:translateX(0)}32%,56%{transform:translateX(4.6cqw)}62%,86%{transform:translateX(9.2cqw)}94%,100%{transform:translateX(0)}}
/* cursor: Cursor Follower */
.pv-cursor .w,.pv-cursor .fo i{position:absolute;translate:-50% -50%;font:900 17cqh/1 var(--disp);font-style:normal;letter-spacing:-.045em;white-space:nowrap}
.pv-cursor .w{left:50cqw;top:55cqh;color:#fff;text-shadow:var(--cp-word)}
.pv-cursor .fo{position:absolute;left:calc(50cqw - 15cqh);top:40cqh;width:30cqh;height:30cqh;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 1cqh 3cqh color-mix(in srgb,var(--cp-sh) 35%,transparent);animation:k-cursor-path 4.8s linear infinite -4.48s}
.pv-cursor .fo i{left:15cqh;top:15cqh;color:var(--cp-ink);animation:k-cursor-back 4.8s linear infinite -4.48s}
.pv-cursor .tip{position:absolute;left:50cqw;top:55cqh;width:7.2cqh;height:7.2cqh;margin:-3.6cqh 0 0 -3.6cqh;border-radius:50%;background:var(--cp-ink);box-shadow:var(--cp-tip);animation:k-cursor-path 4.8s linear infinite}
@keyframes k-cursor-path{0%,100%{transform:translate(0,0)}6.25%{transform:translate(9.18cqw,7.07cqh)}12.5%{transform:translate(16.97cqw,10cqh)}18.75%{transform:translate(22.17cqw,7.07cqh)}25%{transform:translate(24cqw,0)}31.25%{transform:translate(22.17cqw,-7.07cqh)}37.5%{transform:translate(16.97cqw,-10cqh)}43.75%{transform:translate(9.18cqw,-7.07cqh)}50%{transform:translate(0,0)}56.25%{transform:translate(-9.18cqw,7.07cqh)}62.5%{transform:translate(-16.97cqw,10cqh)}68.75%{transform:translate(-22.17cqw,7.07cqh)}75%{transform:translate(-24cqw,0)}81.25%{transform:translate(-22.17cqw,-7.07cqh)}87.5%{transform:translate(-16.97cqw,-10cqh)}93.75%{transform:translate(-9.18cqw,-7.07cqh)}}
@keyframes k-cursor-back{0%,100%{transform:translate(0,0)}6.25%{transform:translate(-9.18cqw,-7.07cqh)}12.5%{transform:translate(-16.97cqw,-10cqh)}18.75%{transform:translate(-22.17cqw,-7.07cqh)}25%{transform:translate(-24cqw,0)}31.25%{transform:translate(-22.17cqw,7.07cqh)}37.5%{transform:translate(-16.97cqw,10cqh)}43.75%{transform:translate(-9.18cqw,7.07cqh)}50%{transform:translate(0,0)}56.25%{transform:translate(9.18cqw,-7.07cqh)}62.5%{transform:translate(16.97cqw,-10cqh)}68.75%{transform:translate(22.17cqw,-7.07cqh)}75%{transform:translate(24cqw,0)}81.25%{transform:translate(22.17cqw,7.07cqh)}87.5%{transform:translate(16.97cqw,10cqh)}93.75%{transform:translate(9.18cqw,7.07cqh)}}
/* morphblob: Morphing Blob */
.pv-morphblob .gf{position:absolute;width:0;height:0}
.pv-morphblob .gw{position:absolute;inset:0;filter:url(#pv-morphblob-goo) drop-shadow(0 1.3cqh 0 #000) drop-shadow(0 3cqh 3.6cqh color-mix(in srgb,var(--cp-sh) 40%,transparent))}
.pv-morphblob .gw i{position:absolute;border-radius:50%;background:var(--cp-ink)}
.pv-morphblob .gw b{position:absolute;left:22%;top:16%;width:34%;height:26%;border-radius:50%;background:#fff;rotate:-28deg}
.pv-morphblob .b1{left:calc(46cqw - 15cqh);top:40cqh;width:30cqh;height:30cqh;animation:k-morphblob-b1 6s var(--cp-inout) infinite}
.pv-morphblob .b2{left:calc(55cqw - 11cqh);top:38cqh;width:22cqh;height:22cqh;animation:k-morphblob-b2 6s var(--cp-inout) infinite}
.pv-morphblob .b3{left:calc(38cqw - 9cqh);top:56cqh;width:18cqh;height:18cqh;animation:k-morphblob-b3 6s var(--cp-inout) infinite}
.pv-morphblob .dr{left:calc(50cqw - 7cqh);top:48cqh;width:14cqh;height:14cqh;animation:k-morphblob-drop 6s linear infinite}
.pv-morphblob .tip{position:absolute;left:0;top:0;width:7.2cqh;height:7.2cqh;margin:-3.6cqh 0 0 -3.6cqh;border-radius:50%;background:var(--cp-ink);box-shadow:var(--cp-tip);opacity:0;animation:k-morphblob-tip 6s linear infinite}
@keyframes k-morphblob-b1{0%,100%{transform:translate(0,0)}33%{transform:translate(3cqw,-4cqh)}66%{transform:translate(-2cqw,3cqh)}}
@keyframes k-morphblob-b2{0%,100%{transform:translate(0,0)}30%{transform:translate(11cqw,-9cqh)}55%{transform:translate(5cqw,13cqh)}80%{transform:translate(-3cqw,11cqh)}}
@keyframes k-morphblob-b3{0%,100%{transform:translate(0,0)}40%{transform:translate(-5cqw,5cqh)}70%{transform:translate(2cqw,-3cqh)}}
@keyframes k-morphblob-drop{0%,24%{transform:translate(0,0)}30%{transform:translate(13cqw,2cqh)}38%{transform:translate(21cqw,-7cqh)}46%{transform:translate(28cqw,-14cqh)}52%{transform:translate(32cqw,-9cqh)}60%{transform:translate(33cqw,-5cqh)}66%{transform:translate(26cqw,-3cqh)}72%{transform:translate(14cqw,0)}78%,100%{transform:translate(0,0)}}
@keyframes k-morphblob-tip{0%{transform:translate(88cqw,98cqh) scale(1);opacity:0}12%{transform:translate(84cqw,86cqh) scale(1);opacity:1}24%{transform:translate(69cqw,60cqh) scale(1)}38%{transform:translate(80cqw,36cqh) scale(1)}52%{transform:translate(88cqw,56cqh) scale(1)}60%{transform:translate(88cqw,60cqh) scale(1);opacity:1}72%,100%{transform:translate(92cqw,100cqh) scale(1);opacity:0}}
/* clipreveal: Clip-Path Reveal */
.pv-clipreveal .ph{position:absolute;left:18cqw;top:27cqh;width:64cqw;height:56cqh;border-radius:5cqh;background:#fff;box-shadow:var(--cp-lift)}
.pv-clipreveal .ar{position:absolute;inset:1.8cqh;overflow:hidden;border-radius:3.4cqh;background:color-mix(in srgb,var(--cp-lip) 55%,#fff)}
.pv-clipreveal .win{position:absolute;left:50%;top:50%;width:72cqw;height:72cqw;margin:-36cqw 0 0 -36cqw;overflow:hidden;border-radius:50%;opacity:0;transform:scale(.18);animation:k-clipreveal-win 4.4s linear infinite}
.pv-clipreveal .pic{position:absolute;left:50%;top:50%;width:calc(64cqw - 3.6cqh);height:52.4cqh;margin:-26.2cqh 0 0 calc(1.8cqh - 32cqw);overflow:hidden;background:linear-gradient(170deg,var(--g1),var(--g2));transform:scale(5.556);animation:k-clipreveal-pic 4.4s linear infinite}
.pv-clipreveal .sun{position:absolute;left:60%;top:13%;width:20%;aspect-ratio:1;border-radius:50%;background:#fff}
.pv-clipreveal .hk{position:absolute;left:-18%;right:32%;bottom:-64%;height:112%;border-radius:50%;background:var(--cp-ink)}
.pv-clipreveal .hw{position:absolute;left:42%;right:-30%;bottom:-72%;height:112%;border-radius:50%;background:rgba(255,255,255,.6)}
@keyframes k-clipreveal-win{0%,6.5%{transform:scale(.18);opacity:0}8%{transform:scale(.18)}8.4%{transform:scale(.21)}8.8%{transform:scale(.24)}9.6%{transform:scale(.297);opacity:1}10.4%{transform:scale(.351)}11.2%{transform:scale(.402)}12.8%{transform:scale(.496)}14.4%{transform:scale(.58)}17.6%{transform:scale(.719)}20.8%{transform:scale(.823)}24%{transform:scale(.897)}27.2%{transform:scale(.948)}30.4%{transform:scale(.978)}33.6%{transform:scale(.993)}40%,78%{transform:scale(1);opacity:1}90%,100%{transform:scale(1);opacity:0}}
@keyframes k-clipreveal-pic{0%,8%{transform:scale(5.556)}8.4%{transform:scale(4.754)}8.8%{transform:scale(4.167)}9.6%{transform:scale(3.368)}10.4%{transform:scale(2.849)}11.2%{transform:scale(2.486)}12.8%{transform:scale(2.014)}14.4%{transform:scale(1.724)}17.6%{transform:scale(1.391)}20.8%{transform:scale(1.215)}24%{transform:scale(1.114)}27.2%{transform:scale(1.055)}30.4%{transform:scale(1.023)}33.6%{transform:scale(1.007)}40%,100%{transform:scale(1)}}
/* split: Split Text Reveal */
.pv-split .hd{position:absolute;left:50%;top:53%;translate:-50% -50%;display:flex;gap:.24em;font:900 16cqh/1.1 var(--disp);letter-spacing:-.045em;white-space:nowrap;perspective:42cqw}
.pv-split .hd b{display:block;color:#fff;text-shadow:var(--cp-word);opacity:0;transform:rotateY(90deg);animation:k-split-turn 4.4s infinite;animation-delay:calc(var(--i) * .22s)}
.pv-split .hd b:nth-child(2){color:var(--cp-ink);text-shadow:none}
@keyframes k-split-turn{0%,8%{opacity:0;transform:rotateY(90deg);animation-timing-function:cubic-bezier(.3,1.4,.5,1)}12%{opacity:1}30%,64%{opacity:1;transform:rotateY(0);animation-timing-function:cubic-bezier(.6,0,.8,.4)}76%,100%{opacity:0;transform:rotateY(-90deg)}}
/* blurin: Blur In */
.pv-blurin .vf{position:absolute;left:30cqw;top:26cqh;width:40cqw;height:58cqh}
.pv-blurin .vf i{position:absolute;width:6cqh;height:6cqh;border:0 solid #fff}
.pv-blurin .vf i:nth-child(1){left:0;top:0;border-width:1.1cqh 0 0 1.1cqh;border-top-left-radius:2.4cqh}
.pv-blurin .vf i:nth-child(2){right:0;top:0;border-width:1.1cqh 1.1cqh 0 0;border-top-right-radius:2.4cqh}
.pv-blurin .vf i:nth-child(3){left:0;bottom:0;border-width:0 0 1.1cqh 1.1cqh;border-bottom-left-radius:2.4cqh}
.pv-blurin .vf i:nth-child(4){right:0;bottom:0;border-width:0 1.1cqh 1.1cqh 0;border-bottom-right-radius:2.4cqh}
.pv-blurin .ph{position:absolute;left:35.5cqw;top:31.5cqh;width:29cqw;height:47cqh;animation:k-blurin-drift 4.2s var(--cp-ease) infinite}
.pv-blurin .ph>span{position:absolute;inset:0;overflow:hidden;border:1.5cqh solid #fff;border-radius:4.4cqh;background:linear-gradient(170deg,var(--g1),var(--g2));opacity:0}
.pv-blurin .sf{filter:blur(1.5cqw);animation:k-blurin-soft 4.2s infinite}
.pv-blurin .sh{box-shadow:var(--cp-lift);animation:k-blurin-sharp 4.2s ease-in-out infinite}
.pv-blurin .hd{position:absolute;left:50%;top:22%;width:36%;aspect-ratio:1;margin-left:-18%;border-radius:50%;background:var(--cp-ink)}
.pv-blurin .bd{position:absolute;left:12%;right:12%;bottom:-20%;height:50%;border-radius:50% 50% 0 0;background:var(--cp-ink)}
@keyframes k-blurin-drift{0%,6%{transform:translateY(5cqh)}34%,100%{transform:translateY(0)}}
@keyframes k-blurin-soft{0%,6%{opacity:0}16%,30%{opacity:1}40%,74%{opacity:0}82%{opacity:1}92%,100%{opacity:0}}
@keyframes k-blurin-sharp{0%,14%{opacity:0}34%,74%{opacity:1}82%,100%{opacity:0}}
/* stagger: Stagger Reveal */
.pv-stagger .rail{position:absolute;z-index:5;right:3cqw;top:20cqh;bottom:20cqh;width:1.8cqh;border-radius:1cqh;background:rgba(28,26,36,.2)}
.pv-stagger .rail i{position:absolute;left:0;right:0;top:0;height:20cqh;border-radius:1cqh;background:#fff;box-shadow:0 .5cqh 0 var(--cp-lip)}
.pv-stagger .gp{position:absolute;left:23cqw;top:27cqh;width:54cqw;height:50cqh;--t0:translateY(30cqh);--t1:translateY(0);animation:k-stagger-go 7s var(--cp-inout) infinite}
.pv-stagger .gp i,.pv-stagger .gp b{position:absolute;left:calc(var(--c) * 19cqw);top:calc(var(--r) * 27cqh);width:16cqw;height:23cqh;border-radius:3.6cqh;background:rgba(255,255,255,.24)}
.pv-stagger .gp b{background:#fff;box-shadow:var(--cp-lift);opacity:0;animation:k-stagger-pop 7s infinite;animation-delay:calc(var(--n) * .28s)}
.pv-stagger .gp b::before{content:"";position:absolute;left:2cqw;top:2.6cqh;width:8.4cqh;height:8.4cqh;border-radius:2.4cqh;background:linear-gradient(150deg,var(--g1),var(--g2))}
.pv-stagger .gp b::after{content:"";position:absolute;left:2cqw;right:2.6cqw;bottom:3.2cqh;height:2.8cqh;border-radius:2cqh;background:var(--cp-ink)}
.pv-stagger .gp b:nth-of-type(2n)::before{border-radius:50%}
.pv-stagger .rail i{--t0:translateY(0);--t1:translateY(24cqh);animation:k-stagger-go 7s var(--cp-inout) infinite}
@keyframes k-stagger-go{0%,4%{transform:var(--t0)}20%,84%{transform:var(--t1)}98%,100%{transform:var(--t0)}}
@keyframes k-stagger-pop{0%,20%{opacity:0;transform:scale(.4);animation-timing-function:cubic-bezier(.34,1.56,.64,1)}28%,72%{opacity:1;transform:scale(1);animation-timing-function:cubic-bezier(.55,0,1,.45)}76%,100%{opacity:0;transform:scale(.6)}}
/* hamb: Hamburger Menu Toggle */
.pv-hamb .lip,.pv-hamb .hb{position:absolute;left:17cqw;top:35cqh;width:30cqh;height:30cqh;border-radius:8cqh}
.pv-hamb .lip{background:var(--cp-lip);transform:translateY(2cqh);box-shadow:0 3.6cqh 6cqh color-mix(in srgb,var(--cp-sh) 42%,transparent)}
.pv-hamb .hb{background:#fff;animation:k-hamb-btn 3.6s var(--cp-ease) infinite}
.pv-hamb .hb i{position:absolute;left:50%;top:50%;width:13cqh;height:2.4cqh;margin:-1.2cqh 0 0 -6.5cqh;border-radius:2cqh;background:var(--cp-ink)}
.pv-hamb .hb i:nth-child(1){animation:k-hamb-top 3.6s var(--cp-ease) infinite}
.pv-hamb .hb i:nth-child(2){animation:k-hamb-mid 3.6s var(--cp-ease) infinite}
.pv-hamb .hb i:nth-child(3){animation:k-hamb-bot 3.6s var(--cp-ease) infinite}
.pv-hamb .menu{position:absolute;left:50cqw;top:23cqh;width:33cqw;height:54cqh;display:flex;flex-direction:column;justify-content:center;gap:4.4cqh;padding:0 4cqw;border-radius:4cqh;background:#fff;box-shadow:var(--cp-lift);transform-origin:0 50%;opacity:0;transform:scale(.4);animation:k-hamb-menu 3.6s infinite}
.pv-hamb .menu b{display:flex;align-items:center;gap:2cqw;height:3.6cqh;opacity:0;animation:k-hamb-item 3.6s var(--cp-ease) infinite}
.pv-hamb .menu b::before{content:"";width:3.6cqh;height:3.6cqh;flex:none;border-radius:50%;background:linear-gradient(150deg,var(--g1),var(--g2))}
.pv-hamb .menu b::after{content:"";flex:1;height:2.4cqh;border-radius:2cqh;background:var(--cp-ink)}
.pv-hamb .menu b:nth-child(2){margin-right:5cqw;animation-delay:.07s}
.pv-hamb .menu b:nth-child(3){margin-right:2cqw;animation-delay:.14s}
.pv-hamb .tip{position:absolute;left:calc(17cqw + 21cqh);top:58cqh;width:7.2cqh;height:7.2cqh;margin:-3.6cqh 0 0 -3.6cqh;border-radius:50%;background:var(--cp-ink);box-shadow:var(--cp-tip);animation:k-hamb-tip 3.6s var(--cp-ease) infinite}
@keyframes k-hamb-btn{0%,19%{transform:translateY(0)}23%{transform:translateY(2cqh)}29%,70%{transform:translateY(0)}74%{transform:translateY(2cqh)}80%,100%{transform:translateY(0)}}
@keyframes k-hamb-top{0%,24%{transform:translateY(-4.4cqh) rotate(0deg)}32%{transform:translateY(0) rotate(0deg)}40%{transform:translateY(0) rotate(52deg)}46%,75%{transform:translateY(0) rotate(45deg)}83%{transform:translateY(0) rotate(0deg)}92%,100%{transform:translateY(-4.4cqh) rotate(0deg)}}
@keyframes k-hamb-mid{0%,24%{transform:scaleX(1);opacity:1}30%,84%{transform:scaleX(.2);opacity:0}92%,100%{transform:scaleX(1);opacity:1}}
@keyframes k-hamb-bot{0%,24%{transform:translateY(4.4cqh) rotate(0deg)}32%{transform:translateY(0) rotate(0deg)}40%{transform:translateY(0) rotate(-52deg)}46%,75%{transform:translateY(0) rotate(-45deg)}83%{transform:translateY(0) rotate(0deg)}92%,100%{transform:translateY(4.4cqh) rotate(0deg)}}
@keyframes k-hamb-menu{0%,25%{opacity:0;transform:scale(.4);animation-timing-function:cubic-bezier(.3,1.5,.5,1)}38%,74%{opacity:1;transform:scale(1);animation-timing-function:cubic-bezier(.6,0,.8,.4)}84%,100%{opacity:0;transform:scale(.4)}}
@keyframes k-hamb-item{0%,32%{opacity:0;transform:translateX(-3cqw)}44%,74%{opacity:1;transform:translateX(0)}80%,100%{opacity:0;transform:translateX(0)}}
@keyframes k-hamb-tip{0%{transform:translate(22cqw,26cqh);opacity:0}8%{opacity:1}19%{transform:translate(0,0) scale(1)}23%{transform:translate(0,2cqh) scale(.8)}28%{transform:translate(0,0) scale(1)}38%,62%{transform:translate(10cqw,14cqh) scale(1)}70%{transform:translate(0,0) scale(1)}74%{transform:translate(0,2cqh) scale(.8)}79%{transform:translate(0,0) scale(1)}86%{opacity:1}100%{transform:translate(22cqw,26cqh) scale(1);opacity:0}}
/* glass: Glassmorphism Animated */
.pv-glass .dt{position:absolute;inset:0;background:radial-gradient(circle,rgba(255,255,255,.4) 0 .5cqh,transparent .7cqh) 0 0/5.4cqh 5.4cqh}
.pv-glass .o1{position:absolute;left:calc(27cqw - 17cqh);top:24cqh;width:34cqh;height:34cqh;border-radius:50%;background:#fff;animation:k-glass-o1 6s var(--cp-inout) infinite}
.pv-glass .o2{position:absolute;left:calc(72cqw - 14cqh);top:54cqh;width:28cqh;height:28cqh;border-radius:50%;background:var(--cp-ink);animation:k-glass-o2 6s var(--cp-inout) infinite}
.pv-glass .o3{position:absolute;left:calc(64cqw - 12cqh);top:24cqh;width:24cqh;height:24cqh;border-radius:6cqh;background:var(--g1);animation:k-glass-o3 6s var(--cp-inout) infinite}
.pv-glass .gc{position:absolute;left:27cqw;top:31cqh;width:46cqw;height:50cqh;display:flex;flex-direction:column;justify-content:flex-end;gap:2.6cqh;padding:4.4cqh;border-radius:5cqh;background:rgba(255,255,255,.22);-webkit-backdrop-filter:blur(3.4cqh);backdrop-filter:blur(3.4cqh);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.75),0 3.6cqh 6cqh color-mix(in srgb,var(--cp-sh) 32%,transparent)}
.pv-glass .gc i{display:block;flex:none;height:2.8cqh;border-radius:2cqh}
.pv-glass .gc .av{width:10cqh;height:10cqh;margin-bottom:auto;border-radius:50%;background:#fff;box-shadow:0 .8cqh 0 var(--cp-lip)}
.pv-glass .gc .l1{width:70%;background:var(--cp-ink)}
.pv-glass .gc .l2{width:46%;background:#fff}
@keyframes k-glass-o1{0%,100%{transform:translate(0,0)}50%{transform:translate(3cqw,30cqh)}}
@keyframes k-glass-o2{0%,100%{transform:translate(0,0)}50%{transform:translate(-4cqw,-28cqh)}}
@keyframes k-glass-o3{0%,100%{transform:translate(0,0) rotate(0deg)}50%{transform:translate(-17cqw,2cqh) rotate(90deg)}}
/* tooltip: Tooltip Reveal */
.pv-tooltip .bt{position:absolute;left:50%;top:65%;width:26cqh;height:26cqh;margin:-13cqh 0 0 -13cqh;border-radius:50%;background:#fff;box-shadow:var(--cp-lift)}
.pv-tooltip .bt svg{position:absolute;left:50%;top:50%;width:15cqh;height:15cqh;margin:-7.5cqh 0 0 -7.5cqh;fill:none;stroke:var(--cp-ink)}
.pv-tooltip .tt{position:absolute;left:50%;top:29cqh;padding:3cqh 4.4cqh;border-radius:4cqh;background:var(--cp-ink);font:900 7.4cqh/1 var(--disp);letter-spacing:-.02em;color:#fff;white-space:nowrap;translate:-50% 0;transform-origin:50% 100%;opacity:0;animation:k-tooltip-in 4.4s infinite}
.pv-tooltip .tt::after{content:"";position:absolute;left:50%;bottom:-1.6cqh;width:4.4cqh;height:4.4cqh;margin-left:-2.2cqh;border-radius:.6cqh;background:var(--cp-ink);transform:rotate(45deg)}
.pv-tooltip .tip{position:absolute;left:56cqw;top:72cqh;width:7.2cqh;height:7.2cqh;margin:-3.6cqh 0 0 -3.6cqh;border-radius:50%;background:var(--cp-ink);box-shadow:var(--cp-tip);animation:k-tooltip-tip 4.4s var(--cp-inout) infinite}
@keyframes k-tooltip-in{0%,40%{opacity:0;transform:translateY(2cqh) scale(.86);animation-timing-function:cubic-bezier(.34,1.56,.64,1)}48%,72%{opacity:1;transform:translateY(0) scale(1);animation-timing-function:cubic-bezier(.65,0,.35,1)}80%,100%{opacity:0;transform:translateY(0) scale(.96)}}
@keyframes k-tooltip-tip{0%{transform:translate(24cqw,30cqh);opacity:0}8%{opacity:1}22%,62%{transform:translate(0,0);opacity:1}82%,100%{transform:translate(22cqw,30cqh);opacity:0}}
/* fade: Fade In / Fade Out */
.pv-fade .dlg{position:absolute;left:31cqw;top:27cqh;width:38cqw;height:54cqh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.6cqh;border-radius:5cqh;background:#fff;box-shadow:var(--cp-lift);opacity:0;animation:k-fade-io 4s ease-in-out infinite}
.pv-fade .ic{position:relative;width:14cqh;height:14cqh;flex:none;margin-bottom:.8cqh;border-radius:50%;background:linear-gradient(150deg,var(--g1),var(--g2))}
.pv-fade .ic::before,.pv-fade .ic::after{content:"";position:absolute;left:50%;width:2.4cqh;margin-left:-1.2cqh;border-radius:2cqh;background:#fff}
.pv-fade .ic::before{top:2.6cqh;height:2.4cqh}
.pv-fade .ic::after{top:6cqh;height:5.4cqh}
.pv-fade .l1,.pv-fade .l2{display:block;flex:none;height:2.6cqh;border-radius:2cqh}
.pv-fade .l1{width:62%;background:var(--cp-ink)}
.pv-fade .l2{width:44%;background:var(--cp-lip)}
.pv-fade .bt{display:grid;place-items:center;flex:none;width:58%;height:10.5cqh;margin-top:1.2cqh;border-radius:99cqh;background:var(--cp-ink);font:900 6.4cqh/1 var(--disp);letter-spacing:-.02em;color:#fff}
@keyframes k-fade-io{0%,8%{opacity:0}34%,68%{opacity:1}94%,100%{opacity:0}}
/* gtext: Text Gradient Animation */
.pv-gtext svg{position:absolute;inset:0;width:100%;height:100%}
.pv-gtext text{font-family:var(--disp);font-weight:900;letter-spacing:-.045em}
.pv-gtext .lp{fill:color-mix(in srgb,var(--g2) 62%,#000 38%)}
.pv-gtext .bd{transform-box:fill-box;animation:k-gtext-flow 4s linear infinite}
@keyframes k-gtext-flow{0%{transform:translateX(0)}100%{transform:translateX(-33.3333%)}}
/* hoverbtn: Hover State Animation */
.pv-hoverbtn .sh{position:absolute;left:30cqw;top:66cqh;width:40cqw;height:18cqh;border-radius:50%;background:radial-gradient(closest-side,color-mix(in srgb,var(--cp-sh) 60%,transparent),transparent);opacity:0;animation:k-hoverbtn-sh 4s var(--cp-inout) infinite}
.pv-hoverbtn .cd{position:absolute;left:29cqw;top:27cqh;width:42cqw;height:50cqh;border-radius:4.4cqh;background:#fff;box-shadow:var(--cp-lift);animation:k-hoverbtn-lift 4s infinite}
.pv-hoverbtn .ti,.pv-hoverbtn .ul,.pv-hoverbtn .l1,.pv-hoverbtn .l2{position:absolute;left:3.6cqw;border-radius:2cqh}
.pv-hoverbtn .ti{top:7cqh;width:22cqw;height:3.6cqh;background:var(--cp-ink)}
.pv-hoverbtn .ul{top:13cqh;width:22cqw;height:1.8cqh;background:var(--g2);transform-origin:0 50%;transform:scaleX(0);animation:k-hoverbtn-ul 4s var(--cp-ease) infinite}
.pv-hoverbtn .l1,.pv-hoverbtn .l2{height:2.6cqh;background:var(--cp-lip)}
.pv-hoverbtn .l1{top:22cqh;width:31cqw}
.pv-hoverbtn .l2{top:28.5cqh;width:22cqw}
.pv-hoverbtn .ar{position:absolute;right:3.4cqw;bottom:5cqh;width:12cqh;height:12cqh;border-radius:50%;background:var(--cp-ink);animation:k-hoverbtn-ar 4s var(--cp-ease) infinite}
.pv-hoverbtn .ar::before{content:"";position:absolute;left:3cqh;top:5.35cqh;width:5.6cqh;height:1.3cqh;border-radius:1cqh;background:#fff}
.pv-hoverbtn .ar::after{content:"";position:absolute;left:4.3cqh;top:4.2cqh;width:3.6cqh;height:3.6cqh;border:solid #fff;border-width:1.3cqh 1.3cqh 0 0;border-radius:.4cqh;transform:rotate(45deg)}
.pv-hoverbtn .tip{position:absolute;left:50cqw;top:61cqh;width:7.2cqh;height:7.2cqh;margin:-3.6cqh 0 0 -3.6cqh;border-radius:50%;background:var(--cp-ink);box-shadow:var(--cp-tip);animation:k-hoverbtn-tip 4s var(--cp-inout) infinite}
@keyframes k-hoverbtn-lift{0%,22%{transform:translateY(0) scale(1);animation-timing-function:cubic-bezier(.34,1.56,.64,1)}34%,66%{transform:translateY(-4.4cqh) scale(1.04);animation-timing-function:cubic-bezier(.65,0,.35,1)}80%,100%{transform:translateY(0) scale(1)}}
@keyframes k-hoverbtn-sh{0%,22%{opacity:0;transform:scale(.7)}34%,66%{opacity:1;transform:scale(1.08)}80%,100%{opacity:0;transform:scale(.7)}}
@keyframes k-hoverbtn-ul{0%,26%{transform:scaleX(0)}40%,66%{transform:scaleX(1)}78%,100%{transform:scaleX(0)}}
@keyframes k-hoverbtn-ar{0%,28%{transform:translateX(0)}38%{transform:translateX(2.4cqw)}46%,66%{transform:translateX(1.6cqw)}78%,100%{transform:translateX(0)}}
@keyframes k-hoverbtn-tip{0%{transform:translate(26cqw,30cqh);opacity:0}8%{opacity:1}26%{transform:translate(0,0)}46%{transform:translate(-3cqw,-1cqh)}66%{transform:translate(-1.5cqw,0);opacity:1}86%,100%{transform:translate(24cqw,32cqh);opacity:0}}
/* slidein: Slide In */
.pv-slidein .msg{position:absolute;left:21cqw;top:38cqh;width:58cqw;height:30cqh;display:flex;align-items:center;gap:3.2cqw;padding:0 4cqw 0 2.6cqw;border-radius:5cqh;background:#fff;box-shadow:var(--cp-lift);opacity:0;animation:k-slidein-go 4s infinite}
.pv-slidein .av{position:relative;width:21cqh;height:21cqh;flex:none;overflow:hidden;border-radius:3.4cqh;background:linear-gradient(170deg,var(--g1),var(--g2))}
.pv-slidein .av::before{content:"";position:absolute;right:16%;top:14%;width:30%;aspect-ratio:1;border-radius:50%;background:#fff}
.pv-slidein .av::after{content:"";position:absolute;left:-30%;right:-10%;bottom:-48%;height:86%;border-radius:50%;background:var(--cp-ink)}
.pv-slidein .tx{display:flex;flex-direction:column;gap:2.8cqh;flex:1}
.pv-slidein .tx b{display:block;width:88%;height:3cqh;border-radius:2cqh;background:var(--cp-ink)}
.pv-slidein .tx b+b{width:58%;height:2.6cqh;background:var(--cp-lip)}
.pv-slidein .sp{position:absolute;top:50%;width:16cqw;height:18cqh;margin-top:-9cqh;opacity:0}
.pv-slidein .sp i{position:absolute;height:2.4cqh;border-radius:2cqh;background:rgba(255,255,255,.75)}
.pv-slidein .sp i:nth-child(1){top:0;width:58%}
.pv-slidein .sp i:nth-child(2){top:7.8cqh;width:100%}
.pv-slidein .sp i:nth-child(3){top:15.6cqh;width:40%}
.pv-slidein .s1{right:100%;margin-right:2.4cqw;transform-origin:100% 50%;animation:k-slidein-s1 4s infinite}
.pv-slidein .s1 i{right:0}
.pv-slidein .s2{left:100%;margin-left:2.4cqw;transform-origin:0 50%;animation:k-slidein-s2 4s infinite}
.pv-slidein .s2 i{left:0}
@keyframes k-slidein-go{0%,6%{transform:translateX(-84cqw);opacity:0;animation-timing-function:cubic-bezier(.3,1.32,.5,1)}14%{opacity:1}32%,66%{transform:translateX(0);opacity:1;animation-timing-function:cubic-bezier(.6,0,.85,.35)}78%{opacity:1}86%,100%{transform:translateX(-84cqw);opacity:0}}
@keyframes k-slidein-s1{0%,7%{opacity:0;transform:scaleX(1)}12%,19%{opacity:1;transform:scaleX(1)}30%,100%{opacity:0;transform:scaleX(.2)}}
@keyframes k-slidein-s2{0%,68%{opacity:0;transform:scaleX(.4)}75%,82%{opacity:1;transform:scaleX(1)}86%,100%{opacity:0;transform:scaleX(1)}}
/* skeleton: Skeleton Loader */
.pv-skeleton{--sk:color-mix(in srgb,var(--cp-lip),var(--cp-sh) 18%)}
.pv-skeleton .cd{position:absolute;left:29cqw;top:26cqh;width:42cqw;height:58cqh;border-radius:4cqh;overflow:hidden;background:#fff;box-shadow:var(--cp-lift)}
.pv-skeleton .ly{position:absolute;inset:0}
.pv-skeleton .sk{animation:k-skeleton-pulse 4.8s var(--cp-inout) infinite}
.pv-skeleton .ct{opacity:0;animation:k-skeleton-in 4.8s var(--cp-ease) infinite}
.pv-skeleton .ly i{position:absolute;display:block;background:var(--sk)}
.pv-skeleton .av{left:3.4cqw;top:4cqh;width:10cqh;height:10cqh;border-radius:50%}
.pv-skeleton .n1,.pv-skeleton .n2{left:calc(3.4cqw + 13cqh);border-radius:2cqh}
.pv-skeleton .n1{top:5.2cqh;width:14cqw;height:3cqh}
.pv-skeleton .n2{top:10cqh;width:9cqw;height:2.4cqh}
.pv-skeleton .pc{left:3.4cqw;right:3.4cqw;top:18cqh;height:27cqh;border-radius:2.6cqh;overflow:hidden}
.pv-skeleton .tx{left:3.4cqw;top:49cqh;width:24cqw;height:3cqh;border-radius:2cqh}
.pv-skeleton .ct .av{background:linear-gradient(150deg,var(--g1),var(--g2))}
.pv-skeleton .ct .n1,.pv-skeleton .ct .tx{background:var(--cp-ink)}
.pv-skeleton .ct .n2{background:var(--cp-lip)}
.pv-skeleton .ct .pc{background:linear-gradient(170deg,var(--g1),var(--g2))}
.pv-skeleton .ct .pc::before{content:"";position:absolute;right:14%;top:16%;width:18%;aspect-ratio:1;border-radius:50%;background:#fff}
.pv-skeleton .ct .pc::after{content:"";position:absolute;left:-20%;right:-20%;bottom:-56%;height:100%;border-radius:50%;background:var(--cp-ink)}
@keyframes k-skeleton-pulse{0%,37.5%,100%{opacity:1}18.75%{opacity:.5}}
@keyframes k-skeleton-in{0%,44%{opacity:0;transform:translateY(2cqh)}56%,88%{opacity:1;transform:translateY(0)}96%,100%{opacity:0;transform:translateY(0)}}
/* story: Scrollytelling */
.pv-story .rail{position:absolute;z-index:5;right:3cqw;top:20cqh;bottom:20cqh;width:1.8cqh;border-radius:1cqh;background:rgba(28,26,36,.2)}
.pv-story .rail i{position:absolute;left:0;right:0;top:0;height:20cqh;border-radius:1cqh;background:#fff;box-shadow:0 .5cqh 0 var(--cp-lip)}
.pv-story .po{position:absolute;left:calc(29cqw - 25cqh);top:32cqh;width:50cqh;height:50cqh;border-radius:50%;overflow:hidden;background:linear-gradient(180deg,#fff -25%,var(--g1) 62%);box-shadow:0 0 0 2.6cqh #fff,0 1.3cqh 0 2.6cqh var(--cp-lip),0 4cqh 7cqh 2cqh color-mix(in srgb,var(--cp-sh) 40%,transparent)}
.pv-story .po::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(115deg,rgba(255,255,255,.32) 0 2.6cqh,transparent 2.6cqh 7.6cqh)}
.pv-story .po i{position:absolute;inset:0;opacity:0;animation:k-story-on 6s var(--cp-inout) infinite}
.pv-story .w2{background:linear-gradient(180deg,var(--g1) -35%,var(--g2) 72%);--o0:0;--o1:1;--o2:1}
.pv-story .w3{background:radial-gradient(circle at 30% 34%,#fff 0 .6cqh,transparent .9cqh),radial-gradient(circle at 68% 56%,#fff 0 .5cqh,transparent .8cqh),radial-gradient(circle at 44% 74%,#fff 0 .5cqh,transparent .8cqh),radial-gradient(circle at 74% 28%,#fff 0 .4cqh,transparent .7cqh),radial-gradient(circle at 22% 60%,#fff 0 .4cqh,transparent .7cqh),linear-gradient(180deg,var(--g2) -40%,var(--cp-ink) 58%);--o0:0;--o1:0;--o2:1}
.pv-story .w2 b{position:absolute;left:34%;top:42%;width:15cqh;height:8cqh;border-radius:50%;background:#fff;animation:k-story-fish 6s ease-in-out infinite}
.pv-story .w2 b::before{content:"";position:absolute;right:-4.6cqh;top:50%;margin-top:-3.4cqh;border-right:5.6cqh solid #fff;border-top:3.4cqh solid transparent;border-bottom:3.4cqh solid transparent}
.pv-story .w2 b::after{content:"";position:absolute;left:20%;top:30%;width:1.8cqh;height:1.8cqh;border-radius:50%;background:var(--cp-ink)}
.pv-story .rv{position:absolute;left:calc(29cqw - 1cqh);top:56cqh;width:2cqh;height:2cqh;margin-top:-1cqh;border-radius:50%;box-shadow:10.6cqh -25.6cqh 0 var(--cp-lip),25.6cqh -10.6cqh 0 var(--cp-lip),25.6cqh 10.6cqh 0 var(--cp-lip),10.6cqh 25.6cqh 0 var(--cp-lip),-10.6cqh 25.6cqh 0 var(--cp-lip),-25.6cqh 10.6cqh 0 var(--cp-lip),-25.6cqh -10.6cqh 0 var(--cp-lip),-10.6cqh -25.6cqh 0 var(--cp-lip)}
.pv-story .sc{position:absolute;left:58cqw;width:31cqw;top:45cqh;display:flex;flex-direction:column;gap:8cqh;--s:-30cqh;animation:k-story-go 6s var(--cp-inout) infinite}
.pv-story .cd{position:relative;flex:none;height:22cqh;border-radius:3.6cqh;background:#fff;box-shadow:var(--cp-lift);animation:k-story-on 6s var(--cp-inout) infinite}
.pv-story .q1{--o0:1;--o1:.45;--o2:.45}
.pv-story .q2{--o0:.45;--o1:1;--o2:.45}
.pv-story .q3{--o0:.45;--o1:.45;--o2:1}
.pv-story .cd i{position:absolute;left:2.4cqw;top:3.2cqh;width:6.4cqh;height:6.4cqh;border-radius:50%;background:var(--g1)}
.pv-story .q2 i{background:var(--g2)}
.pv-story .q3 i{background:var(--cp-ink)}
.pv-story .cd b{position:absolute;left:2.4cqw;top:12.4cqh;width:25cqw;height:2.4cqh;border-radius:2cqh;background:var(--cp-lip)}
.pv-story .cd b:nth-of-type(1){left:calc(4cqw + 6.4cqh);top:4.6cqh;width:13cqw;height:3.2cqh;background:var(--cp-ink)}
.pv-story .cd b:nth-of-type(3){top:16.6cqh;width:17cqw}
.pv-story .rail i{--s:20cqh;animation:k-story-go 6s var(--cp-inout) infinite}
@keyframes k-story-go{0%,14%{transform:translateY(0)}30%,46%{transform:translateY(var(--s))}62%,80%{transform:translateY(calc(var(--s) * 2))}96%,100%{transform:translateY(0)}}
@keyframes k-story-on{0%,14%{opacity:var(--o0)}30%,46%{opacity:var(--o1)}62%,80%{opacity:var(--o2)}96%,100%{opacity:var(--o0)}}
@keyframes k-story-fish{0%,100%{transform:translateX(-4cqh)}50%{transform:translateX(4cqh)}}
/* sticky: Sticky Section */
.pv-sticky .rail{position:absolute;right:3cqw;top:20cqh;bottom:20cqh;width:1.8cqh;border-radius:1cqh;background:rgba(28,26,36,.2)}
.pv-sticky .rail i{position:absolute;left:0;right:0;top:0;height:20cqh;border-radius:1cqh;background:#fff;box-shadow:0 .5cqh 0 var(--cp-lip)}
.pv-sticky .intro{position:absolute;left:26cqw;right:30cqw;top:42cqh;display:flex;flex-direction:column;align-items:center;gap:3cqh;animation:k-sticky-intro 6s linear infinite}
.pv-sticky .intro b{width:100%;height:4.6cqh;border-radius:3cqh;background:#fff;box-shadow:var(--cp-word)}
.pv-sticky .intro b+b{width:66%;height:2.8cqh;background:rgba(255,255,255,.6);box-shadow:none}
.pv-sticky .sec{position:absolute;left:8cqw;right:13cqw;top:26cqh;height:58cqh;display:flex;gap:3.6cqw;padding:4.4cqh;border-radius:5cqh;background:#fff;box-shadow:var(--cp-lift);animation:k-sticky-sec 6s linear infinite}
.pv-sticky .pic{position:relative;flex:none;width:36cqw;border-radius:3.2cqh;overflow:hidden;background:linear-gradient(170deg,var(--g1),var(--g2))}
.pv-sticky .pic>i,.pv-sticky .tx{position:absolute;inset:0}
.pv-sticky .p1,.pv-sticky .t1{animation:k-sticky-s1 6s var(--cp-inout) infinite}
.pv-sticky .p2,.pv-sticky .t2{animation:k-sticky-s2 6s var(--cp-inout) infinite}
.pv-sticky .p3,.pv-sticky .t3{animation:k-sticky-s3 6s var(--cp-inout) infinite}
.pv-sticky .sun{position:absolute;right:16%;top:15%;width:28%;aspect-ratio:1;border-radius:50%;background:#fff}
.pv-sticky .hill{position:absolute;left:-22%;right:-22%;bottom:-44%;height:84%;border-radius:50%;background:var(--cp-ink)}
.pv-sticky .p2{display:flex;align-items:flex-end;justify-content:center;gap:8%;padding:0 15% 16%}
.pv-sticky .p2 b{width:19%;height:36%;border-radius:1.6cqh;background:#fff;box-shadow:var(--cp-word)}
.pv-sticky .p2 b+b{height:58%}
.pv-sticky .p2 b+b+b{height:84%;background:var(--cp-ink);box-shadow:none}
.pv-sticky .p3 b{position:absolute;left:50%;top:50%;width:25cqh;height:25cqh;margin:-12.5cqh 0 0 -12.5cqh;border-radius:50%;background:#fff;box-shadow:var(--cp-word)}
.pv-sticky .p3 b::after{content:"";position:absolute;left:37%;top:19%;width:22%;height:44%;border:solid var(--cp-ink);border-width:0 1.9cqh 1.9cqh 0;transform:rotate(45deg)}
.pv-sticky .col{position:relative;flex:1}
.pv-sticky .tx{display:flex;flex-direction:column;gap:2.6cqh;padding-top:1.4cqh}
.pv-sticky .tx b{flex:none;height:2.8cqh;border-radius:2cqh;background:var(--cp-lip)}
.pv-sticky .tx b:first-child{height:4.6cqh;margin-bottom:1cqh;background:var(--cp-ink)}
.pv-sticky .dots{position:absolute;left:0;bottom:1cqh;display:flex;gap:2cqh}
.pv-sticky .dots i{width:3.8cqh;height:3.8cqh;border-radius:50%;background:var(--cp-lip)}
.pv-sticky .dots b{position:absolute;left:0;top:0;width:3.8cqh;height:3.8cqh;border-radius:50%;background:var(--cp-ink);animation:k-sticky-dot 6s var(--cp-inout) infinite}
.pv-sticky .rail i{animation:k-sticky-thumb 6s linear infinite}
@keyframes k-sticky-intro{0%,5%{transform:translateY(0)}17%{transform:translateY(-60cqh)}17.1%,75%{transform:translateY(60cqh)}87%,100%{transform:translateY(0)}}
@keyframes k-sticky-sec{0%,5%{transform:translateY(60cqh);opacity:1}17%,75%{transform:translateY(0);opacity:1}82%{opacity:1}87%{transform:translateY(-60cqh);opacity:0}87.1%,89%{transform:translateY(60cqh);opacity:0}97%,100%{transform:translateY(60cqh);opacity:1}}
@keyframes k-sticky-s1{0%,33%{transform:translateY(0);opacity:1}37%,87%{transform:translateY(-5cqh);opacity:0}87.1%,100%{transform:translateY(0);opacity:1}}
@keyframes k-sticky-s2{0%,33%{transform:translateY(6cqh);opacity:0;animation-timing-function:cubic-bezier(.34,1.56,.64,1)}38%,52%{transform:translateY(0);opacity:1}56%,100%{transform:translateY(-5cqh);opacity:0}}
@keyframes k-sticky-s3{0%,52%{transform:translateY(6cqh);opacity:0;animation-timing-function:cubic-bezier(.34,1.56,.64,1)}57%,87%{transform:translateY(0);opacity:1}87.1%,100%{transform:translateY(6cqh);opacity:0}}
@keyframes k-sticky-dot{0%,33%{transform:translateX(0)}37%,52%{transform:translateX(5.8cqh)}56%,87%{transform:translateX(11.6cqh)}87.1%,100%{transform:translateX(0)}}
@keyframes k-sticky-thumb{0%,5%{transform:translateY(0)}87%{transform:translateY(40cqh);animation-timing-function:cubic-bezier(.65,0,.35,1)}97%,100%{transform:translateY(0)}}
/* hideheader: Hide-on-Scroll Header */
.pv-hideheader .rail{position:absolute;right:3cqw;top:20cqh;bottom:20cqh;width:1.8cqh;border-radius:1cqh;background:rgba(28,26,36,.2)}
.pv-hideheader .rail i{position:absolute;left:0;right:0;top:0;height:20cqh;border-radius:1cqh;background:#fff;box-shadow:0 .5cqh 0 var(--cp-lip)}
.pv-hideheader .ph{position:absolute;left:31cqw;width:36cqw;top:24cqh;bottom:-8cqh;overflow:hidden;border-radius:5cqh;background:#fff;box-shadow:var(--cp-lift)}
.pv-hideheader .pg{display:flex;flex-direction:column;gap:2.6cqh;padding:18cqh 3.4cqw 0;--d:-54cqh;animation:k-hideheader-move 5s var(--cp-inout) infinite}
.pv-hideheader .pg b{flex:none;height:2.6cqh;border-radius:2cqh;background:var(--cp-lip)}
.pv-hideheader .pg .h{width:76%;height:4.2cqh;background:var(--cp-ink)}
.pv-hideheader .pg i{position:relative;flex:none;height:22cqh;border-radius:3cqh;overflow:hidden;background:linear-gradient(170deg,var(--g1),var(--g2))}
.pv-hideheader .pg i::before{content:"";position:absolute;right:16%;top:18%;width:7cqh;height:7cqh;border-radius:50%;background:#fff}
.pv-hideheader .pg i::after{content:"";position:absolute;left:-20%;right:20%;bottom:-70%;height:120%;border-radius:50%;background:var(--cp-ink)}
.pv-hideheader .hd{position:absolute;left:0;right:0;top:0;height:13cqh;display:flex;align-items:center;gap:2cqw;padding:0 3.4cqw;background:var(--cp-ink);animation:k-hideheader-bar 5s var(--cp-inout) infinite}
.pv-hideheader .hd::before{content:"";width:5.6cqh;height:5.6cqh;border-radius:50%;background:linear-gradient(150deg,var(--g1),var(--g2))}
.pv-hideheader .hd b{width:30%;height:2.6cqh;border-radius:2cqh;background:#fff}
.pv-hideheader .hd i{margin-left:auto;width:6.4cqh;height:4.6cqh;background:linear-gradient(#fff 0 1.1cqh,transparent 1.1cqh 1.75cqh,#fff 1.75cqh 2.85cqh,transparent 2.85cqh 3.5cqh,#fff 3.5cqh)}
.pv-hideheader .rail i{--d:40cqh;animation:k-hideheader-move 5s var(--cp-inout) infinite}
@keyframes k-hideheader-move{0%,10%{transform:translateY(0)}40%,54%{transform:translateY(var(--d))}82%,100%{transform:translateY(0)}}
@keyframes k-hideheader-bar{0%,11%{transform:translateY(0)}19%,54%{transform:translateY(-105%)}61%,100%{transform:translateY(0)}}
/* ── end of previews ── */
</style>
</head>
<body>
<a class="skip" href="#fx-gallery">Skip to the effects</a>
<header class="wrap top" id="top">
<a class="brand" href="../"><svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><circle class="ring" cx="11.16" cy="20.84" r="6.1"/><circle class="ring" cx="15.12" cy="16.88" r="6.1"/><circle class="ring" cx="18.51" cy="13.49" r="6.1"/><circle class="ball" cx="21.2" cy="10.8" r="6.6"/></svg><span>Animation Handbook</span></a>
<nav class="nav" aria-label="Site">
<a class="lnk" href="../?view=all">Browse all</a>
<a class="lnk" href="./" aria-current="page">Famous effects</a>
<button type="button" class="icon-btn theme-btn" id="theme-toggle" aria-label="Switch between light and dark">
<svg class="i moon" viewBox="0 0 24 24" aria-hidden="true"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
<svg class="i sun" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg>
</button>
<a class="gh" id="gh-stars" href="https://github.com/matinmonshizadeh/animation-handbook" target="_blank" rel="noopener"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z"/></svg><span class="gh-t">GitHub</span> <span class="gh-c" id="gh-star-count"></span></a>
</nav>
</header>
<main class="fx-page">
<div class="fx-head">
<p class="pill">11 effects from well-known websites</p>
<h1 class="h1">Famous effects</h1>
<p class="fx-lede">Effects people admire on well-known websites, the handbook animations that make something similar, and a prompt to build your own.</p>
<p class="fx-legal">The Animation Handbook is not connected to any of these sites or their owners, and none of them has reviewed or approved this page. Each effect is described in our own words and shown only with the handbook's own demos.</p>
</div>
<section class="fx-gallery" id="fx-gallery" aria-labelledby="fx-gallery-t">
<h2 class="sr" id="fx-gallery-t">All effects</h2>
<ul class="fx-grid" role="list">
<li class="tile" data-fx-tile="stripe-ribbon">
<div class="t-stage">
<div class="gp gp-ribbon" aria-hidden="true"><i class="rb rb1"></i><i class="rb rb2"></i><i class="rb rb3"></i><div class="rw"><svg class="la" viewBox="0 0 160 100"><path class="a" d="M-30 15C10 9 50 43.4 80 47.8"/><path class="a" d="M-30 19.1C10 13.8 50 43.7 80 48.1"/><path class="a" d="M-30 23.3C10 23.8 50 44.1 80 48.4"/><path class="b" d="M-30 27.5C10 28.6 50 44.4 80 48.7"/><path class="b" d="M-30 37C10 33.3 50 44.7 80 49.1"/><path class="b" d="M-30 41.2C10 38.1 50 45 80 49.4"/><path class="b" d="M-30 45.3C10 42.8 50 50.6 80 49.7"/><path class="c" d="M-30 49.5C10 47.6 50 51 80 50"/><path class="c" d="M-30 53.7C10 57.6 50 51.3 80 50.3"/><path class="c" d="M-30 57.9C10 62.4 50 51.6 80 50.6"/><path class="c" d="M-30 67.3C10 67.1 50 51.9 80 50.9"/><path class="c" d="M-30 71.5C10 71.9 50 57.5 80 51.3"/><path class="c" d="M-30 75.7C10 76.7 50 57.9 80 51.6"/><path class="d" d="M-30 79.9C10 86.7 50 58.2 80 51.9"/><path class="d" d="M-30 84.1C10 91.4 50 58.5 80 52.2"/></svg><svg class="ra" viewBox="0 0 160 100"><path class="a" d="M80 47.8C110 57.5 150 72.6 190 81.9"/><path class="a" d="M80 48.1C110 55.5 150 68.2 190 76.7"/><path class="a" d="M80 48.4C110 53.6 150 69.1 190 71.4"/><path class="b" d="M80 48.7C110 51.6 150 64.7 190 66.2"/><path class="b" d="M80 49.1C110 54.9 150 60.3 190 60.9"/><path class="b" d="M80 49.4C110 53 150 55.9 190 61"/><path class="b" d="M80 49.7C110 51 150 51.5 190 55.7"/><path class="c" d="M80 50C110 49 150 52.4 190 50.5"/><path class="c" d="M80 50.3C110 47.1 150 48 190 45.2"/><path class="c" d="M80 50.6C110 50.4 150 43.6 190 40"/><path class="c" d="M80 50.9C110 48.4 150 39.2 190 34.7"/><path class="c" d="M80 51.3C110 46.5 150 34.8 190 34.8"/><path class="c" d="M80 51.6C110 44.5 150 30.5 190 29.5"/><path class="d" d="M80 51.9C110 42.6 150 31.3 190 24.3"/><path class="d" d="M80 52.2C110 40.6 150 27 190 19"/></svg><i class="rp"></i></div></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">Loops</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#stripe-ribbon">The twisting ribbon of light</a></h3>
<p class="t-desc">A ribbon of glowing strands slowly twists behind the headline.</p>
<p class="t-foot"><a class="t-site" href="https://stripe.com/" target="_blank" rel="noopener">Seen on stripe.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">3 animations</span></p>
</div>
</li>
<li class="tile" data-fx-tile="apple-scroll">
<div class="t-stage">
<div class="gp gp-visor" aria-hidden="true"><div class="vz"><i class="v-band"></i><i class="v-lens"><span class="fa"><i></i><i></i></span><span class="fb"><i></i><i></i></span></i><i class="v-frame"></i><i class="v-glass"></i></div></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On scroll</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#apple-scroll">The headset that comes apart as you scroll</a></h3>
<p class="t-desc">Its parts rise apart and drift off the top as the body turns to face you.</p>
<p class="t-foot"><a class="t-site" href="https://www.apple.com/apple-vision-pro/" target="_blank" rel="noopener">Seen on apple.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">2 animations</span></p>
</div>
</li>
<li class="tile" data-fx-tile="landonorris-reveal">
<div class="t-stage">
<div class="gp gp-reveal" aria-hidden="true"><div class="rv-a"><i class="rv-o"></i><i class="rv-f"></i><i class="rv-g"></i><i class="rv-t t1"></i><i class="rv-t t2"></i><i class="rv-t t3"></i><i class="rv-n"></i></div><div class="rv-blob"><div class="rv-b"><i class="rv-o"></i><i class="rv-f"></i><i class="rv-g"></i><i class="rv-t t1"></i><i class="rv-t t2"></i><i class="rv-t t3"></i><i class="rv-n"></i></div></div></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On hover</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#landonorris-reveal">The liquid reveal under the pointer</a></h3>
<p class="t-desc">A soft liquid shape follows the pointer and shows a second picture.</p>
<p class="t-foot"><a class="t-site" href="https://landonorris.com/" target="_blank" rel="noopener">Seen on landonorris.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">3 animations</span></p>
</div>
</li>
<li class="tile" data-fx-tile="linear-intro">
<div class="t-stage">
<div class="gp gp-intro" aria-hidden="true"><i class="n7"></i><i class="t n1"></i><i class="t n2"></i><i class="t n3"></i><i class="n4"></i><i class="n5"></i><i class="n6"><b style="--l:2.4cqw;--y:5.2cqh;--w:10cqw;--bar:rgba(110,168,255,.5)"></b><b style="--l:2.4cqw;--y:10cqh;--w:7cqw"></b><b style="--l:17cqw;--y:5.2cqh;--w:20cqw;--h:2.6cqh;--bar:rgba(233,235,243,.9)"></b><b style="--l:17cqw;--y:10.6cqh;--w:40cqw"></b><b style="--l:17cqw;--y:14cqh;--w:28cqw"></b><b style="--l:17cqw;--y:19cqh;--w:13cqw;--h:9cqh;--bar:rgba(110,168,255,.3)"></b><b style="--l:32cqw;--y:19cqh;--w:13cqw;--h:9cqh;--bar:rgba(185,140,255,.3)"></b><b style="--l:47cqw;--y:19cqh;--w:13cqw;--h:9cqh;--bar:rgba(63,214,196,.3)"></b></i></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On load</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#linear-intro">The headline that comes into focus</a></h3>
<p class="t-desc">The headline sharpens out of a soft blur, then the line under it and a picture follow.</p>
<p class="t-foot"><a class="t-site" href="https://linear.app/" target="_blank" rel="noopener">Seen on linear.app <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">3 animations</span></p>
</div>
</li>
<li class="tile" data-fx-tile="apple-menu">
<div class="t-stage">
<div class="gp gp-menu" aria-hidden="true"><div class="mn-pg"><i></i><i></i><i></i></div><div class="mn-bar"><i class="mn-dot"></i><div class="mn-btn"><i></i><i></i><i></i></div></div><div class="mn-panel"><i></i><i></i><i></i><i></i><i></i></div></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On press</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#apple-menu">The menu that drops in, link by link</a></h3>
<p class="t-desc">Press the menu button and the links drop in one after another.</p>
<p class="t-foot"><a class="t-site" href="https://www.apple.com/" target="_blank" rel="noopener">Seen on apple.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">3 animations</span></p>
</div>
</li>
<li class="tile" data-fx-tile="wikipedia-previews">
<div class="t-stage">
<div class="gp gp-wiki" aria-hidden="true"><i class="tx tx1"></i><i class="tx tx2"></i><i class="tx tx3"></i><i class="tx tx4"></i><i class="tx tx5"></i><i class="tx tx6"></i><i class="tx tx7"></i><div class="wk-card"><i class="im"></i><i class="l1"></i><i class="l2"></i><i class="l3"></i></div><i class="wk-ptr"></i></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On hover</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#wikipedia-previews">Link previews</a></h3>
<p class="t-desc">Rest the pointer on a link and a small card with the article's first lines appears.</p>
<p class="t-foot"><a class="t-site" href="https://en.wikipedia.org/wiki/Animation" target="_blank" rel="noopener">Seen on en.wikipedia.org <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">2 animations</span></p>
</div>
</li>
<li class="tile" data-fx-tile="apple-sweep">
<div class="t-stage">
<div class="gp gp-sweep" aria-hidden="true"><i class="sw w1"><i></i></i><i class="sw w2"><i></i></i></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On scroll</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#apple-sweep">The color that sweeps across the headline</a></h3>
<p class="t-desc">A band of color sweeps across the headline as it comes into view.</p>
<p class="t-foot"><a class="t-site" href="https://www.apple.com/iphone-18-pro/" target="_blank" rel="noopener">Seen on apple.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">1 animation</span></p>
</div>
</li>
<li class="tile" data-fx-tile="spotify-cards">
<div class="t-stage">
<div class="gp gp-cards" aria-hidden="true"><div class="cd ca"><i class="ov"></i><i class="cv"><i class="play"></i></i><i class="t1"></i><i class="t2"></i></div><div class="cd cb"><i class="ov"></i><i class="cv"><i class="play"></i></i><i class="t1"></i><i class="t2"></i></div><div class="cd cc"><i class="cv"></i><i class="t1"></i><i class="t2"></i></div><i class="ptr"></i></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On hover</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#spotify-cards">The play button that rises</a></h3>
<p class="t-desc">Point at a card and it lightens while a round play button rises into view.</p>
<p class="t-foot"><a class="t-site" href="https://open.spotify.com/" target="_blank" rel="noopener">Seen on open.spotify.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">2 animations</span></p>
</div>
</li>
<li class="tile" data-fx-tile="youtube-loading">
<div class="t-stage">
<div class="gp gp-load" aria-hidden="true"><div class="ld l-a"><i class="th"><b></b></i><i class="av"><b></b></i><i class="m1"><b></b></i><i class="m2"><b></b></i></div><div class="ld l-b"><i class="th"><b></b></i><i class="av"><b></b></i><i class="m1"><b></b></i><i class="m2"><b></b></i></div><div class="ld l-c"><i class="th"><b></b></i><i class="av"><b></b></i><i class="m1"><b></b></i><i class="m2"><b></b></i></div></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On load</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#youtube-loading">Gray shapes while it loads</a></h3>
<p class="t-desc">Still gray boxes hold each video's place until the real thing swaps in.</p>
<p class="t-foot"><a class="t-site" href="https://www.youtube.com/" target="_blank" rel="noopener">Seen on youtube.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">1 animation</span></p>
</div>
</li>
<li class="tile" data-fx-tile="pudding-chart">
<div class="t-stage">
<div class="gp gp-chart" aria-hidden="true"><i class="tl tl1"></i><i class="tl tl2"></i><i class="tl tl3"></i><i class="tl tl4"></i><i class="tl tl5"></i><i class="mk"></i><i class="bar k1"><i class="mv"><i class="g"></i></i></i><i class="bar k2"><i class="mv"><i class="g"></i></i></i><i class="bar k3"><i class="mv"><i class="g"></i></i></i><i class="bar k4"><i class="mv"><i class="g"></i></i></i><i class="bar k5"><i class="mv"><i class="g"></i></i></i><i class="bar k6"><i class="mv"><i class="g"></i></i></i></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On scroll</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#pudding-chart">The chart that changes as you read</a></h3>
<p class="t-desc">As you read on, the chart stays in view and changes step by step.</p>
<p class="t-foot"><a class="t-site" href="https://pudding.cool/2025/11/democracy/" target="_blank" rel="noopener">Seen on pudding.cool <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">2 animations</span></p>
</div>
</li>
<li class="tile" data-fx-tile="medium-top-bar">
<div class="t-stage">
<div class="gp gp-bar" aria-hidden="true"><div class="tb-frame"><div class="tb-page"><i class="k"></i><i class="h"></i><i class="h s"></i><i class="au"><b></b><b></b></i><i class="im"></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div><div class="tb-bar"><i class="d"></i><i class="t"></i><i class="a"></i><i class="f"></i></div></div></div>
<div class="t-tags"><span class="t-tag">Our version</span><span class="t-tag t-start">On scroll</span></div>
</div>
<div class="t-meta">
<h3 class="t-title"><a href="#medium-top-bar">The top bar that hides while you read</a></h3>
<p class="t-desc">Scroll down and the top bar rides up with the text; scroll up and it comes back.</p>
<p class="t-foot"><a class="t-site" href="https://medium.com/" target="_blank" rel="noopener">Seen on medium.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a><span class="t-count">1 animation</span></p>
</div>
</li>
<li class="tile tile-more">
<h3 id="fx-more-t">Seen one we should add?</h3>
<p>Seen an effect on a well-known site that you want explained?</p>
<a class="fx-suggest" href="https://github.com/matinmonshizadeh/animation-handbook/issues/new?template=famous_effect.yml" target="_blank" rel="noopener">Suggest it on GitHub<span class="sr"> (opens in a new tab)</span></a>
<p class="fx-note">Each entry was checked on its live site in the year shown; a site may have changed since.</p>
</li>
</ul>
</section>
<div class="fx-list">
<section class="fx" id="stripe-ribbon" aria-labelledby="stripe-ribbon-t" data-fx-site="Stripe" data-fx-start="loop">
<p class="fx-seen">Seen on <a href="https://stripe.com/" target="_blank" rel="noopener">stripe.com<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="stripe-ribbon-t" tabindex="-1">The twisting ribbon of light</h2>
<p class="fx-chips"><span class="fx-chip">Loops</span><span class="fx-chip">Made from 3 animations</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: The twisting ribbon of light" data-src="versions/stripe-ribbon.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="pause">Pause</button>
<p class="fx-phint">Built from the prompt below. It moves by itself.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">Behind the headline, a wide ribbon made of fine strands of glowing color slowly twists in depth, some strands sharp and others soft, as if filmed by a camera, under a fine grain. Before 2026 the same place held a flat band of blended colors that flowed like slow paint, the look <a href="../animations/07-ambient-background/mesh-gradient/">Mesh Gradient Animation</a> makes.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>It moves on its own, and pauses when it is off screen.</dd></div>
<div><dt>On phones</dt><dd>A lighter version is drawn.</dd></div>
<div><dt>Reduced motion</dt><dd>A still picture of the ribbon is shown.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c7" data-slug="aurora"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The soft light</span></div><div class="meta"><h4 class="title"><a href="../animations/07-ambient-background/aurora/">Aurora / Northern Lights</a></h4><p class="desc">Blurred bands of light sway like the northern lights. Best for dark backgrounds.</p></div></article>
<article class="card c7" data-slug="grain-overlay"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The grain</span></div><div class="meta"><h4 class="title"><a href="../animations/07-ambient-background/grain-overlay/">Grain / Film Noise Overlay</a></h4><p class="desc">Fine grain flickers over the page, like old film. Best for editorial sites.</p></div></article>
<article class="card c6" data-slug="webgl-shader-animation"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">On the chip</span></div><div class="meta"><h4 class="title"><a href="../animations/06-3d-advanced/webgl-shader-animation/">WebGL Shader Animation</a></h4><p class="desc">Moving color patterns computed for every pixel. Best for bold backgrounds.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a slowly twisting ribbon of colored light behind <mark>[the heading at the top of your page]</mark>. Draw one wide ribbon of fine strands in three or four of your own colors that drifts and turns in depth, so some strands come into sharp focus while others blur, like a camera with a shallow focus, and lay a fine grain over it so the colors feel printed rather than flat. Keep the movement slow and the heading readable on every color it passes. Draw it on the graphics chip, show a still picture of it until it is ready, and pause it when it is off screen. On phones, draw a lighter version. If the visitor has reduced motion turned on, show the still picture.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for The twisting ribbon of light"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://stripe.com/" target="_blank" rel="noopener">Watch the real one on stripe.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="apple-scroll" aria-labelledby="apple-scroll-t" data-fx-site="Apple" data-fx-start="scroll">
<p class="fx-seen">Seen on <a href="https://www.apple.com/apple-vision-pro/" target="_blank" rel="noopener">apple.com/apple-vision-pro<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="apple-scroll-t" tabindex="-1">The headset that comes apart as you scroll</h2>
<p class="fx-chips"><span class="fx-chip">Starts on scroll</span><span class="fx-chip">Made from 2 animations</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: The headset that comes apart as you scroll" data-src="versions/apple-scroll.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="play">Play</button>
<button type="button" class="fx-pbtn" data-fx-cmd="top">Back to top</button>
<p class="fx-phint">Built from the prompt below. Scroll inside the box, or press Play.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">About two thirds of the way down the page, the headset comes up from below as a stack of its parts. As you scroll, the parts rise apart and drift off the top while the body swings up behind them and turns to face you, its two lenses in the middle, with a short caption underneath. Scrolling back reverses it.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>Scrolling through the section plays it, forward and back.</dd></div>
<div><dt>On phones</dt><dd>Touch scrolling drives it the same way.</dd></div>
<div><dt>Reduced motion</dt><dd>A few still pictures with their text are shown instead.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c1" data-slug="scrub-animation"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Scroll plays it</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/scrub-animation/">Scrub Animation</a></h4><p class="desc">Scroll plays it forward and back, like dragging a video. Best for product tours.</p></div></article>
<article class="card c1" data-slug="pin-animation"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">It stays put</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/pin-animation/">Pin Animation</a></h4><p class="desc">One part stays put while its text changes on scroll. Best for feature lists.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a scroll-driven product reveal to <mark>[your product section]</mark>. In a section a few screens tall, bring the product up from below as a stack of its parts, and let the scroll lift the parts apart and carry them off the top while the body swings up behind them and turns to face the visitor, ending in the middle with a short headline and paragraph under it. Move it slightly slower than the page, and tie it to the scroll position so scrolling up plays it backward. Show a still picture until it is ready, and give the product a text description for screen readers. Touch scrolling drives it the same way. If the visitor has reduced motion turned on, show a few still pictures with their text instead.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for The headset that comes apart as you scroll"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://www.apple.com/apple-vision-pro/" target="_blank" rel="noopener">Watch the real one on apple.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="landonorris-reveal" aria-labelledby="landonorris-reveal-t" data-fx-site="Lando Norris" data-fx-start="hover">
<p class="fx-seen">Seen on <a href="https://landonorris.com/" target="_blank" rel="noopener">landonorris.com<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="landonorris-reveal-t" tabindex="-1">The liquid reveal under the pointer</h2>
<p class="fx-chips"><span class="fx-chip">Starts on hover</span><span class="fx-chip">Made from 3 animations</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: The liquid reveal under the pointer" data-src="versions/landonorris-reveal.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="show">Show me</button>
<p class="fx-phint">Built from the prompt below. Point at it, or press Show me.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">A large portrait stands in the middle of the screen. Wherever the pointer moves across his head, a soft, liquid-looking blob shows a second picture through it, his racing helmet, as if the portrait were being wiped away.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>Moving the pointer over the picture.</dd></div>
<div><dt>On phones</dt><dd>A finger dragged across the picture does the same.</dd></div>
<div><dt>Reduced motion</dt><dd>A plain circle shows at the pointer, without the wobble or the lag.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c4" data-slug="cursor-follower"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Follows the pointer</span></div><div class="meta"><h4 class="title"><a href="../animations/04-micro-interactions/cursor-follower/">Cursor Follower</a></h4><p class="desc">A dot trails your pointer and flips the colors under it. Best for portfolios.</p></div></article>
<article class="card c6" data-slug="morphing-blob"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The liquid shape</span></div><div class="meta"><h4 class="title"><a href="../animations/06-3d-advanced/morphing-blob/">Morphing Blob</a></h4><p class="desc">Blobs melt together, and one drop chases your pointer. Best for hero sections.</p></div></article>
<article class="card c2" data-slug="clip-path-reveal"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The hidden picture</span></div><div class="meta"><h4 class="title"><a href="../animations/02-entrance-and-exit/clip-path-reveal/">Clip-Path Reveal</a></h4><p class="desc">A growing shape uncovers it while it stays still. Best for images and banners.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a liquid reveal to <mark>[the picture at the top of your page, with a second picture hidden under it]</mark>. Stack the two pictures exactly. Wherever the pointer goes, a soft, round blob follows a little behind it, wobbling and stretching with its speed, and the hidden picture shows through the blob, as if the top picture were being wiped away. Let the blob shrink away when the pointer stops or leaves. Draw the mask on the graphics chip or with a clip, never by resizing the pictures, so it stays smooth. On touch screens, let a finger dragged across the picture do the same. If the visitor has reduced motion turned on, show a plain circle at the pointer, without the wobble or the lag.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for The liquid reveal under the pointer"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://landonorris.com/" target="_blank" rel="noopener">Watch the real one on landonorris.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="linear-intro" aria-labelledby="linear-intro-t" data-fx-site="Linear" data-fx-start="load">
<p class="fx-seen">Seen on <a href="https://linear.app/" target="_blank" rel="noopener">linear.app<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="linear-intro-t" tabindex="-1">The headline that comes into focus</h2>
<p class="fx-chips"><span class="fx-chip">Starts on load</span><span class="fx-chip">Made from 3 animations</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: The headline that comes into focus" data-src="versions/linear-intro.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="replay">Replay</button>
<p class="fx-phint">Built from the prompt below. Press Replay to see it again.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">As the page opens, the headline fades in while it rises a little and sharpens out of a soft blur, its second line a moment after the first. The line under it follows, then a small link and a large flat picture of the app come in the same way, the picture slowest. On a phone the headline wraps onto more lines, which arrive together.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>As the page opens. The headline is clear within a second; everything ends in about two and a half seconds.</dd></div>
<div><dt>On phones</dt><dd>Use less blur on phones, where it costs more.</dd></div>
<div><dt>Reduced motion</dt><dd>The opening is skipped: everything shows at once.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c2" data-slug="split-text-reveal"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Lines in turn</span></div><div class="meta"><h4 class="title"><a href="../animations/02-entrance-and-exit/split-text-reveal/">Split Text Reveal</a></h4><p class="desc">Text breaks into pieces that appear one after another. Best for headlines.</p></div></article>
<article class="card c2" data-slug="blur-in"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Blur to sharp</span></div><div class="meta"><h4 class="title"><a href="../animations/02-entrance-and-exit/blur-in/">Blur In</a></h4><p class="desc">Comes into focus from a blur, like a camera. Best for featured cards and photos.</p></div></article>
<article class="card c1" data-slug="stagger-reveal"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Part after part</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/stagger-reveal/">Stagger Reveal</a></h4><p class="desc">Items in a group appear one after another as it scrolls in. Best for card grids.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a focus-in opening to <mark>[the headline, the line under it, the buttons and the picture at the top of your page]</mark>. As the page opens, bring in the headline, each line fading in while it rises a little and sharpens out of a soft blur, the second a moment after the first. Then bring in the line under it, the buttons and the picture the same way, each a little later and slower. Let every part start fast and settle gently: the headline is clear within a second and everything ends in about two and a half seconds. Animate only fading, blur and small moves, and use less blur on phones, where it costs more. If the visitor has reduced motion turned on, show everything at once.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for The headline that comes into focus"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://linear.app/" target="_blank" rel="noopener">Watch the real one on linear.app <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="apple-menu" aria-labelledby="apple-menu-t" data-fx-site="Apple" data-fx-start="press">
<p class="fx-seen">Seen on <a href="https://www.apple.com/" target="_blank" rel="noopener">apple.com<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="apple-menu-t" tabindex="-1">The menu that drops in, link by link</h2>
<p class="fx-chips"><span class="fx-chip">Starts on press</span><span class="fx-chip">Made from 3 animations</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: The menu that drops in, link by link" data-src="versions/apple-menu.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="show">Show me</button>
<p class="fx-phint">Built from the prompt below. Press it, or press Show me.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">On a phone, the two-line menu button folds into an X while the menu fills the screen and its links drop into place one after another. On a computer, pointing at a top item opens a panel that grows down from the bar, its links appearing in turn, while the page behind blurs.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>A tap on the menu button. On computers, pointing at a top item or reaching it with the keyboard.</dd></div>
<div><dt>On phones</dt><dd>A tap on the menu button opens the menu over the whole screen.</dd></div>
<div><dt>Reduced motion</dt><dd>The menus show and hide at once, without opening in steps.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c4" data-slug="hamburger-menu-toggle"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The button</span></div><div class="meta"><h4 class="title"><a href="../animations/04-micro-interactions/hamburger-menu-toggle/">Hamburger Menu Toggle</a></h4><p class="desc">Three lines turn into an X as the menu opens. Best for mobile menus.</p></div></article>
<article class="card c1" data-slug="stagger-reveal"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Links in turn</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/stagger-reveal/">Stagger Reveal</a></h4><p class="desc">Items in a group appear one after another as it scrolls in. Best for card grids.</p></div></article>
<article class="card c6" data-slug="glassmorphism-animated"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The blurred page</span></div><div class="meta"><h4 class="title"><a href="../animations/06-3d-advanced/glassmorphism-animated/">Glassmorphism Animated</a></h4><p class="desc">Frosted glass cards blur the colors behind them. Best for cards and panels.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a menu that opens in steps to <mark>[the main menu in your site's header]</mark>. On phones, a tap on the menu button folds its lines into an X while the menu opens to fill the screen, and its links drop a few pixels into place one after another. On computers, pointing at a top item, or reaching it with the keyboard, opens a panel below it the same way while the page behind blurs. Keep the wait between links tiny, so the whole menu is there in about half a second, and close it faster than it opens. Make every opener a real button that tells screen readers whether its menu is open. If the visitor has reduced motion turned on, show and hide the menus at once.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for The menu that drops in, link by link"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://www.apple.com/" target="_blank" rel="noopener">Watch the real one on apple.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="wikipedia-previews" aria-labelledby="wikipedia-previews-t" data-fx-site="Wikipedia" data-fx-start="hover">
<p class="fx-seen">Seen on <a href="https://en.wikipedia.org/wiki/Animation" target="_blank" rel="noopener">en.wikipedia.org/wiki/Animation<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="wikipedia-previews-t" tabindex="-1">Link previews</h2>
<p class="fx-chips"><span class="fx-chip">Starts on hover</span><span class="fx-chip">Made from 2 animations</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: Link previews" data-src="versions/wikipedia-previews.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="show">Show me</button>
<p class="fx-phint">Built from the prompt below. Point at it, or press Show me.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">On any article, rest the pointer on a link and, after about half a second, a small card with the linked article's first lines and picture fades in under the link, rising slightly into place. It stays while the pointer is on it and fades out a moment after the pointer leaves.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>Resting the pointer on a link for a moment, or reaching it with the keyboard.</dd></div>
<div><dt>On phones</dt><dd>There is no hover, so a tap opens the link as usual.</dd></div>
<div><dt>Reduced motion</dt><dd>The card shows and hides without movement.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c4" data-slug="tooltip-reveal"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The pause</span></div><div class="meta"><h4 class="title"><a href="../animations/04-micro-interactions/tooltip-reveal/">Tooltip Reveal</a></h4><p class="desc">A small label fades in after a short pause. Best for icon buttons.</p></div></article>
<article class="card c2" data-slug="fade-in-out"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The fade</span></div><div class="meta"><h4 class="title"><a href="../animations/02-entrance-and-exit/fade-in-out/">Fade In / Fade Out</a></h4><p class="desc">Fades in to appear and fades out to leave. Best for pop-ups and tooltips.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add link previews to <mark>[the links in your articles that point to other pages]</mark>. When the pointer rests on a link for half a second, a small card with the page's title, first sentences and picture fades in below the link, rising into place. It stays while the pointer is on it and fades a moment after the pointer leaves. The wait keeps cards from flashing as the pointer passes by; a card with no room below opens above the link. Animate only the fade and a small rise. Show the same card when keyboard focus reaches the link. On touch screens, which have no hover, let a tap open the link as usual. If the visitor has reduced motion turned on, show and hide the card without movement.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for Link previews"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://en.wikipedia.org/wiki/Animation" target="_blank" rel="noopener">Watch the real one on en.wikipedia.org <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="apple-sweep" aria-labelledby="apple-sweep-t" data-fx-site="Apple" data-fx-start="scroll">
<p class="fx-seen">Seen on <a href="https://www.apple.com/iphone-18-pro/" target="_blank" rel="noopener">apple.com/iphone-18-pro<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="apple-sweep-t" tabindex="-1">The color that sweeps across the headline</h2>
<p class="fx-chips"><span class="fx-chip">Starts on scroll</span><span class="fx-chip">Made from 1 animation</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: The color that sweeps across the headline" data-src="versions/apple-sweep.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="play">Play</button>
<button type="button" class="fx-pbtn" data-fx-cmd="top">Back to top</button>
<p class="fx-phint">Built from the prompt below. Scroll inside the box, or press Play.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">Far down the page, a large headline stays hidden until it rises into the window. Then a soft band of pale blue and aqua travels along both lines from left to right, bringing the letters in as it passes, and fades to plain white. It takes about three seconds, plays once and does not replay when you scroll back.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>When the headline rises into view. It plays once, in about three seconds.</dd></div>
<div><dt>On phones</dt><dd>Touch scrolling brings it into view the same way.</dd></div>
<div><dt>Reduced motion</dt><dd>The headline shows in its plain color, with no sweep.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c5" data-slug="text-gradient-animation"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The color sweep</span></div><div class="meta"><h4 class="title"><a href="../animations/05-text-typography/text-gradient-animation/">Text Gradient Animation</a></h4><p class="desc">Colors flow through the letters while the text stays still. Best for headlines.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a one-time color sweep to <mark>[the main headline of a section]</mark>. Keep the headline hidden until it rises into the window. Then let a soft-edged band of a few of your own colors travel along its letters from left to right at a steady pace, bringing each letter in as it passes, and fading to the headline's plain color within about three seconds. Paint the band inside the letters and move only the band, so the words never shift or blur. Play it once, never again while the visitor reads. Keep the real text for screen readers. Touch scrolling brings it into view the same way. If the visitor has reduced motion turned on, show the headline in its plain color with no sweep.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for The color that sweeps across the headline"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://www.apple.com/iphone-18-pro/" target="_blank" rel="noopener">Watch the real one on apple.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="spotify-cards" aria-labelledby="spotify-cards-t" data-fx-site="Spotify" data-fx-start="hover">
<p class="fx-seen">Seen on <a href="https://open.spotify.com/" target="_blank" rel="noopener">open.spotify.com<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="spotify-cards-t" tabindex="-1">The play button that rises</h2>
<p class="fx-chips"><span class="fx-chip">Starts on hover</span><span class="fx-chip">Made from 2 animations</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: The play button that rises" data-src="versions/spotify-cards.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="show">Show me</button>
<p class="fx-phint">Built from the prompt below. Point at it, or press Show me.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">Point at an album or playlist card and the card lightens a shade while a round play button fades in, rising a few pixels into the cover's bottom corner. It starts the moment the pointer arrives and passes from card to card with no pause. Pointing at the button itself makes it grow slightly and brighten.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>Pointing at a card, or reaching it with the keyboard.</dd></div>
<div><dt>On phones</dt><dd>There is no hover, so the play button is always shown.</dd></div>
<div><dt>Reduced motion</dt><dd>The button shows and hides without movement.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c4" data-slug="hover-state"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The card lightens</span></div><div class="meta"><h4 class="title"><a href="../animations/04-micro-interactions/hover-state/">Hover State Animation</a></h4><p class="desc">Six ways a card can react when you point at it. Best for buttons and cards.</p></div></article>
<article class="card c2" data-slug="slide-in"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The button rises</span></div><div class="meta"><h4 class="title"><a href="../animations/02-entrance-and-exit/slide-in/">Slide In</a></h4><p class="desc">Travels into place from one edge. Best for side panels and notifications.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a hover effect to <mark>[the album or playlist cards in your grid]</mark>. When the pointer enters a card, its background lightens a little and a round play button fades in at the bottom corner of the picture, rising about eight pixels into place within a fifth of a second; when the pointer leaves, both go back. React at once, so moving across the grid feels light, and animate only fading and movement. The button grows slightly and brightens when the pointer is on it. Show the button on keyboard focus too, and always on touch screens, where there is no hover. Name the button for what it plays. If the visitor has reduced motion turned on, show and hide the button without movement.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for The play button that rises"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://open.spotify.com/" target="_blank" rel="noopener">Watch the real one on open.spotify.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="youtube-loading" aria-labelledby="youtube-loading-t" data-fx-site="YouTube" data-fx-start="load">
<p class="fx-seen">Seen on <a href="https://www.youtube.com/" target="_blank" rel="noopener">youtube.com<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="youtube-loading-t" tabindex="-1">Gray shapes while it loads</h2>
<p class="fx-chips"><span class="fx-chip">Starts on load</span><span class="fx-chip">Made from 1 animation</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: Gray shapes while it loads" data-src="versions/youtube-loading.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="replay">Replay</button>
<p class="fx-phint">Built from the prompt below. Press Replay to see it again.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">Before the videos appear, gray boxes and bars in the shapes of pictures, round channel icons and titles fill the page, and they sit perfectly still. When the videos arrive, the whole grid of shapes gives way to the real cards in the same places: the text at once, then the pictures one by one as each finishes loading.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>While the content loads. The shapes leave as the content arrives.</dd></div>
<div><dt>On phones</dt><dd>Fewer shapes are shown, so they fit the screen.</dd></div>
<div><dt>Reduced motion</dt><dd>Everything appears at once, the pictures together with the text.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c4" data-slug="skeleton-loader"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">Gray shapes</span></div><div class="meta"><h4 class="title"><a href="../animations/04-micro-interactions/skeleton-loader/">Skeleton Loader</a></h4><p class="desc">Gray shapes hold the place of content while it loads. Best for feeds and cards.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a loading state to <mark>[the grid or feed whose content loads]</mark>. While the content loads, show still gray shapes where each item will go, in the sizes of what is coming: a picture box, a round avatar and two lines of text. When the content arrives, swap it in for the shapes in exactly the same places, so nothing on the page jumps: the text and avatars at once, then each picture a moment later, one after another, with no fade. Show only as many shapes as fit the screen, fewer on phones. Tell screen readers that the content is loading. If the visitor has reduced motion turned on, show everything at once, the pictures together with the text.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for Gray shapes while it loads"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://www.youtube.com/" target="_blank" rel="noopener">Watch the real one on youtube.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="pudding-chart" aria-labelledby="pudding-chart-t" data-fx-site="The Pudding" data-fx-start="scroll">
<p class="fx-seen">Seen on <a href="https://pudding.cool/2025/11/democracy/" target="_blank" rel="noopener">pudding.cool/2025/11/democracy<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="pudding-chart-t" tabindex="-1">The chart that changes as you read</h2>
<p class="fx-chips"><span class="fx-chip">Starts on scroll</span><span class="fx-chip">Made from 2 animations</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: The chart that changes as you read" data-src="versions/pudding-chart.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="play">Play</button>
<button type="button" class="fx-pbtn" data-fx-cmd="top">Back to top</button>
<p class="fx-phint">Built from the prompt below. Scroll inside the box, or press Play.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">A chart of dots stays on screen while short paragraphs scroll past. As you scroll, the years go by and each year's dots pile up into the chart, the ones the story is about in bright color, and at some paragraphs the dots slide into a new chart; scrolling back undoes each step.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>Each time a new block of text reaches the middle of the screen.</dd></div>
<div><dt>On phones</dt><dd>The chart stays at the top and each block of text slides up below it on a card.</dd></div>
<div><dt>Reduced motion</dt><dd>The steps switch without animating.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c1" data-slug="scrollytelling"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The steps</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/scrollytelling/">Scrollytelling</a></h4><p class="desc">A picture beside the story changes as you read down. Best for data stories.</p></div></article>
<article class="card c1" data-slug="sticky-section"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The chart stays</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/sticky-section/">Sticky Section</a></h4><p class="desc">A section holds still while its content changes. Best for feature tours.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a scrollytelling layout to <mark>[your story or data article]</mark>. Keep a chart or picture fixed on the screen while short blocks of text scroll past it, and change the chart each time a new block reaches the middle of the screen: light up the dots or bars the text talks about and fade the rest, so the words and the chart tell the story together. Change it smoothly, and let scrolling back undo each step. On phones, keep the chart at the top and let each block of text slide up below it on a wide card. Keep every step readable without the chart for screen readers. If the visitor has reduced motion turned on, switch between the steps without animating.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for The chart that changes as you read"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://pudding.cool/2025/11/democracy/" target="_blank" rel="noopener">Watch the real one on pudding.cool <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
<section class="fx" id="medium-top-bar" aria-labelledby="medium-top-bar-t" data-fx-site="Medium" data-fx-start="scroll">
<p class="fx-seen">Seen on <a href="https://medium.com/" target="_blank" rel="noopener">medium.com<span class="sr"> (opens in a new tab)</span></a> in <time datetime="2026-10-22">2026</time></p>
<h2 id="medium-top-bar-t" tabindex="-1">The top bar that hides while you read</h2>
<p class="fx-chips"><span class="fx-chip">Starts on scroll</span><span class="fx-chip">Made from 1 animation</span></p>
<div class="fx-version">
<div class="fx-stage">
<iframe title="Our version: The top bar that hides while you read" data-src="versions/medium-top-bar.html"></iframe>
<span class="fx-vlabel" aria-hidden="true">Our version</span>
</div>
<div class="fx-player">
<button type="button" class="fx-pbtn" data-fx-cmd="play">Play</button>
<button type="button" class="fx-pbtn" data-fx-cmd="top">Back to top</button>
<p class="fx-phint">Built from the prompt below. Scroll inside the box, or press Play.</p>
</div>
</div>
<h3 class="fx-sub">What you see</h3>
<p class="fx-what">On a phone, the top bar moves with your finger. Scroll down into an article and it rides up with the text until it is out of sight; scroll back up, even a little, and it slides down again by the same distance, fully back after a short scroll. On a wide screen the bar just stays where it is.</p>
<h3 class="fx-sub">Good to know</h3>
<dl class="fx-know">
<div><dt>Starts</dt><dd>Scrolling down moves the bar out of sight; scrolling up brings it back by the same amount.</dd></div>
<div><dt>On phones</dt><dd>Touch scrolling works the same way.</dd></div>
<div><dt>Reduced motion</dt><dd>The bar fades out and in instead of moving.</dd></div>
</dl>
<h3 class="fx-sub">Build it with these animations</h3>
<div class="fx-cards">
<article class="card c1" data-slug="hide-on-scroll-header"><div class="stage"><div class="pv" aria-hidden="true"></div><span class="tag">The whole effect</span></div><div class="meta"><h4 class="title"><a href="../animations/01-scroll-based/hide-on-scroll-header/">Hide-on-Scroll Header</a></h4><p class="desc">Scrolling down hides the top bar; scrolling up shows it. Best for mobile pages.</p></div></article>
</div>
<h3 class="fx-sub">A prompt to build something similar</h3>
<div class="fx-pbox"><p class="fx-prompt">Add a top bar that moves with the scroll to <mark>[the header of your article pages]</mark>. Scrolling down, move the bar up by exactly as far as the page moved, until it is out of sight; the moment the reader scrolls up, move it back down by the same amount, so a short scroll brings it fully back. Do this on every scroll step, not after scrolling stops, and never past fully hidden or fully shown. Move it without pushing the text around. Touch scrolling works the same way, and keyboard focus moving into the bar brings it back. If the visitor has reduced motion turned on, fade the bar out and in instead of moving it.</p></div>
<button type="button" class="copy" aria-label="Copy prompt for The top bar that hides while you read"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg><span class="copy-l" aria-live="polite">Copy prompt</span></button>
<a class="fx-real" href="https://medium.com/" target="_blank" rel="noopener">Watch the real one on medium.com <span aria-hidden="true">↗</span><span class="sr"> (opens in a new tab)</span></a>
</section>
</div>
</main>
<footer class="wrap foot">
<a class="brand" href="../"><svg class="mark" viewBox="0 0 32 32" aria-hidden="true"><circle class="ring" cx="11.16" cy="20.84" r="6.1"/><circle class="ring" cx="15.12" cy="16.88" r="6.1"/><circle class="ring" cx="18.51" cy="13.49" r="6.1"/><circle class="ball" cx="21.2" cy="10.8" r="6.6"/></svg><span>Animation Handbook</span></a>
<p class="foot-t">Web animations with live demos and copyable prompts.</p>
<nav class="nav" aria-label="Footer"><a class="lnk" href="https://github.com/matinmonshizadeh/animation-handbook" target="_blank" rel="noopener">GitHub</a><a class="lnk" href="#top">Back to top</a></nav>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite"><span class="ok" aria-hidden="true"><svg class="i" viewBox="0 0 24 24"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span><span class="toast-t"></span></div>
<dialog class="fx-dlg" id="fx-dlg">
<div class="fx-dbar">
<button type="button" class="icon-btn fx-dbtn" data-fx-nav="prev" aria-label="Previous effect"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M15 5l-7 7 7 7"/></svg></button>
<button type="button" class="icon-btn fx-dbtn" data-fx-nav="next" aria-label="Next effect"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 5l7 7-7 7"/></svg></button>
<p class="fx-dnote">Not connected to the site. Everything shown is our own version.</p>
<button type="button" class="icon-btn fx-dbtn fx-dclose" data-fx-close aria-label="Close"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg></button>
</div>
<div class="fx-dbody"></div>
</dialog>
<script>
// The GitHub star count, as on the home page: kept for five minutes, so the page asks GitHub at most once in that time.
(function loadStars(){
const KEY='gh-star-count',TTL=5*60*1000;
function show(n){const el=document.getElementById('gh-star-count');if(el)el.textContent='★ '+Number(n).toLocaleString();}
try{const c=localStorage.getItem(KEY);if(c){const{count,ts}=JSON.parse(c);if(Date.now()-ts<TTL){show(count);return;}}}catch(e){}
fetch('https://api.github.com/repos/matinmonshizadeh/animation-handbook')
.then(r=>r.ok?r.json():Promise.reject()).then(d=>{show(d.stargazers_count);
try{localStorage.setItem(KEY,JSON.stringify({count:d.stargazers_count,ts:Date.now()}));}catch(e){}}).catch(()=>{});
})();
(function(){const btn=document.getElementById('theme-toggle');if(!btn)return;
btn.addEventListener('click',()=>{const next=document.documentElement.dataset.theme==='dark'?'light':'dark';
setTheme(next);try{localStorage.setItem('ah-theme',next);}catch(e){}});})();
const reduceMQ=matchMedia('(prefers-reduced-motion:reduce)'),reduced=()=>reduceMQ.matches;
const dlg=document.getElementById('fx-dlg');
// Opened from disk, a link to a folder shows the browser's list of its files, so there every link to a folder names its
// index.html (the logo, Browse all, this page's own link and the cards), as on the home page.
if(location.protocol==='file:')document.querySelectorAll('a[href]').forEach(a=>{
const href=a.getAttribute('href'),cut=href.search(/[?#]/),path=cut<0?href:href.slice(0,cut);
if(/\/$/.test(path)&&!/^(?:\/|[a-z][a-z0-9+.-]*:)/i.test(path))a.setAttribute('href',path+'index.html'+href.slice(path.length));
});
// ── previews: written by tools/make-famous.mjs from the home page; run it again, never edit by hand ──
const PREVIEWS={
"aurora":{"pv":"aurora","still":0.5,"markup":"<span class=\"st anim\"><\/span><svg class=\"rb\" viewBox=\"0 0 160 100\" preserveAspectRatio=\"none\"><path class=\"r1 anim\" d=\"M-30 46C14 18 50 66 90 38S146 18 190 40\"/><path class=\"r2 anim\" d=\"M-30 30C18 54 56 12 96 30S150 50 190 24\"/><path class=\"r3 anim\" d=\"M-30 58C22 36 58 74 98 52S152 36 190 56\"/><\/svg><span class=\"hz\"><\/span>"},
"grain-overlay":{"pv":"grain2","still":0.5,"markup":"<span class=\"fs\"><span class=\"row\"><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><\/span><span class=\"row rb\"><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><i><\/i><\/span><i class=\"fr f0\"><b class=\"sun\"><\/b><b class=\"hill\"><\/b><\/i><i class=\"fr f1\"><b class=\"sun\"><\/b><b class=\"hill\"><\/b><b class=\"fl anim\"><\/b><\/i><i class=\"fr f2\"><b class=\"sun\"><\/b><b class=\"hill\"><\/b><\/i><\/span><span class=\"gn anim\"><\/span>"},
"webgl-shader-animation":{"pv":"shader","still":0.5,"markup":"<span class=\"fw anim\"><i class=\"cl anim\" style=\"--i:0\"><\/i><i class=\"cl anim\" style=\"--i:1\"><\/i><i class=\"cl anim\" style=\"--i:2\"><\/i><i class=\"cl anim\" style=\"--i:3\"><\/i><i class=\"cl anim\" style=\"--i:4\"><\/i><i class=\"cl anim\" style=\"--i:5\"><\/i><i class=\"cl anim\" style=\"--i:6\"><\/i><i class=\"cl anim\" style=\"--i:7\"><\/i><i class=\"cl anim\" style=\"--i:8\"><\/i><i class=\"cl anim\" style=\"--i:9\"><\/i><i class=\"cl anim\" style=\"--i:10\"><\/i><i class=\"cl anim\" style=\"--i:11\"><\/i><i class=\"cl anim\" style=\"--i:12\"><\/i><i class=\"cl anim\" style=\"--i:13\"><\/i><i class=\"cl anim\" style=\"--i:14\"><\/i><i class=\"cl anim\" style=\"--i:15\"><\/i><i class=\"cl anim\" style=\"--i:16\"><\/i><i class=\"cl anim\" style=\"--i:17\"><\/i><i class=\"cl anim\" style=\"--i:18\"><\/i><i class=\"cl anim\" style=\"--i:19\"><\/i><i class=\"cl anim\" style=\"--i:20\"><\/i><i class=\"cl anim\" style=\"--i:21\"><\/i><i class=\"cl anim\" style=\"--i:22\"><\/i><i class=\"cl anim\" style=\"--i:23\"><\/i><i class=\"cl anim\" style=\"--i:24\"><\/i><i class=\"cl anim\" style=\"--i:25\"><\/i><i class=\"cl anim\" style=\"--i:26\"><\/i><i class=\"cl anim\" style=\"--i:27\"><\/i><i class=\"cl anim\" style=\"--i:28\"><\/i><i class=\"cl anim\" style=\"--i:29\"><\/i><i class=\"cl anim\" style=\"--i:30\"><\/i><i class=\"cl anim\" style=\"--i:31\"><\/i><\/span>"},
"scrub-animation":{"pv":"scrub","still":0.3,"markup":"<svg class=\"rt\" viewBox=\"0 0 160 100\"><path d=\"M29.77 75A58 58 0 0 1 130.23 75\"/><circle cx=\"29.77\" cy=\"75\" r=\"2.2\"/><circle cx=\"130.23\" cy=\"75\" r=\"2.2\"/><\/svg><span class=\"cl\"><i class=\"anim\"><\/i><\/span><span class=\"arm anim\"><svg viewBox=\"0 0 24 24\"><path d=\"M3 4L22 12L3 20L7.5 12Z\"/><path d=\"M7.5 12H20\"/><\/svg><\/span><span class=\"bar\"><b class=\"anim\"><\/b><i class=\"anim\"><\/i><\/span><span class=\"rail\"><i class=\"anim\"><\/i><\/span>"},
"pin-animation":{"pv":"pin","still":0.5,"markup":"<span class=\"bg anim\"><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><b><\/b><\/span><span class=\"ph\"><i class=\"f1 anim\"><\/i><i class=\"f2 anim\"><\/i><i class=\"f3 anim\"><\/i><\/span><span class=\"pn\"><\/span><span class=\"tx\"><span class=\"t1 anim\"><b><\/b><b><\/b><b><\/b><\/span><span class=\"t2 anim\"><b><\/b><b><\/b><b><\/b><\/span><span class=\"t3 anim\"><b><\/b><b><\/b><b><\/b><\/span><\/span><span class=\"dt\"><i class=\"anim\"><\/i><\/span><span class=\"rail\"><i class=\"anim\"><\/i><\/span>"},
"cursor-follower":{"pv":"cursor","still":0.56,"markup":"<span class=\"w\">Portfolio<\/span><span class=\"fo anim\"><i class=\"anim\">Portfolio<\/i><\/span><span class=\"tip anim\"><\/span>"},
"morphing-blob":{"pv":"morphblob","still":0.5,"markup":"<svg class=\"gf\"><filter id=\"pv-morphblob-goo\" primitiveUnits=\"objectBoundingBox\" color-interpolation-filters=\"sRGB\"><feGaussianBlur stdDeviation=\".02 .032\"/><feColorMatrix values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -8\"/><\/filter><\/svg><span class=\"gw\"><i class=\"b1 anim\"><b><\/b><\/i><i class=\"b2 anim\"><b><\/b><\/i><i class=\"b3 anim\"><b><\/b><\/i><i class=\"dr anim\"><b><\/b><\/i><\/span><span class=\"tip anim\"><\/span>"},
"clip-path-reveal":{"pv":"clipreveal","still":0.12,"markup":"<span class=\"ph\"><span class=\"ar\"><span class=\"win anim\"><span class=\"pic anim\"><i class=\"sun\"><\/i><i class=\"hw\"><\/i><i class=\"hk\"><\/i><\/span><\/span><\/span><\/span>"},
"split-text-reveal":{"pv":"split","still":0.21,"markup":"<span class=\"hd\"><b class=\"anim\" style=\"--i:0\">Piece<\/b><b class=\"anim\" style=\"--i:1\">by<\/b><b class=\"anim\" style=\"--i:2\">piece<\/b><\/span>"},
"blur-in":{"pv":"blurin","still":0.24,"markup":"<span class=\"vf\"><i><\/i><i><\/i><i><\/i><i><\/i><\/span><span class=\"ph anim\"><span class=\"sf anim\"><i class=\"hd\"><\/i><i class=\"bd\"><\/i><\/span><span class=\"sh anim\"><i class=\"hd\"><\/i><i class=\"bd\"><\/i><\/span><\/span>"},
"stagger-reveal":{"pv":"stagger","still":0.35,"markup":"<span class=\"gp anim\"><i style=\"--c:0;--r:0\"><\/i><i style=\"--c:1;--r:0\"><\/i><i style=\"--c:2;--r:0\"><\/i><i style=\"--c:0;--r:1\"><\/i><i style=\"--c:1;--r:1\"><\/i><i style=\"--c:2;--r:1\"><\/i><b class=\"anim\" style=\"--c:0;--r:0;--n:0\"><\/b><b class=\"anim\" style=\"--c:1;--r:0;--n:1\"><\/b><b class=\"anim\" style=\"--c:2;--r:0;--n:2\"><\/b><b class=\"anim\" style=\"--c:0;--r:1;--n:3\"><\/b><b class=\"anim\" style=\"--c:1;--r:1;--n:4\"><\/b><b class=\"anim\" style=\"--c:2;--r:1;--n:5\"><\/b><\/span><span class=\"rail\"><i class=\"anim\"><\/i><\/span>"},
"hamburger-menu-toggle":{"pv":"hamb","still":0.55,"markup":"<span class=\"menu anim\"><b class=\"anim\"><\/b><b class=\"anim\"><\/b><b class=\"anim\"><\/b><\/span><span class=\"lip\"><\/span><span class=\"hb anim\"><i class=\"anim\"><\/i><i class=\"anim\"><\/i><i class=\"anim\"><\/i><\/span><span class=\"tip anim\"><\/span>"},
"glassmorphism-animated":{"pv":"glass","still":0.5,"markup":"<span class=\"dt\"><\/span><b class=\"o1 anim\"><\/b><b class=\"o2 anim\"><\/b><b class=\"o3 anim\"><\/b><span class=\"gc\"><i class=\"av\"><\/i><i class=\"l1\"><\/i><i class=\"l2\"><\/i><\/span>"},
"tooltip-reveal":{"pv":"tooltip","still":0.56,"markup":"<span class=\"bt\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"12\" r=\"8\" stroke-width=\"4.4\" stroke-dasharray=\"3.1 3.18\"/><circle cx=\"12\" cy=\"12\" r=\"6\" stroke-width=\"3.6\"/><\/svg><\/span><span class=\"tt anim\">Settings<\/span><span class=\"tip anim\"><\/span>"},
"fade-in-out":{"pv":"fade","still":0.5,"markup":"<span class=\"dlg anim\"><i class=\"ic\"><\/i><b class=\"l1\"><\/b><b class=\"l2\"><\/b><em class=\"bt\">OK<\/em><\/span>"},
"text-gradient-animation":{"pv":"gtext","still":0.5,"markup":"<svg viewBox=\"0 0 160 100\"><defs><clipPath id=\"pvGtextClip\"><text x=\"80\" y=\"70\" text-anchor=\"middle\" font-size=\"47\">Flow<\/text><\/clipPath><linearGradient id=\"pvGtextGrad\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" x2=\"160\" spreadMethod=\"repeat\"><stop offset=\"0\" stop-color=\"#4d8dff\"/><stop offset=\".26\" stop-color=\"#3ad17a\"/><stop offset=\".5\" stop-color=\"#b57bff\"/><stop offset=\".76\" stop-color=\"#ffa04d\"/><stop offset=\"1\" stop-color=\"#4d8dff\"/><\/linearGradient><\/defs><text class=\"lp\" x=\"80\" y=\"71.2\" text-anchor=\"middle\" font-size=\"47\">Flow<\/text><g clip-path=\"url(#pvGtextClip)\"><rect class=\"bd anim\" x=\"-160\" y=\"0\" width=\"480\" height=\"100\" fill=\"url(#pvGtextGrad)\"/><\/g><\/svg>"},
"hover-state":{"pv":"hoverbtn","still":0.5,"markup":"<span class=\"sh anim\"><\/span><span class=\"cd anim\"><i class=\"ti\"><\/i><i class=\"ul anim\"><\/i><i class=\"l1\"><\/i><i class=\"l2\"><\/i><i class=\"ar anim\"><\/i><\/span><span class=\"tip anim\"><\/span>"},
"slide-in":{"pv":"slidein","still":0.2,"markup":"<span class=\"msg anim\"><span class=\"sp s1 anim\"><i><\/i><i><\/i><i><\/i><\/span><i class=\"av\"><\/i><span class=\"tx\"><b><\/b><b><\/b><\/span><span class=\"sp s2 anim\"><i><\/i><i><\/i><i><\/i><\/span><\/span>"},
"skeleton-loader":{"pv":"skeleton","still":0.37,"markup":"<span class=\"cd\"><span class=\"ly sk anim\"><i class=\"av\"><\/i><i class=\"n1\"><\/i><i class=\"n2\"><\/i><i class=\"pc\"><\/i><i class=\"tx\"><\/i><\/span><span class=\"ly ct anim\"><i class=\"av\"><\/i><i class=\"n1\"><\/i><i class=\"n2\"><\/i><i class=\"pc\"><\/i><i class=\"tx\"><\/i><\/span><\/span>"},
"scrollytelling":{"pv":"story","still":0.4,"markup":"<span class=\"po\"><i class=\"w2 anim\"><b class=\"anim\"><\/b><\/i><i class=\"w3 anim\"><\/i><\/span><span class=\"rv\"><\/span><span class=\"sc anim\"><span class=\"cd q1 anim\"><i><\/i><b><\/b><b><\/b><b><\/b><\/span><span class=\"cd q2 anim\"><i><\/i><b><\/b><b><\/b><b><\/b><\/span><span class=\"cd q3 anim\"><i><\/i><b><\/b><b><\/b><b><\/b><\/span><\/span><span class=\"rail\"><i class=\"anim\"><\/i><\/span>"},
"sticky-section":{"pv":"sticky","still":0.45,"markup":"<span class=\"intro anim\"><b><\/b><b><\/b><\/span><span class=\"sec anim\"><span class=\"pic\"><i class=\"p1 anim\"><b class=\"sun\"><\/b><b class=\"hill\"><\/b><\/i><i class=\"p2 anim\"><b><\/b><b><\/b><b><\/b><\/i><i class=\"p3 anim\"><b><\/b><\/i><\/span><span class=\"col\"><span class=\"tx t1 anim\"><b style=\"width:84%\"><\/b><b style=\"width:100%\"><\/b><b style=\"width:88%\"><\/b><b style=\"width:56%\"><\/b><\/span><span class=\"tx t2 anim\"><b style=\"width:60%\"><\/b><b style=\"width:96%\"><\/b><b style=\"width:84%\"><\/b><b style=\"width:70%\"><\/b><\/span><span class=\"tx t3 anim\"><b style=\"width:74%\"><\/b><b style=\"width:100%\"><\/b><b style=\"width:78%\"><\/b><b style=\"width:46%\"><\/b><\/span><span class=\"dots\"><i><\/i><i><\/i><i><\/i><b class=\"anim\"><\/b><\/span><\/span><\/span><span class=\"rail\"><i class=\"anim\"><\/i><\/span>"},
"hide-on-scroll-header":{"pv":"hideheader","still":0.145,"markup":"<span class=\"ph\"><span class=\"pg anim\"><b class=\"h\"><\/b><b style=\"width:100%\"><\/b><b style=\"width:90%\"><\/b><i><\/i><b style=\"width:100%\"><\/b><b style=\"width:94%\"><\/b><b style=\"width:70%\"><\/b><b class=\"h\"><\/b><b style=\"width:100%\"><\/b><b style=\"width:86%\"><\/b><i><\/i><b style=\"width:100%\"><\/b><b style=\"width:78%\"><\/b><\/span><span class=\"hd anim\"><b><\/b><i><\/i><\/span><\/span><span class=\"rail\"><i class=\"anim\"><\/i><\/span>"}
};
// ── end of previews ──
// Each card shows its animation's preview from the home page. It plays while the card is on screen (on phones, while the card
// is in the middle of the screen) and while the card holds keyboard focus; under reduced motion it holds one still, clear frame
// (the point the home page holds it at).
const io='IntersectionObserver' in window?new IntersectionObserver(es=>es.forEach(en=>en.target.classList.toggle('playing',en.isIntersecting)),
matchMedia('(hover:hover)').matches?{threshold:.2}:{rootMargin:'-34% 0px -34% 0px'}):null;
function hold(card,still){
const anims=card.querySelector('.pv').getAnimations({subtree:true});
if(!anims.length)return;
const at=still*anims[0].effect.getTiming().duration;
for(const a of anims)a.currentTime=at;
}
document.querySelectorAll('.fx .card[data-slug]').forEach(card=>{
const p=PREVIEWS[card.dataset.slug],pv=card.querySelector('.pv');
if(!p||!pv)return;
pv.classList.add('pv-'+p.pv);
pv.innerHTML=p.markup;
if(reduced()){hold(card,p.still);return;}
card.addEventListener('focusin',()=>card.classList.add('playing'));
if(io)io.observe(card);else card.classList.add('playing');
});
// The gallery's tiles play their picture while they are in the window (on phones, in the middle of it) and while one holds keyboard
// focus, as the recipe cards do. The pictures are drawn at rest and the style moves them only where motion is allowed, so reduced
// motion needs nothing here.
document.querySelectorAll('.tile[data-fx-tile]').forEach(tile=>{
if(reduced())return;
tile.addEventListener('focusin',()=>tile.classList.add('playing'));
if(io)io.observe(tile);else tile.classList.add('playing');
});
// The prompts: on phones each shows five lines and "Show the full prompt", as on the animation pages.
document.querySelectorAll('.fx-prompt').forEach(p=>{
p.id=p.closest('section.fx').id+'-prompt';
p.classList.add('is-clamped');
const more=document.createElement('button');
more.type='button';more.className='fx-toggle';
more.setAttribute('aria-controls',p.id);more.setAttribute('aria-expanded','false');
more.textContent='Show the full prompt';
more.addEventListener('click',()=>{const open=!p.classList.toggle('is-clamped');more.setAttribute('aria-expanded',String(open));more.textContent=open?'Show less':'Show the full prompt';});
p.after(more);
});
// Copy prompt copies the prompt as shown, brackets included. It reads "Copied" for about two seconds and the home page's
// message shows. Where the browser refuses the clipboard or has none, a hidden text box copies it, as on the animation pages;
// only when that fails too is the prompt selected and the button asks for the copy keys.
// Only the icon and the label's words change: the label is a live region, so a screen reader announces the change, and the
// button's name always starts with what it shows and names its entry.
const ICON_COPY='<svg class="i" viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg>';
const ICON_DONE='<svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg>';
const KEYS=/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent)?'Press ⌘C to copy':'Press Ctrl+C to copy';
const toastEl=document.getElementById('toast'),toastText=toastEl.querySelector('.toast-t');let toastTimer=0,toastClear=0;
function toast(message){
clearTimeout(toastTimer);clearTimeout(toastClear);
toastText.textContent=message;
toastEl.classList.add('show');
toastTimer=setTimeout(()=>{toastEl.classList.remove('show');toastClear=setTimeout(()=>{toastText.textContent='';},300);},2400);
}
function copyState(btn,kind){
const title=btn.closest('section.fx').querySelector('h2').textContent;
clearTimeout(btn._timer);
btn.classList.toggle('done',kind==='done');
btn.querySelector('.i').outerHTML=kind==='done'?ICON_DONE:ICON_COPY;
const label=kind==='done'?'Copied':kind==='keys'?KEYS:'Copy prompt';
btn.querySelector('.copy-l').textContent=label;
btn.setAttribute('aria-label',kind==='done'?'Copied the prompt for '+title:kind==='keys'?KEYS+': the prompt for '+title+' is selected':'Copy prompt for '+title);
if(kind)btn._timer=setTimeout(()=>copyState(btn,''),kind==='done'?2000:4000);
}
// The hidden text box of the animation pages' shared script: it holds the text, is selected and copied, then goes, and
// keyboard focus returns to the button. True when the browser copied.
function copyThroughTextBox(text,btn){
const box=document.createElement('textarea');
box.value=text;
box.setAttribute('readonly','');
box.style.position='fixed';
box.style.top='-1000px';
box.style.opacity='0';
(dlg.open?dlg:document.body).appendChild(box); // a modal dialog makes the rest of the page inert, and an inert text box cannot copy
box.focus({preventScroll:true});
box.select();
box.setSelectionRange(0,box.value.length);
let copied=false;
try{copied=document.execCommand('copy');}catch(err){copied=false;}
box.remove();
btn.focus({preventScroll:true});
return copied;
}
document.querySelectorAll('.fx .copy').forEach(btn=>btn.addEventListener('click',()=>{
const prompt=btn.closest('section.fx').querySelector('.fx-prompt');
const text=prompt.textContent.replace(/\s+/g,' ').trim();
const copied=()=>{
copyState(btn,'done');
toast('Prompt copied. Paste it into your AI assistant.');
};
const fallback=()=>{
if(copyThroughTextBox(text,btn)){copied();return;}
const range=document.createRange();
range.selectNodeContents(prompt);
const sel=getSelection();
sel.removeAllRanges();
sel.addRange(range);
copyState(btn,'keys');
};
const clip=navigator.clipboard;
if(clip&&clip.writeText)clip.writeText(text).then(copied,fallback);else fallback();
}));
// The pop-up. A press on a tile opens its entry in one native dialog: the entry's section is moved into the dialog and put back in the
// list when the dialog closes or another entry takes its place, so its Copy prompt and its prompt toggle keep working. Without scripts,
// or in a browser with no dialog, the list stays on the page and a tile is a link to its entry (the head sets the js class). If the
// set-up or a press fails, the js class goes, the list shows and a tile still jumps to its entry.
function popup(){
const root=document.documentElement;
if(!root.classList.contains('js'))return;
const holder=dlg.querySelector('.fx-dbody'),list=document.querySelector('.fx-list');
const entries=[...list.querySelectorAll(':scope > section.fx')],byId=new Map(entries.map(s=>[s.id,s])),slots=new Map();
const toastHome={parent:toastEl.parentNode,next:toastEl.nextSibling};
// An address this page pushed (not one the visitor arrived at) carries fxPushed, so Close can go back one step.
const pushed=()=>!!(history.state&&history.state.fxPushed);
const live=()=>root.classList.contains('js');
let current=null,fromHistory=false,downOnBackdrop=false;
// Under reduced motion each recipe card holds one clear frame. A card moved into the dialog starts again, so it is held again.
function holdCards(entry){
if(!reduced())return;
entry.querySelectorAll('.card[data-slug]').forEach(card=>{const p=PREVIEWS[card.dataset.slug];if(p)hold(card,p.still);});
}
// An entry's version loads only while its entry is open, in a fresh frame each time (a used frame keeps steps of history).
// The frame is a file of this site, so a command goes to this site's own origin (a page opened from disk has none to name).
function post(frame,cmd){frame.contentWindow.postMessage({fx:cmd},location.protocol==='file:'?'*':location.origin);}
function command(frame,cmd){
if(frame.dataset.ready==='1')post(frame,cmd);
else if(frame.hasAttribute('src'))frame._queued=cmd;
}
function setToggle(btn,cmd){btn.dataset.fxCmd=cmd;btn.textContent=cmd==='pause'?'Pause':'Play';}
function startVersion(entry){
const frame=entry.querySelector('.fx-version iframe');
if(!frame)return;
// a loop's one button is Pause while it runs and Play while it is held (a version of a loop starts held under reduced motion)
if(entry.dataset.fxStart==='loop')entry.querySelectorAll('.fx-player [data-fx-cmd]').forEach(btn=>setToggle(btn,reduced()?'play':'pause'));
frame.addEventListener('load',()=>{
frame.dataset.ready='1';
if(frame._queued){post(frame,frame._queued);frame._queued=null;}
// Escape closes the pop-up from inside the frame too. The browser draws no focus ring inside a frame, so the stage draws one
// while the frame holds keyboard focus (not after a press of the pointer, as with :focus-visible).
try{
const win=frame.contentWindow,stage=frame.closest('.fx-stage');
let pointer=false;
win.addEventListener('pointerdown',()=>{pointer=true;},true);
win.addEventListener('keydown',e=>{pointer=false;if(e.key==='Escape')dlg.close();},true);
win.addEventListener('focus',()=>{if(!pointer)stage.classList.add('is-focused');});
win.addEventListener('blur',()=>{pointer=false;stage.classList.remove('is-focused');});
}catch(err){}
},{once:true});
frame.src=frame.dataset.src;
}
function stopVersion(entry){
const frame=entry.querySelector('.fx-version iframe');
if(!frame||!frame.hasAttribute('src'))return;
const fresh=frame.cloneNode(false);
fresh.removeAttribute('src');
fresh.removeAttribute('data-ready'); // a copy keeps the attributes of the frame that was loaded
frame.closest('.fx-stage').classList.remove('is-focused');
frame.replaceWith(fresh);
}
function mount(entry){
const slot=document.createComment(entry.id);
entry.before(slot);
slots.set(entry.id,slot);
holder.append(entry);
}
function unmount(entry){
stopVersion(entry);
const slot=slots.get(entry.id);
if(slot){slot.replaceWith(entry);slots.delete(entry.id);}
}
// how: 'push' (a press on a tile: a new step in the history), 'replace' (Previous and Next: the same step) or 'none' (the address
// already names the entry: arriving at it, or Back and Forward landing on it).
function openEntry(id,how){
const entry=byId.get(id);
if(!entry)return;
const same=entry===current;
if(!same){
if(current)unmount(current);
current=entry;
mount(entry);
}
if(how==='push'){try{history.pushState({fxPushed:true},'','#'+id);}catch(err){}}
else if(how==='replace'){try{history.replaceState({fxPushed:pushed()},'','#'+id);}catch(err){}}
dlg.setAttribute('aria-labelledby',id+'-t');
if(!dlg.open){
root.style.setProperty('--fx-gap',Math.max(0,innerWidth-root.clientWidth)+'px'); // the width of the scrollbar the lock takes away
root.classList.add('fx-open');
dlg.append(toastEl);
dlg.showModal();
}
dlg.scrollTop=0;
if(!same){holdCards(entry);startVersion(entry);}
entry.querySelector('h2').focus({preventScroll:true});
}
function go(step){
const at=entries.indexOf(current);
openEntry(entries[(at+step+entries.length)%entries.length].id,'replace');
}
// If the pop-up cannot open, the page falls back to its list: the js class goes (the list shows) and the page jumps to the entry
// (the address may already name it, so the page does the jump itself).
function fail(id){
root.classList.remove('js','fx-open');
root.style.removeProperty('--fx-gap');
try{if(dlg.open)dlg.close();}catch(err){}
if(current){try{unmount(current);}catch(err){}current=null;}
toastHome.parent.insertBefore(toastEl,toastHome.next);
const entry=byId.get(id);
if(entry){entry.scrollIntoView();entry.querySelector('h2').focus({preventScroll:true});}
}
// Every way of closing (Close, Escape, a press on the backdrop, Back) ends here.
dlg.addEventListener('close',()=>{
const entry=current;
if(!entry)return;
const goBack=pushed(),viaBack=goBack&&!fromHistory;
unmount(entry);
current=null;
root.classList.remove('fx-open');
root.style.removeProperty('--fx-gap');
toastHome.parent.insertBefore(toastEl,toastHome.next);
if(!fromHistory){
if(goBack)history.back();
else try{history.replaceState(null,'',location.pathname+location.search);}catch(err){}
}
fromHistory=false;
const tile=document.querySelector('.fx-grid a[href="#'+entry.id+'"]');
if(!tile)return;
tile.focus();
// history.back() puts the page back where it was when that step was left, and Chrome does that after the popstate: once it
// has, the tile is brought into view again and keeps focus.
if(viaBack){
const at=Date.now();
addEventListener('popstate',()=>setTimeout(()=>{
if(Date.now()-at>3000)return;
tile.closest('.tile').scrollIntoView({block:'nearest'});
if(document.activeElement!==tile)tile.focus({preventScroll:true});
},0),{once:true});
}
});
// The address decides what shows: an entry's name opens it, anything else closes the pop-up.
function sync(){
if(!live())return;
const id=location.hash.slice(1);
try{
if(byId.has(id)){if(byId.get(id)!==current){openEntry(id,'none');setTimeout(keepFocus,0);}}
else if(dlg.open){fromHistory=true;dlg.close();}
}catch(err){fail(id);}
}
addEventListener('popstate',sync);
addEventListener('hashchange',sync);
// A plain press on a link to an entry opens it; a press with Ctrl, Cmd, Shift or Alt, or another button, is left to the browser.
document.addEventListener('click',e=>{
if(!live())return;
const a=e.target.closest('a[href^="#"]');
if(!a||e.button||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;
const id=a.getAttribute('href').slice(1);
if(!byId.has(id))return;
e.preventDefault();
try{openEntry(id,location.hash==='#'+id?'none':'push');}
catch(err){fail(id);}
});
const outside=e=>{const r=dlg.getBoundingClientRect();return e.clientX<r.left||e.clientX>r.right||e.clientY<r.top||e.clientY>r.bottom;};
dlg.addEventListener('pointerdown',e=>{downOnBackdrop=e.target===dlg&&outside(e);});
dlg.addEventListener('click',e=>{
const nav=e.target.closest('[data-fx-nav]');
if(nav){go(nav.dataset.fxNav==='prev'?-1:1);return;}
if(e.target.closest('[data-fx-close]')){dlg.close();return;}
const btn=e.target.closest('.fx-player [data-fx-cmd]');
if(btn){
const cmd=btn.dataset.fxCmd;
command(btn.closest('.fx-version').querySelector('iframe'),cmd);
if(btn.closest('section.fx').dataset.fxStart==='loop')setToggle(btn,cmd==='pause'?'play':'pause');
return;
}
// the second click of a double-click on a tile lands on the backdrop of the pop-up the first one opened: it does not close it
if(e.target===dlg&&downOnBackdrop&&e.detail<2&&outside(e))dlg.close();
downOnBackdrop=false;
});
// An address that names an entry opens it at once. The browser then moves focus to the address's target, which is not a focus
// target (and, on arrival, sits in a modal dialog), so focus is put back on the heading once that is done.
function keepFocus(){if(current&&dlg.open&&!dlg.contains(document.activeElement))current.querySelector('h2').focus({preventScroll:true});}
sync();
if(document.readyState!=='complete')addEventListener('load',keepFocus,{once:true});
}
try{popup();}catch(err){document.documentElement.classList.remove('js');}
</script>
</body>
</html>