jumpersun/framecraft-skills / skills/kinetic-reel
kinetic-reel
Verified用代码制作或修改动态文字主导的产品介绍、技术成果展示、作品集与片头,结合 Canvas 排版、three.js 画面、节拍配乐和 MP4 输出。适用于 kinetic typography 或 motion reel,不用于角色叙事水彩动画。
examples/site-intro/css/intro-reel.css
View on GitHub/* intro-reel.css — the entry page (index.html): the Work Reel ’26 plays full-screen, then replay / enter.
Same visual language as the reel: ink / cream / lime, Anton + JetBrains Mono, HUD corners, beat-timed motion
(120 BPM → 0.5 s beat). Fonts are self-hosted (mainland-China access). */
@font-face { font-family: "Anton"; src: url("../fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
--ink: #0E0F0E; --ink2: #171917; --cream: #F1EEE6; --lime: #DDF53D; --red: #E8412F;
--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
--cond: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
--zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
--expo: cubic-bezier(.16, 1, .3, 1);
--beat: .5s;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--cream); overflow: hidden; }
body { font: 500 14px/1.4 var(--mono); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.reel__stage { position: fixed; inset: 0; }
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--ink); cursor: default; }
body.is-muted .reel__video { cursor: pointer; }
/* a thin lime line runs along the top while the video buffers */
.reel__buffer { position: absolute; top: 0; left: 0; right: 0; height: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; z-index: 4; }
.reel__buffer::before { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--lime); animation: buffer 1s var(--expo) infinite; }
body.is-buffering .reel__buffer { opacity: 1; }
@keyframes buffer { from { left: -30%; } to { left: 100%; } }
/* ---------- during playback: skip + sound ---------- */
.reel__bar {
position: absolute; z-index: 5; left: 50%; top: max(18px, env(safe-area-inset-top));
display: flex; gap: 10px; transform: translate(-50%, -14px); opacity: 0; pointer-events: none;
transition: opacity .6s var(--expo), transform .6s var(--expo);
}
body.is-live .reel__bar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition-delay: .9s; }
body.is-ended .reel__bar { opacity: 0; transform: translate(-50%, -14px); pointer-events: none; transition-delay: 0s; }
.rbtn {
appearance: none; height: 44px; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 0 18px 0 8px;
border: 1px solid rgba(241, 238, 230, .22); border-radius: 999px; cursor: pointer;
background: rgba(14, 15, 14, .52); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
font: 600 11.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--cream);
transition: background .25s, color .25s, border-color .25s, transform .25s var(--expo);
}
.rbtn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.rbtn:active { transform: scale(.97); }
.rbtn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.rbtn__zh { font: 500 12px/1 var(--zh); letter-spacing: .12em; opacity: .7; }
.rbtn__ring { width: 30px; height: 30px; transform: rotate(-90deg); flex: 0 0 auto; }
.rbtn__ring circle { fill: none; stroke-width: 2; }
.rbtn__track { stroke: rgba(241, 238, 230, .18); }
.rbtn__prog { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 81.68; stroke-dashoffset: 81.68; }
.rbtn__chev { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transform-origin: 16px 16px; transition: transform .3s var(--expo); }
.rbtn:hover .rbtn__prog { stroke: var(--ink); }
.rbtn:hover .rbtn__track { stroke: rgba(14, 15, 14, .2); }
.rbtn--skip:hover .rbtn__chev { transform: rotate(90deg) translateY(-2px); }
.rbtn--sound { padding-left: 16px; }
.rbtn__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.rbtn__eq i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; }
body.sound-on .rbtn__eq i { animation: eq var(--beat) ease-in-out infinite alternate; }
body.sound-on .rbtn__eq i:nth-child(2) { animation-delay: -.2s; } body.sound-on .rbtn__eq i:nth-child(3) { animation-delay: -.35s; } body.sound-on .rbtn__eq i:nth-child(4) { animation-delay: -.1s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
/* "tap for sound", only while muted */
.reel__hint {
position: absolute; z-index: 5; left: 50%; top: calc(max(18px, env(safe-area-inset-top)) + 58px); margin: 0;
transform: translateX(-50%); display: flex; gap: 10px; align-items: center; white-space: nowrap;
font: 600 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--lime);
opacity: 0; pointer-events: none; transition: opacity .5s;
}
.reel__hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse calc(var(--beat) * 2) ease-out infinite; }
.reel__hint-zh { font: 500 12px/1 var(--zh); letter-spacing: .12em; color: rgba(221, 245, 61, .75); }
body.is-live.is-muted:not(.is-ended) .reel__hint { opacity: 1; transition-delay: 1.4s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(221, 245, 61, .6); } 100% { box-shadow: 0 0 0 10px rgba(221, 245, 61, 0); } }
/* ---------- end screen ---------- */
.reel__end {
position: absolute; inset: 0; z-index: 6; display: grid; grid-template-rows: auto 1fr auto;
padding: max(40px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));
background: radial-gradient(120% 90% at 50% 58%, #151815 0%, #0B0C0B 62%, #080908 100%);
opacity: 0; visibility: hidden; transition: opacity .6s var(--expo), visibility 0s .6s;
}
.reel__end.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--expo), visibility 0s; }
.reel__field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.reel__corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(241, 238, 230, .85); transform: scale(0); transition: transform .7s var(--expo); }
.reel__corner--tl { top: 40px; left: 40px; border-top-width: 2px; border-left-width: 2px; transform-origin: 0 0; }
.reel__corner--tr { top: 40px; right: 40px; border-top-width: 2px; border-right-width: 2px; transform-origin: 100% 0; }
.reel__corner--bl { bottom: 40px; left: 40px; border-bottom-width: 2px; border-left-width: 2px; transform-origin: 0 100%; }
.reel__corner--br { bottom: 40px; right: 40px; border-bottom-width: 2px; border-right-width: 2px; transform-origin: 100% 100%; }
.reel__end.is-on .reel__corner { transform: scale(1); transition-delay: .15s; }
.reel__meta { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 18px;
font: 600 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: rgba(241, 238, 230, .78);
opacity: 0; transform: translateY(8px); transition: opacity .6s var(--expo), transform .6s var(--expo); }
.reel__meta--top { padding-top: 12px; }
.reel__meta--bottom { padding-bottom: 12px; color: rgba(241, 238, 230, .6); }
.reel__end.is-on .reel__meta { opacity: 1; transform: none; transition-delay: .35s; }
.reel__status { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); }
.reel__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse calc(var(--beat) * 2) ease-out infinite; }
.reel__trace { flex: 1; display: flex; gap: 6px; max-width: 520px; }
.reel__trace i { flex: 1; height: 2px; background: rgba(241, 238, 230, .55); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--expo); }
.reel__trace i.is-lead { flex: 2.4; background: var(--lime); }
.reel__end.is-on .reel__trace i { transform: scaleX(1); }
.reel__end.is-on .reel__trace i:nth-child(2) { transition-delay: .1s; } .reel__end.is-on .reel__trace i:nth-child(3) { transition-delay: .2s; }
.reel__end.is-on .reel__trace i:nth-child(4) { transition-delay: .3s; } .reel__end.is-on .reel__trace i:nth-child(5) { transition-delay: .4s; }
.reel__center { position: relative; align-self: center; justify-self: center; display: grid; justify-items: center; text-align: center; }
.reel__name { margin: 0; font: 400 clamp(84px, 15vw, 260px)/.84 var(--cond); letter-spacing: .005em; text-transform: uppercase; color: var(--cream); display: grid; justify-items: center; }
.reel__line { display: block; overflow: hidden; padding: .04em .02em 0; }
.reel__line .ch { display: inline-block; transform: translateY(105%); transition: transform .8s var(--expo); transition-delay: calc(.45s + var(--i) * 45ms); }
.reel__line + .reel__line .ch { transition-delay: calc(.7s + var(--i) * 55ms); }
.reel__line .ch.is-accent { color: var(--lime); }
.reel__end.is-on .reel__line .ch { transform: none; }
.reel__role { margin: 28px 0 0; display: flex; gap: 16px; align-items: baseline; font: 700 13px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: rgba(241, 238, 230, .82);
opacity: 0; transform: translateY(10px); transition: opacity .6s var(--expo) 1.05s, transform .6s var(--expo) 1.05s; }
.reel__role-zh { font: 500 14px/1 var(--zh); letter-spacing: .3em; color: rgba(241, 238, 230, .55); }
.reel__end.is-on .reel__role { opacity: 1; transform: none; }
/* ---------- the two calls to action ---------- */
.reel__actions { margin-top: 46px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.rcta {
--mx: 0px; --my: 0px;
position: relative; display: inline-flex; align-items: center; gap: 18px; height: 84px; padding: 0 30px 0 34px;
text-decoration: none; cursor: pointer; overflow: hidden; border-radius: 2px;
transform: translate(var(--mx), var(--my)); opacity: 0; translate: 0 22px;
transition: translate .8s var(--expo), opacity .8s var(--expo), transform .35s var(--expo), background .3s, color .3s, border-color .3s;
}
.reel__end.is-on .rcta { opacity: 1; translate: 0 0; transition-delay: 1.25s, 1.25s, 0s, 0s, 0s, 0s; }
.reel__end.is-on .rcta + .rcta { transition-delay: 1.4s, 1.4s, 0s, 0s, 0s, 0s; }
.rcta:focus-visible { outline: 2px solid currentColor; outline-offset: -8px; }
.rcta:active { scale: .98; }
.rcta__roll { position: relative; display: block; height: 1.1em; overflow: hidden; line-height: 1.1; white-space: nowrap; }
.rcta__roll > span { display: block; height: 1.1em; transition: transform .45s var(--expo); }
.rcta:hover .rcta__roll > span, .rcta:focus-visible .rcta__roll > span { transform: translateY(-100%); }
.rcta__zh { font: 500 13px/1 var(--zh); letter-spacing: .14em; opacity: .7; white-space: nowrap; }
.rcta--primary { background: var(--lime); color: var(--ink); font: 400 38px/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 0 0 0 rgba(221, 245, 61, .45); }
.reel__end.is-on .rcta--primary { animation: ctaPulse calc(var(--beat) * 4) ease-out 2.4s infinite; }
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 rgba(221, 245, 61, .42); } 60%, 100% { box-shadow: 0 0 0 18px rgba(221, 245, 61, 0); } }
.rcta--primary::after { /* a sheen sweeps across on hover */
content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
transform: translateX(-120%); transition: transform .7s var(--expo); pointer-events: none;
}
.rcta--primary:hover::after { transform: translateX(120%); }
.rcta__arrow { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; transition: transform .45s var(--expo); }
.rcta--primary:hover .rcta__arrow { transform: translate(4px, -4px); }
.rcta--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(241, 238, 230, .34); font: 700 13px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; padding: 0 30px 0 26px; }
.rcta--ghost:hover { border-color: var(--cream); background: rgba(241, 238, 230, .06); }
.rcta__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform .7s var(--expo); }
.rcta--ghost:hover .rcta__icon { transform: rotate(-360deg); }
/* start mode (autoplay blocked / reduced motion): play is the lead, enter is secondary */
body[data-mode="start"] .rcta--primary { order: 2; background: transparent; color: var(--cream); border: 1px solid rgba(241, 238, 230, .34); font: 700 13px/1 var(--mono); letter-spacing: .3em; height: 84px; }
body[data-mode="start"] .rcta--primary .rcta__arrow { width: 22px; height: 22px; }
body[data-mode="start"] .reel__end.is-on .rcta--primary { animation: none; }
body[data-mode="start"] .rcta--ghost { order: 1; background: var(--lime); color: var(--ink); border-color: var(--lime); font: 400 38px/1 var(--cond); letter-spacing: .02em; }
body[data-mode="start"] .rcta--ghost .rcta__icon { width: 30px; height: 30px; }
/* ---------- exit: a lime iris, then the portfolio ---------- */
.reel__wipe {
--x: 50%; --y: 50%;
position: fixed; inset: 0; z-index: 20; background: var(--lime); color: var(--ink); display: grid; place-items: center;
clip-path: circle(0 at var(--x) var(--y)); transition: clip-path .75s cubic-bezier(.7, 0, .2, 1); pointer-events: none;
}
.reel__wipe span { font: 400 clamp(40px, 7vw, 96px)/1 var(--cond); text-transform: uppercase; letter-spacing: .01em; opacity: 0; transform: translateY(20px); transition: opacity .3s .2s, transform .5s var(--expo) .2s; }
.reel__wipe b { color: var(--red); }
.reel__wipe.is-go { clip-path: circle(150% at var(--x) var(--y)); pointer-events: auto; }
.reel__wipe.is-go span { opacity: 1; transform: none; }
.reel__noscript { position: fixed; inset: auto 0 40px; text-align: center; } .reel__noscript a { color: var(--lime); }
@media (max-width: 720px) {
.reel__end { padding: 24px 20px; }
.reel__corner--tl, .reel__corner--tr { top: 22px; } .reel__corner--bl, .reel__corner--br { bottom: 22px; }
.reel__corner--tl, .reel__corner--bl { left: 22px; } .reel__corner--tr, .reel__corner--br { right: 22px; }
.reel__meta { font-size: 10px; letter-spacing: .16em; padding: 6px 14px 0; white-space: nowrap; }
.reel__meta--top > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.reel__meta--bottom > span:not(.reel__trace) { display: none; }
.reel__role { flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .24em; }
.reel__actions { width: 100%; flex-direction: column; align-items: stretch; margin-top: 36px; gap: 12px; }
.rcta { height: 68px; padding: 0 22px; gap: 12px; justify-content: space-between; }
.rcta .rcta__roll { flex: 1; text-align: left; }
.rcta--primary, body[data-mode="start"] .rcta--ghost { font-size: 28px; }
.rcta--ghost, body[data-mode="start"] .rcta--primary { font-size: 12px; letter-spacing: .24em; }
.reel__bar { gap: 8px; }
.rbtn { height: 40px; padding: 0 14px 0 6px; font-size: 10.5px; letter-spacing: .16em; } .rbtn--sound { padding-left: 12px; } .rbtn__zh { display: none; }
}
/* phones held upright: the reel is 16:9, suggest turning the phone (once, briefly) */
.reel__rotate { position: absolute; z-index: 5; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: none; align-items: center; gap: 10px; white-space: nowrap;
font: 600 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(241, 238, 230, .7); opacity: 0; transition: opacity .6s; }
.reel__rotate svg { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 1.6; animation: tilt 2s var(--expo) infinite; }
@keyframes tilt { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (max-width: 720px) {
.reel__rotate { display: inline-flex; }
body.is-live:not(.is-ended) .reel__rotate { opacity: 1; transition-delay: 1.6s; }
body.is-live.rotate-seen .reel__rotate { opacity: 0; transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
.reel__line .ch, .rcta, .reel__meta, .reel__role, .reel__corner, .reel__trace i { transition-duration: .01s !important; transition-delay: 0s !important; }
.reel__end.is-on .rcta--primary, .reel__status i, .reel__hint::before, body.sound-on .rbtn__eq i { animation: none !important; }
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |