hyper-animator-codex 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -3
- package/bin/hyper-animator-codex.mjs +1 -1
- package/lib/minimax-config.mjs +3 -3
- package/package.json +1 -1
- package/skills/hyper-animator-codex/SKILL.md +58 -20
- package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
- package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +214 -0
- package/skills/hyper-animator-codex/contracts/workflow-policy.json +85 -0
- package/skills/hyper-animator-codex/references/HyperFrames-AI-Generation-Patterns-codex.md +788 -0
- package/skills/hyper-animator-codex/references/beat-sync-workflow.md +7 -0
- package/skills/hyper-animator-codex/references/examples/shot-plan-dual-catalog.json +69 -0
- package/skills/hyper-animator-codex/references/hyperframes-agent-pseudocode.ts +1 -1
- package/skills/hyper-animator-codex/references/hyperframes-catalog-map.json +97 -230
- package/skills/hyper-animator-codex/references/hyperframes-intent-workflow.md +23 -7
- package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
- package/skills/hyper-animator-codex/references/narration-audio-workflow.md +31 -1
- package/skills/hyper-animator-codex/references/shotcraft/LICENSE +202 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ai-stream-response/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/autolayout-gap-dial/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-cut-moves/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/beat-step-list-theme-cycle/README.md +59 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/before-after-slider-scrub/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bottom-push-stack-wipe/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-frame-snap/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/brand-ink-open/README.md +35 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/bubble-swarm-takeover/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/canvas-materialize-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flip-reveal/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/card-flock-tumble/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cel-flash-stomp/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/chart-live-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/circle-match-iris/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/cloner-depth-echo/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/collab-cursor-moves/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/color-block-step-wipe/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/command-palette-summon/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crane-rise-reveal/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/crash-zoom-punch/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/dataviz-landscape-open/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/deck-deal-flyin/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/depth-layer-moves/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/document-typewriter-reveal/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/draw-svg-trace/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/edit-hook-moves/README.md +38 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/element-body-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/fui-hud-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gauge-readout-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/glow-flyline-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/gradient-word-sweep/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/graze-face-tour/README.md +56 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hashtag-to-pill-materialize/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/hires-rasterize-3d-text/README.md +34 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-field-colorize/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/icon-performance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/impact-feedback/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/input-trigger-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/integration-hub-map/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/letterspace-materialize/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/light-play-moves/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-boil/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/line-carry-transition/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/list-stack-press/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/magician-card-flourish/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/marker-underline-title/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/montage-rhythm-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/morph-from-primitive/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-forerun/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-frame-orbit-drop/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/neon-triple-marquee/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/odometer-digit-roll/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/outro-group-photo-launch/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/overhead-camera-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-turn-transitions/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/page-waterfall-wall/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/panel-grid-moves/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-craft-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-plane-messenger/README.md +62 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/paper-title-card/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-celebrate-hits/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/particle-sand-fill/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/pill-slot-cycle/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/print-texture-transitions/README.md +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/rhythm-interrupt-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/riso-print-hits/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/row-embed/README.md +36 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/runway-ground-skim/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/sakuga-timing-shift/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scene-locked-title/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/scroll-brake-moves/README.md +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/segmented-thumb-hero/README.md +57 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/shot-transitions/README.md +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/skeleton-reveal/README.md +54 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/slam-entrance-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/smear-multiples/README.md +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/space-camera-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spectrum-morph-ui/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/speed-ramp-freeze/README.md +42 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/split-flap-title/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-hero-card/README.md +39 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/spotlight-sweep-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/steep-tilt-glide/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/stroke-segment-build/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tear-streak-transitions/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/tension-camera-moves/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-as-mask/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/text-column-converge/README.md +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/theme-switch-moves/README.md +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/timeline-travel/README.md +43 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/title-demote-to-label/README.md +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/trailer-grammar-moves/README.md +51 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-hidden-cut/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/transition-travel/README.md +48 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-and-filter/README.md +37 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-assembly-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-entrance-moves/README.md +46 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/type-rhythm-sync/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/typewriter-moves/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-strip-away-outro/README.md +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/ui-to-brand-morph/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/voice-waveform-live/README.md +52 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wall-reveal-moves/README.md +53 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/wipe-transitions/README.md +47 -0
- package/skills/hyper-animator-codex/references/shotcraft/cards/word-relay-filmstrip/README.md +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/catalog.json +3946 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/aesthetic-rules.md +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/final-review.md +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/guided-free-creation.md +197 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/music-beat-sync.md +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/pipeline.md +357 -0
- package/skills/hyper-animator-codex/references/shotcraft/references/sound-design.md +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/Caption.tsx +50 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/DigitRoll.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlashCut.tsx +20 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/FlatPanel.tsx +65 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/PageCam.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/camera.tsx +75 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/motion.ts +40 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/rand.ts +11 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/assets/lib/helpers/shake.ts +10 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/_fixtures/Fixtures.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ai-stream-response/StreamResponse.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/autolayout-gap-dial/AutolayoutGapDial.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/BeatCutAccelerando.tsx +77 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-cut-moves/PaparazziFlash.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/beat-step-list-theme-cycle/BeatStepListThemeCycle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/before-after-slider-scrub/BeforeAfterSliderScrub.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bottom-push-stack-wipe/BottomPushStackWipe.tsx +79 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/brand-frame-snap/BrandFrameSnap.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/bubble-swarm-takeover/BubbleSwarmTakeover.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/DiagramCascadeBuild.tsx +172 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/canvas-materialize-moves/PanelToCanvasMaterialize.tsx +254 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flip-reveal/CardFlipReveal.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/card-flock-tumble/CardFlockTumble.tsx +382 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cel-flash-stomp/CelFlashStomp.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/AxisRescaleShockV2.tsx +282 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/OscilloscopeStreamV2.tsx +227 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/chart-live-moves/UnitDotSwarmRegroupV2.tsx +248 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/circle-match-iris/CircleMatchIris.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/cloner-depth-echo/ClonerDepthEcho.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorCastEnsemble.tsx +136 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/collab-cursor-moves/CursorDialogueDuet.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/color-block-step-wipe/ColorBlockStepWipe.tsx +157 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/command-palette-summon/CommandPaletteSummon.tsx +173 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crane-rise-reveal/CraneRiseReveal.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashImpactReal.tsx +63 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/crash-zoom-punch/CrashZoomReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/dataviz-landscape-open/DatavizLandscapeOpen.tsx +401 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/DollyZoomReal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/depth-layer-moves/MultiplaneReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/draw-svg-trace/DrawSvgTrace.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/edit-hook-moves/LogoStingButton.tsx +106 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/AxialStretch.tsx +112 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/element-body-moves/ContactShadowLift.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/LineUnfoldPanel.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/fui-hud-moves/ReticleLockOn.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/NeedleSweepSelftest.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gauge-readout-moves/TapeScrollFixedPointer.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/FlylineArc.tsx +158 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/GlowOrbAmbient.tsx +131 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/glow-flyline-moves/OrbFlylineRelay.tsx +268 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/gradient-word-sweep/GradientWordSweep.tsx +307 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/graze-face-tour/GrazeFaceTour.tsx +469 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/hashtag-to-pill-materialize/HashtagToPillMaterialize.tsx +166 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-field-colorize/IconFieldColorize.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/AttentionBounce.tsx +193 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/icon-performance-moves/PopBurstConfirm.tsx +162 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/AnimeImpact.tsx +149 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/impact-feedback/HitCounter.tsx +147 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/CursorPerformancePunchIn.tsx +154 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/input-trigger-moves/KeycapSmashCut.tsx +217 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/integration-hub-map/IntegrationHubMap.tsx +554 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/letterspace-materialize/LetterspaceMaterialize.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/HalationBloom.tsx +139 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SheenSweepRetry.tsx +85 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/light-play-moves/SpotlightSweepReveal.tsx +102 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-boil/LineBoil.tsx +140 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/line-carry-transition/LineCarryTransition.tsx +151 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/magician-card-flourish/MagicianCardFlourish.tsx +294 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/marker-underline-title/MarkerUnderlineTitle.tsx +87 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DominoCascade.tsx +125 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/DropBlackoutSlam.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/montage-rhythm-moves/WrightTripleCut.tsx +175 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/morph-from-primitive/MorphFromPrimitive.tsx +190 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-forerun/NeonFrameForerun.tsx +279 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-frame-orbit-drop/NeonFrameForerunOrbit.tsx +273 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/neon-triple-marquee/NeonTripleMarquee.tsx +111 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/odometer-digit-roll/OdometerDigitRoll.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/OverheadTabletopDrop.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/overhead-camera-moves/TiltReveal.tsx +55 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/BarnDoorSplit.tsx +138 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-turn-transitions/CubeRotate.tsx +114 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/PageWaterfallWall.tsx +76 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/page-waterfall-wall/VerticalTicker.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/ComicPanelSplit.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/FlipGridReflow.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/panel-grid-moves/GridFlashMosaic.tsx +182 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/MaskingTapeSlap.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-craft-moves/PopupBookRise.tsx +134 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/paper-plane-messenger/PaperPlaneMessenger.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/ConfettiCrossfire.tsx +115 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-celebrate-hits/CounterTickSparks.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/particle-sand-fill/ParticleSandFill.tsx +119 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/pill-slot-cycle/PillSlotCycle.tsx +220 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/print-texture-transitions/InkBleedReveal.tsx +81 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/JumpCutPunchIn.tsx +72 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/rhythm-interrupt-moves/StrobeBlackFrames.tsx +99 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoBeatPump.tsx +155 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/riso-print-hits/RisoMisregistrationHit.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/runway-ground-skim/RunwayGroundSkim.tsx +258 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/sakuga-timing-shift/SakugaTimingShift.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scene-locked-title/SceneLockedTitle.tsx +98 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/BrakeReticleLock.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/scroll-brake-moves/ChangelogScrollBrake.tsx +117 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/segmented-thumb-hero/SegmentedThumbHero.tsx +213 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/MaskWipeReal.tsx +67 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/PortalWipeV2.tsx +128 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipBrakeReal.tsx +60 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/shot-transitions/WhipPanReal.tsx +45 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/skeleton-reveal/SkeletonReveal.tsx +283 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ImpactBurstKit.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/KanadaPerspectiveSnap.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/slam-entrance-moves/ScoreSlam.tsx +225 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/smear-multiples/SmearMultiples.tsx +88 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/DroneDiveLanding.tsx +91 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/ExplodedView.tsx +178 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/space-camera-moves/SnorricamLock.tsx +130 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spectrum-morph-ui/SpectrumMorphUi.tsx +129 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/FreezeAnnotateReal.tsx +70 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/speed-ramp-freeze/SpeedRampReal.tsx +58 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/split-flap-title/SplitFlapFlip.tsx +189 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/CornerSpotlightReveal.tsx +121 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/GlowWakeSleepPanel.tsx +183 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/spotlight-sweep-moves/SlideSpotlightPan.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/steep-tilt-glide/SteepTiltGlide.tsx +315 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/stroke-segment-build/StrokeSegmentBuild.tsx +126 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tear-streak-transitions/GlitchDisplace.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/BulletTimeFreezeOrbit.tsx +219 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/DutchRollToLevel.tsx +110 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/PullBackIsolation.tsx +120 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/tension-camera-moves/SlowPushIn.tsx +96 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-as-mask/TextAsMask.tsx +94 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/text-column-converge/TextColumnConverge.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/PaletteThemeRipple.tsx +207 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/theme-switch-moves/ThemeSweepToggle.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/timeline-travel/TimelineTravel.tsx +123 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/title-demote-to-label/TitleDemoteToLabel.tsx +174 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/CardFootageCadence.tsx +118 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/SmashCut.tsx +105 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/trailer-grammar-moves/TrailerBumper.tsx +103 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/InvisibleCut.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/LightLeakBurn.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-hidden-cut/VersusSlam.tsx +104 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/LetterformZoom.tsx +141 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/transition-travel/SharedElementMorph.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/LetterformDriftAssembly.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/SplitTextStagger.tsx +101 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TextOnPath.tsx +92 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-assembly-moves/TrackingExpandReveal.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/LetterDropPhysics.tsx +100 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-entrance-moves/ScrambleDecode.tsx +90 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/FontWeightPump.tsx +124 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/type-rhythm-sync/KaraokeFillSync.tsx +93 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TerminalTypewriter.tsx +122 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/typewriter-moves/TypewriterErrorRetype.tsx +109 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-strip-away-outro/UiStripAwayOutro.tsx +218 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/IconFlipBloomLogo.tsx +199 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/ui-to-brand-morph/InputMorphsIntoLogo.tsx +215 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/voice-waveform-live/VoiceWaveformLive.tsx +171 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wall-reveal-moves/BentoLightUp.tsx +135 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/BlindsSlice.tsx +107 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/wipe-transitions/ClockWipe.tsx +83 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/demos/word-relay-filmstrip/WordRelayFilmstrip.tsx +300 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/Root.tsx +15 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Caption.tsx +49 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/DigitRoll.tsx +44 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/FlashCut.tsx +19 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/Main.tsx +163 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx +89 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx +145 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneDetail.tsx +146 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneFlyIn.tsx +447 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOpen.tsx +532 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneOutroLive.tsx +394 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/ScenePapers.tsx +185 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/SceneWbr.tsx +299 -0
- package/skills/hyper-animator-codex/references/shotcraft/source/template/src/index.ts +4 -0
- package/skills/hyper-animator-codex/references/shotcraft/source-notes.md +10 -0
- package/skills/hyper-animator-codex/scripts/generate_minimax_music.mjs +27 -10
- package/skills/hyper-animator-codex/scripts/generate_minimax_tts.mjs +142 -13
- package/skills/hyper-animator-codex/scripts/generate_subtitles.mjs +42 -3
- package/skills/hyper-animator-codex/scripts/minimax_runtime_config.mjs +3 -3
- package/skills/hyper-animator-codex/scripts/query_shotcraft.mjs +140 -0
- package/skills/hyper-animator-codex/scripts/validate_hyperframes_html.py +22 -0
- package/skills/hyper-animator-codex/scripts/validate_provider_policy.mjs +108 -0
- package/skills/hyper-animator-codex/scripts/validate_shot_plan.mjs +193 -0
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/analyzer.py +3 -1
- package/skills/hyper-animator-codex/vendor/music-beat-detector/beat_detector/beat.py +37 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { AbsoluteFill, Audio, Sequence, staticFile } from 'remotion';
|
|
2
|
+
import { SceneOpen } from './live/SceneOpen';
|
|
3
|
+
import { SceneFlyIn } from './live/SceneFlyIn';
|
|
4
|
+
import { SceneDetail } from './live/SceneDetail';
|
|
5
|
+
import { ScenePapers } from './live/ScenePapers';
|
|
6
|
+
import { SceneWbr } from './live/SceneWbr';
|
|
7
|
+
import { PaperTitleCard } from './PaperTitleCard';
|
|
8
|
+
import { SceneOutroLive } from './live/SceneOutroLive';
|
|
9
|
+
import { FlashCut } from './FlashCut';
|
|
10
|
+
import { Caption } from './Caption';
|
|
11
|
+
|
|
12
|
+
// ~36.2s @ 30fps — paper-and-ink morning reading room (10 shots). Both wordmark
|
|
13
|
+
// moments (brand open, outro sign-off) hold a full second once fully on.
|
|
14
|
+
export const AIFL_SHOTS = {
|
|
15
|
+
morning: { from: 0, duration: 220 }, // 0–7.3s brand ~46f + 30f hold + 138f macro
|
|
16
|
+
card1: { from: 220, duration: 55 }, // 7.3–9.2s "All your team's research, one place to go."
|
|
17
|
+
table: { from: 275, duration: 190 }, // 9.2–15.5s pile close-up → deal → scroll → search → filter → click
|
|
18
|
+
macro: { from: 465, duration: 100 }, // 15.5–18.8s macro card detail, rows reveal
|
|
19
|
+
card2: { from: 565, duration: 55 }, // 18.8–20.7s "Paper Radar, tailored for your morning reading."
|
|
20
|
+
chart: { from: 620, duration: 105 }, // 20.7–24.2s papers stack radar
|
|
21
|
+
cardWbr: { from: 725, duration: 50 }, // 24.2–25.8s "Every project, linked to your weekly report."
|
|
22
|
+
wbr: { from: 775, duration: 110 }, // 25.8–29.5s weekly report / collaborative write
|
|
23
|
+
card3: { from: 885, duration: 55 }, // 29.5–31.3s "The whole team, on the same page."
|
|
24
|
+
outro: { from: 940, duration: 145 }, // 31.3–36.2s defocus + letterpress sign-off (+1s hold)
|
|
25
|
+
} as const; // sum = 1085
|
|
26
|
+
|
|
27
|
+
export const AIFL_TOTAL = 1085;
|
|
28
|
+
|
|
29
|
+
// bottom-strip narration over the live shots (absolute frames; outro stays clean)
|
|
30
|
+
const CAPTIONS = [
|
|
31
|
+
{ from: 90, duration: 40, text: 'TEN LIVE PROJECTS · FOUR RESEARCHERS' },
|
|
32
|
+
// (the hero-card hover annotation lives inside SceneOpen as a 3D floating note)
|
|
33
|
+
{ from: 318, duration: 44, text: 'NEW WORK LANDS ALL WEEK' },
|
|
34
|
+
{ from: 395, duration: 55, text: 'SEARCH · FILTER · OPEN' },
|
|
35
|
+
{ from: 477, duration: 68, text: 'EVERY QUESTION, TRACKED TO ITS EXPERIMENTS' },
|
|
36
|
+
{ from: 633, duration: 72, text: 'THE DAILY PAPER RADAR' },
|
|
37
|
+
{ from: 789, duration: 78, text: 'FOUR VOICES, ONE WEEKLY BRIEF' },
|
|
38
|
+
] as const;
|
|
39
|
+
|
|
40
|
+
// sound design pinned to animation beats (absolute frames, Mixkit license).
|
|
41
|
+
// Classic product-promo vocabulary: whooshes on camera moves, cinematic
|
|
42
|
+
// impacts on landings, a riser into the finale, sparkle on the reveal.
|
|
43
|
+
const SFX: { from: number; src: string; volume: number }[] = [
|
|
44
|
+
// brand open: soft transition as the lockup lands, whoosh into the console
|
|
45
|
+
{ from: 12, src: 'transition-soft.mp3', volume: 0.4 },
|
|
46
|
+
{ from: 78, src: 'whoosh-fast.mp3', volume: 0.45 }, // brand → dashboard
|
|
47
|
+
// hero card: whoosh up on the pop, sparkle on the beam scan, impact reseat
|
|
48
|
+
{ from: 127, src: 'whoosh-big.mp3', volume: 0.5 },
|
|
49
|
+
{ from: 141, src: 'sparkle.mp3', volume: 0.35 },
|
|
50
|
+
{ from: 204, src: 'transition-snap.mp3', volume: 0.5 },
|
|
51
|
+
// title cards ride a quick swoosh
|
|
52
|
+
{ from: 220, src: 'swoosh-quick.mp3', volume: 0.4 },
|
|
53
|
+
// deck shot: soft transition into the pile close-up, whoosh as the orbit
|
|
54
|
+
// pulls back and dealing starts, fast whooshes as the deal accelerates,
|
|
55
|
+
// then the scroll rest → big whoosh back up to the search bar
|
|
56
|
+
{ from: 277, src: 'transition-soft.mp3', volume: 0.4 }, // pile close-up
|
|
57
|
+
{ from: 308, src: 'whoosh-big.mp3', volume: 0.5 }, // pull-back + first deals
|
|
58
|
+
{ from: 340, src: 'whoosh-fast.mp3', volume: 0.4 }, // dealing accelerates
|
|
59
|
+
{ from: 356, src: 'whoosh-fast.mp3', volume: 0.32 }, // full flurry
|
|
60
|
+
{ from: 388, src: 'whoosh-big.mp3', volume: 0.5 }, // swoosh back to header
|
|
61
|
+
// typing (slower now, 3f/char) + a breath + filter + click
|
|
62
|
+
{ from: 401, src: 'keyboard.mp3', volume: 0.4 }, // trimmed by sequence length
|
|
63
|
+
{ from: 435, src: 'whoosh-fast.mp3', volume: 0.4 }, // grid filters away
|
|
64
|
+
{ from: 451, src: 'click-camera.mp3', volume: 0.6 }, // click on the result card
|
|
65
|
+
{ from: 455, src: 'swoosh-quick.mp3', volume: 0.35 }, // push-in
|
|
66
|
+
// detail rows embed with one cinematic transition sweep
|
|
67
|
+
{ from: 475, src: 'transition-soft.mp3', volume: 0.45 },
|
|
68
|
+
{ from: 565, src: 'swoosh-quick.mp3', volume: 0.4 }, // title card 2
|
|
69
|
+
// papers stack: soft transition, camera-click as the counter settles
|
|
70
|
+
{ from: 623, src: 'transition-soft.mp3', volume: 0.45 },
|
|
71
|
+
{ from: 648, src: 'click-camera.mp3', volume: 0.45 },
|
|
72
|
+
{ from: 725, src: 'swoosh-quick.mp3', volume: 0.4 }, // wbr title card
|
|
73
|
+
// wbr: the page "writes itself" over live keyboard typing, then past weeks
|
|
74
|
+
// pop into the left rail one by one (a pop per landing)
|
|
75
|
+
{ from: 779, src: 'transition-soft.mp3', volume: 0.4 },
|
|
76
|
+
{ from: 781, src: 'keyboard.mp3', volume: 0.34 }, // trimmed to the writing reveals
|
|
77
|
+
{ from: 840, src: 'pop.mp3', volume: 0.4 },
|
|
78
|
+
{ from: 845, src: 'pop.mp3', volume: 0.37 },
|
|
79
|
+
{ from: 850, src: 'pop.mp3', volume: 0.34 },
|
|
80
|
+
{ from: 855, src: 'pop.mp3', volume: 0.31 },
|
|
81
|
+
{ from: 860, src: 'pop.mp3', volume: 0.28 },
|
|
82
|
+
{ from: 865, src: 'pop.mp3', volume: 0.25 },
|
|
83
|
+
{ from: 885, src: 'swoosh-quick.mp3', volume: 0.4 }, // title card 3
|
|
84
|
+
// outro: riser under the assembly, big impact when the wordmark stamps
|
|
85
|
+
{ from: 945, src: 'riser-cine.mp3', volume: 0.5 },
|
|
86
|
+
{ from: 980, src: 'impact-cine.mp3', volume: 0.55 },
|
|
87
|
+
{ from: 1005, src: 'sparkle.mp3', volume: 0.3 }, // rule + tagline glint
|
|
88
|
+
];
|
|
89
|
+
|
|
90
|
+
export const AiflMain: React.FC = () => {
|
|
91
|
+
return (
|
|
92
|
+
<AbsoluteFill style={{ backgroundColor: '#f2eee6' }}>
|
|
93
|
+
{/* beat-pinned promo sound effects (no music bed — SFX only) */}
|
|
94
|
+
{SFX.map((s, i) => (
|
|
95
|
+
<Sequence
|
|
96
|
+
key={`sfx-${i}`}
|
|
97
|
+
from={s.from}
|
|
98
|
+
// keyboard: 24f for the short search-box typing, 44f under the wbr
|
|
99
|
+
// writing reveals; everything else plays out (≤3s assets)
|
|
100
|
+
durationInFrames={s.src === 'keyboard.mp3' ? (s.from > 700 ? 44 : 24) : 90}
|
|
101
|
+
>
|
|
102
|
+
<Audio src={staticFile(`audio/${s.src}`)} volume={s.volume} />
|
|
103
|
+
</Sequence>
|
|
104
|
+
))}
|
|
105
|
+
<Sequence from={AIFL_SHOTS.morning.from} durationInFrames={AIFL_SHOTS.morning.duration}>
|
|
106
|
+
<SceneOpen />
|
|
107
|
+
</Sequence>
|
|
108
|
+
<Sequence from={AIFL_SHOTS.card1.from} durationInFrames={AIFL_SHOTS.card1.duration}>
|
|
109
|
+
<PaperTitleCard
|
|
110
|
+
duration={AIFL_SHOTS.card1.duration}
|
|
111
|
+
words={[{ text: 'All' }, { text: 'your' }, { text: 'team’s' }, { text: 'research,' }, { text: 'one', accent: true }, { text: 'place' }, { text: 'to' }, { text: 'go.' }]}
|
|
112
|
+
/>
|
|
113
|
+
</Sequence>
|
|
114
|
+
<Sequence from={AIFL_SHOTS.table.from} durationInFrames={AIFL_SHOTS.table.duration}>
|
|
115
|
+
<SceneFlyIn />
|
|
116
|
+
</Sequence>
|
|
117
|
+
<Sequence from={AIFL_SHOTS.macro.from} durationInFrames={AIFL_SHOTS.macro.duration}>
|
|
118
|
+
<SceneDetail />
|
|
119
|
+
</Sequence>
|
|
120
|
+
<Sequence from={AIFL_SHOTS.card2.from} durationInFrames={AIFL_SHOTS.card2.duration}>
|
|
121
|
+
<PaperTitleCard
|
|
122
|
+
duration={AIFL_SHOTS.card2.duration}
|
|
123
|
+
words={[{ text: 'Paper' }, { text: 'Radar,', accent: true }, { text: 'tailored' }, { text: 'for' }, { text: 'your' }, { text: 'morning' }, { text: 'reading.' }]}
|
|
124
|
+
sub="of 31 fetched today"
|
|
125
|
+
subDigits="5"
|
|
126
|
+
/>
|
|
127
|
+
</Sequence>
|
|
128
|
+
<Sequence from={AIFL_SHOTS.chart.from} durationInFrames={AIFL_SHOTS.chart.duration}>
|
|
129
|
+
<ScenePapers />
|
|
130
|
+
</Sequence>
|
|
131
|
+
<Sequence from={AIFL_SHOTS.cardWbr.from} durationInFrames={AIFL_SHOTS.cardWbr.duration}>
|
|
132
|
+
<PaperTitleCard
|
|
133
|
+
duration={AIFL_SHOTS.cardWbr.duration}
|
|
134
|
+
words={[{ text: 'Every' }, { text: 'project,' }, { text: 'linked', accent: true }, { text: 'to' }, { text: 'your' }, { text: 'weekly' }, { text: 'report.' }]}
|
|
135
|
+
/>
|
|
136
|
+
</Sequence>
|
|
137
|
+
<Sequence from={AIFL_SHOTS.wbr.from} durationInFrames={AIFL_SHOTS.wbr.duration}>
|
|
138
|
+
<SceneWbr />
|
|
139
|
+
</Sequence>
|
|
140
|
+
<Sequence from={AIFL_SHOTS.card3.from} durationInFrames={AIFL_SHOTS.card3.duration}>
|
|
141
|
+
<PaperTitleCard
|
|
142
|
+
duration={AIFL_SHOTS.card3.duration}
|
|
143
|
+
words={[{ text: 'The' }, { text: 'whole' }, { text: 'team,' }, { text: 'on' }, { text: 'the' }, { text: 'same', accent: true }, { text: 'page.' }]}
|
|
144
|
+
/>
|
|
145
|
+
</Sequence>
|
|
146
|
+
<Sequence from={AIFL_SHOTS.outro.from} durationInFrames={AIFL_SHOTS.outro.duration}>
|
|
147
|
+
<SceneOutroLive />
|
|
148
|
+
</Sequence>
|
|
149
|
+
{/* narration captions over the live shots (under the flash cuts) */}
|
|
150
|
+
{CAPTIONS.map((c) => (
|
|
151
|
+
<Sequence key={c.from} from={c.from} durationInFrames={c.duration}>
|
|
152
|
+
<Caption text={c.text} duration={c.duration} />
|
|
153
|
+
</Sequence>
|
|
154
|
+
))}
|
|
155
|
+
{/* warm flash cuts straddling scene changes */}
|
|
156
|
+
{[AIFL_SHOTS.table.from, AIFL_SHOTS.macro.from, AIFL_SHOTS.chart.from, AIFL_SHOTS.wbr.from].map((cut) => (
|
|
157
|
+
<Sequence key={cut} from={cut - 5} durationInFrames={10}>
|
|
158
|
+
<FlashCut duration={10} />
|
|
159
|
+
</Sequence>
|
|
160
|
+
))}
|
|
161
|
+
</AbsoluteFill>
|
|
162
|
+
);
|
|
163
|
+
};
|
package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/PaperTitleCard.tsx
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { AbsoluteFill, interpolate, useCurrentFrame, Easing } from 'remotion';
|
|
2
|
+
import { DigitRoll } from './DigitRoll';
|
|
3
|
+
|
|
4
|
+
const SERIF = 'ui-serif, Georgia, "Times New Roman", serif';
|
|
5
|
+
const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Paper title card: warm paper field, serif statement letterpressed word by
|
|
9
|
+
* word, amber italic accent word, amber underline growing beneath.
|
|
10
|
+
*/
|
|
11
|
+
export const PaperTitleCard: React.FC<{
|
|
12
|
+
duration: number;
|
|
13
|
+
words: { text: string; accent?: boolean }[];
|
|
14
|
+
sub?: string;
|
|
15
|
+
subDigits?: string;
|
|
16
|
+
}> = ({ duration, words, sub, subDigits }) => {
|
|
17
|
+
const frame = useCurrentFrame();
|
|
18
|
+
const fadeOut = interpolate(frame, [duration - 8, duration], [1, 0], {
|
|
19
|
+
extrapolateLeft: 'clamp',
|
|
20
|
+
extrapolateRight: 'clamp',
|
|
21
|
+
});
|
|
22
|
+
const underline = interpolate(frame, [16, 34], [0, 1], {
|
|
23
|
+
extrapolateLeft: 'clamp',
|
|
24
|
+
extrapolateRight: 'clamp',
|
|
25
|
+
easing: Easing.bezier(0.3, 0, 0.2, 1),
|
|
26
|
+
});
|
|
27
|
+
const subT = interpolate(frame, [10, 22], [0, 1], {
|
|
28
|
+
extrapolateLeft: 'clamp',
|
|
29
|
+
extrapolateRight: 'clamp',
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<AbsoluteFill
|
|
34
|
+
style={{
|
|
35
|
+
backgroundColor: 'oklch(97.5% 0.008 82)',
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
opacity: fadeOut,
|
|
39
|
+
backgroundImage: 'radial-gradient(1100px 750px at 50% 42%, oklch(99.3% 0.014 88 / 0.85), transparent 65%)',
|
|
40
|
+
}}
|
|
41
|
+
>
|
|
42
|
+
<div style={{ textAlign: 'center', maxWidth: 1500 }}>
|
|
43
|
+
<div
|
|
44
|
+
style={{
|
|
45
|
+
fontFamily: SERIF, fontSize: 116, fontWeight: 600, lineHeight: 1.14,
|
|
46
|
+
color: 'oklch(18% 0.006 82)', letterSpacing: '-0.012em',
|
|
47
|
+
display: 'flex', flexWrap: 'wrap', justifyContent: 'center', columnGap: '0.26em',
|
|
48
|
+
}}
|
|
49
|
+
>
|
|
50
|
+
{words.map((w, i) => {
|
|
51
|
+
const delay = 4 + i * 4;
|
|
52
|
+
const t = interpolate(frame, [delay, delay + 9], [0, 1], {
|
|
53
|
+
extrapolateLeft: 'clamp',
|
|
54
|
+
extrapolateRight: 'clamp',
|
|
55
|
+
easing: Easing.bezier(0.2, 0.75, 0.3, 1),
|
|
56
|
+
});
|
|
57
|
+
return (
|
|
58
|
+
<span
|
|
59
|
+
key={i}
|
|
60
|
+
style={{
|
|
61
|
+
opacity: t,
|
|
62
|
+
transform: `scale(${1.28 - 0.28 * t})`,
|
|
63
|
+
filter: `blur(${(1 - t) * 7}px)`,
|
|
64
|
+
display: 'inline-block',
|
|
65
|
+
fontStyle: w.accent ? 'italic' : 'normal',
|
|
66
|
+
color: w.accent ? 'oklch(52% 0.115 65)' : undefined,
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
{w.text}
|
|
70
|
+
</span>
|
|
71
|
+
);
|
|
72
|
+
})}
|
|
73
|
+
</div>
|
|
74
|
+
<div
|
|
75
|
+
style={{
|
|
76
|
+
height: 6, width: 220, margin: '38px auto 0', borderRadius: 3,
|
|
77
|
+
background: 'oklch(52% 0.115 65)', transform: `scaleX(${underline})`,
|
|
78
|
+
}}
|
|
79
|
+
/>
|
|
80
|
+
{sub ? (
|
|
81
|
+
<div style={{ fontFamily: MONO, fontSize: 26, letterSpacing: '0.12em', color: 'oklch(50% 0.006 82)', marginTop: 34, opacity: subT, textTransform: 'uppercase', display: 'flex', justifyContent: 'center', alignItems: 'baseline', gap: '0.5em' }}>
|
|
82
|
+
{subDigits ? <DigitRoll value={subDigits} delay={12} fontSize={26} /> : null}
|
|
83
|
+
<span>{sub}</span>
|
|
84
|
+
</div>
|
|
85
|
+
) : null}
|
|
86
|
+
</div>
|
|
87
|
+
</AbsoluteFill>
|
|
88
|
+
);
|
|
89
|
+
};
|
package/skills/hyper-animator-codex/references/shotcraft/source/template/src/aifl/live/PageCam.tsx
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { AbsoluteFill, Img, interpolate, staticFile, useCurrentFrame, Easing } from 'remotion';
|
|
2
|
+
|
|
3
|
+
export type CamKey = {
|
|
4
|
+
frame: number;
|
|
5
|
+
cx: number;
|
|
6
|
+
cy: number;
|
|
7
|
+
zoom: number;
|
|
8
|
+
rotX?: number; // deg, tilt about the horizontal axis (positive = top leans away, like looking at a table)
|
|
9
|
+
rotY?: number; // deg, tilt about the vertical axis (positive = right edge recedes, i.e. seen from the LEFT)
|
|
10
|
+
rotZ?: number; // deg, in-plane roll
|
|
11
|
+
persp?: number; // px, perspective strength (default 1400; smaller = stronger)
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const lerp = (a: number, b: number, t: number) => a + (b - a) * t;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 2.5D camera over a full-page screenshot. (cx, cy) is the page-space CSS
|
|
18
|
+
* point centered in the 1920x1080 viewport; zoom is scale (1 = 1 CSS px
|
|
19
|
+
* -> 1 output px). Page textures are 2x, rendered at CSS size via width.
|
|
20
|
+
*
|
|
21
|
+
* Optional 3D: keys may carry rotX/rotZ/persp to tilt the page like a plane
|
|
22
|
+
* seen from an oblique camera. When NO key declares any 3D field, the markup
|
|
23
|
+
* degrades to the original flat pan/zoom and renders pixel-identical.
|
|
24
|
+
*
|
|
25
|
+
* Optional DOF: a screen-space gradient-blur band approximating a focal plane
|
|
26
|
+
* near `focusY` (blurring the far/top part of a tilted page).
|
|
27
|
+
*/
|
|
28
|
+
export const PageCam: React.FC<{
|
|
29
|
+
src: string; // staticFile path under textures/live/
|
|
30
|
+
pageH: number; // CSS page height
|
|
31
|
+
keys: CamKey[];
|
|
32
|
+
children?: React.ReactNode; // page-space overlays (positioned in CSS px)
|
|
33
|
+
blur?: number;
|
|
34
|
+
saturate?: number;
|
|
35
|
+
ease?: (t: number) => number;
|
|
36
|
+
dof?: { focusY: number; strength: number };
|
|
37
|
+
}> = ({ src, pageH, keys, children, blur = 0, saturate = 1, ease = Easing.bezier(0.33, 0, 0.15, 1), dof }) => {
|
|
38
|
+
const frame = useCurrentFrame();
|
|
39
|
+
// find segment
|
|
40
|
+
let a = keys[0], b = keys[keys.length - 1];
|
|
41
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
42
|
+
if (frame >= keys[i].frame && frame <= keys[i + 1].frame) { a = keys[i]; b = keys[i + 1]; break; }
|
|
43
|
+
}
|
|
44
|
+
const t = a.frame === b.frame ? 1 : interpolate(frame, [a.frame, b.frame], [0, 1], {
|
|
45
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: ease,
|
|
46
|
+
});
|
|
47
|
+
const cx = lerp(a.cx, b.cx, t);
|
|
48
|
+
const cy = lerp(a.cy, b.cy, t);
|
|
49
|
+
const zoom = lerp(a.zoom, b.zoom, t);
|
|
50
|
+
|
|
51
|
+
const filters: string[] = [];
|
|
52
|
+
if (blur > 0) filters.push(`blur(${blur}px)`);
|
|
53
|
+
if (saturate !== 1) filters.push(`saturate(${saturate})`);
|
|
54
|
+
|
|
55
|
+
// Does any key request 3D? If not, keep the original flat markup exactly.
|
|
56
|
+
const has3D = keys.some((k) => k.rotX !== undefined || k.rotY !== undefined || k.rotZ !== undefined || k.persp !== undefined);
|
|
57
|
+
|
|
58
|
+
if (!has3D) {
|
|
59
|
+
return (
|
|
60
|
+
<AbsoluteFill style={{ overflow: 'hidden', backgroundColor: '#faf7f2' }}>
|
|
61
|
+
<div
|
|
62
|
+
style={{
|
|
63
|
+
position: 'absolute', width: 1920, height: pageH,
|
|
64
|
+
transform: `translate(${960 - cx * zoom}px, ${540 - cy * zoom}px) scale(${zoom})`,
|
|
65
|
+
transformOrigin: '0 0',
|
|
66
|
+
filter: filters.length ? filters.join(' ') : undefined,
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
<Img src={staticFile(src)} style={{ position: 'absolute', width: 1920, height: pageH }} />
|
|
70
|
+
{children}
|
|
71
|
+
</div>
|
|
72
|
+
</AbsoluteFill>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// 3D mode: pivot rotation/scale about the focal page-point (cx, cy) so it
|
|
77
|
+
// stays centered in the viewport. With rotX=rotZ=0 this reduces to the flat
|
|
78
|
+
// transform (proven identical: (960,540) + zoom*(p - (cx,cy))).
|
|
79
|
+
const rotX = lerp(a.rotX ?? 0, b.rotX ?? 0, t);
|
|
80
|
+
const rotY = lerp(a.rotY ?? 0, b.rotY ?? 0, t);
|
|
81
|
+
const rotZ = lerp(a.rotZ ?? 0, b.rotZ ?? 0, t);
|
|
82
|
+
const persp = lerp(a.persp ?? 1400, b.persp ?? 1400, t);
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<AbsoluteFill style={{ overflow: 'hidden', backgroundColor: '#faf7f2' }}>
|
|
86
|
+
<div
|
|
87
|
+
style={{
|
|
88
|
+
position: 'absolute', inset: 0,
|
|
89
|
+
perspective: `${persp * zoom}px`,
|
|
90
|
+
perspectiveOrigin: '960px 540px',
|
|
91
|
+
}}
|
|
92
|
+
>
|
|
93
|
+
{/* LAYOUT-SCALE zoom: instead of scale(zoom) in the transform chain (which
|
|
94
|
+
makes Chromium rasterize the 3D-composited layer at 1920-wide LAYOUT
|
|
95
|
+
size and then GPU-upscale by zoom — everything inside gets downsampled
|
|
96
|
+
before magnification, hence blurry text), we apply the magnification as
|
|
97
|
+
the CSS `zoom` property. `zoom` enlarges the layout box itself, so the
|
|
98
|
+
page + card textures rasterize at the ENLARGED device size and sample
|
|
99
|
+
down from their hi-res sources → sharp glyph edges under perspective.
|
|
100
|
+
|
|
101
|
+
Coordinate math: `zoom` scales this element's local coordinate space by
|
|
102
|
+
`zoom`, so a page point (cx,cy) renders at (cx*zoom, cy*zoom) device px
|
|
103
|
+
from the box origin, and a `translate(Tx px)` renders as Tx*zoom device
|
|
104
|
+
px. To land the focal point (cx,cy) at viewport centre (960,540):
|
|
105
|
+
cx*zoom + Tx*zoom = 960 ⟹ Tx = 960/zoom - cx (likewise Ty).
|
|
106
|
+
Rotations pivot about transform-origin (cx,cy) = the focal point, so
|
|
107
|
+
they leave its screen position unchanged. With rot=0 this reduces to
|
|
108
|
+
translate(960/zoom - cx, 540/zoom - cy) under zoom — identical framing
|
|
109
|
+
to the old scale-based transform, just rasterized at layout scale. */}
|
|
110
|
+
<div
|
|
111
|
+
style={{
|
|
112
|
+
position: 'absolute', width: 1920, height: pageH,
|
|
113
|
+
zoom,
|
|
114
|
+
transform: `translate(${960 / zoom - cx}px, ${540 / zoom - cy}px) rotateY(${rotY}deg) rotateX(${rotX}deg) rotateZ(${rotZ}deg)`,
|
|
115
|
+
transformOrigin: `${cx}px ${cy}px`,
|
|
116
|
+
transformStyle: 'preserve-3d',
|
|
117
|
+
filter: filters.length ? filters.join(' ') : undefined,
|
|
118
|
+
}}
|
|
119
|
+
>
|
|
120
|
+
<Img src={staticFile(src)} style={{ position: 'absolute', width: 1920, height: pageH }} />
|
|
121
|
+
{children}
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
{/* Depth-of-field approximation: a top-band gradient blur (far part of a
|
|
126
|
+
tilted page reads soft). Screen-space, over the page. */}
|
|
127
|
+
{dof ? (
|
|
128
|
+
<div
|
|
129
|
+
style={{
|
|
130
|
+
position: 'absolute',
|
|
131
|
+
left: 0,
|
|
132
|
+
right: 0,
|
|
133
|
+
top: 0,
|
|
134
|
+
height: Math.max(0, dof.focusY),
|
|
135
|
+
backdropFilter: `blur(${dof.strength}px)`,
|
|
136
|
+
WebkitBackdropFilter: `blur(${dof.strength}px)`,
|
|
137
|
+
maskImage: 'linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%)',
|
|
138
|
+
WebkitMaskImage: 'linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%)',
|
|
139
|
+
pointerEvents: 'none',
|
|
140
|
+
}}
|
|
141
|
+
/>
|
|
142
|
+
) : null}
|
|
143
|
+
</AbsoluteFill>
|
|
144
|
+
);
|
|
145
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { interpolate, staticFile, useCurrentFrame, Easing } from 'remotion';
|
|
3
|
+
import { PageCam, CamKey } from './PageCam';
|
|
4
|
+
import layout from '../live-layout.json';
|
|
5
|
+
|
|
6
|
+
const DETAIL_H = layout.detail.pageH;
|
|
7
|
+
const rows = layout.detail.rows;
|
|
8
|
+
|
|
9
|
+
// the fly-in shot ends on the click into the nano-lab card; this shot opens
|
|
10
|
+
// directly on its detail page (the FlashCut transition covers the cut).
|
|
11
|
+
const DETAIL_CAM: CamKey[] = [
|
|
12
|
+
{ frame: 0, cx: 960, cy: 300, zoom: 1.1 },
|
|
13
|
+
{ frame: 75, cx: 960, cy: 760, zoom: 1.0 }, // 75 ≤ duration 100
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const FLY_EASE = Easing.bezier(0.3, 0, 0.25, 1);
|
|
17
|
+
const detailSrc = staticFile('textures/live/detail-full.png');
|
|
18
|
+
|
|
19
|
+
/** Open on the nano-lab detail page, then pan down while the
|
|
20
|
+
* research-question rows fly in from the air and embed into their slots. */
|
|
21
|
+
export const SceneDetail: React.FC = () => {
|
|
22
|
+
const frame = useCurrentFrame();
|
|
23
|
+
const df = frame;
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<PageCam src="textures/live/detail-full.png" pageH={DETAIL_H} keys={DETAIL_CAM} ease={Easing.bezier(0.33, 0, 0.15, 1)}>
|
|
27
|
+
{/* research-question rows fly in from the air and embed into their slots.
|
|
28
|
+
Cue table 12+i*9: last row lands 12+36+12=60, amber seam done 68 ≤ 70. */}
|
|
29
|
+
{rows.map((r, i) => {
|
|
30
|
+
const cue = 12 + i * 9;
|
|
31
|
+
const land = cue + 12;
|
|
32
|
+
|
|
33
|
+
// empty-slot paper patch (under the flying row), gone 2f after landing
|
|
34
|
+
const patchOpacity = interpolate(df, [land, land + 2], [1, 0], {
|
|
35
|
+
extrapolateLeft: 'clamp',
|
|
36
|
+
extrapolateRight: 'clamp',
|
|
37
|
+
});
|
|
38
|
+
const patch =
|
|
39
|
+
patchOpacity > 0 ? (
|
|
40
|
+
<div
|
|
41
|
+
key={`patch-${i}`}
|
|
42
|
+
style={{
|
|
43
|
+
position: 'absolute',
|
|
44
|
+
left: r.x - 8,
|
|
45
|
+
top: r.y - 4,
|
|
46
|
+
width: r.w + 24,
|
|
47
|
+
height: r.h + 8,
|
|
48
|
+
background: '#fdfcfa',
|
|
49
|
+
opacity: patchOpacity,
|
|
50
|
+
zIndex: 1,
|
|
51
|
+
pointerEvents: 'none',
|
|
52
|
+
}}
|
|
53
|
+
/>
|
|
54
|
+
) : null;
|
|
55
|
+
|
|
56
|
+
// flying row: texture-crop of the row, dropping in from the air.
|
|
57
|
+
// Removed once fully embedded (press bounce done) — texture shows through.
|
|
58
|
+
let flyer: React.ReactNode = null;
|
|
59
|
+
if (df >= cue && df < cue + 16) {
|
|
60
|
+
const p = interpolate(df, [cue, cue + 12], [0, 1], {
|
|
61
|
+
extrapolateLeft: 'clamp',
|
|
62
|
+
extrapolateRight: 'clamp',
|
|
63
|
+
easing: FLY_EASE,
|
|
64
|
+
});
|
|
65
|
+
const appear = interpolate(df, [cue, cue + 3], [0, 1], {
|
|
66
|
+
extrapolateLeft: 'clamp',
|
|
67
|
+
extrapolateRight: 'clamp',
|
|
68
|
+
});
|
|
69
|
+
// 1.06 -> 0.995 during flight, then press-bounce back to 1
|
|
70
|
+
const scale =
|
|
71
|
+
df < land
|
|
72
|
+
? 1.06 - 0.065 * p
|
|
73
|
+
: interpolate(df, [land, land + 4], [0.995, 1], {
|
|
74
|
+
extrapolateLeft: 'clamp',
|
|
75
|
+
extrapolateRight: 'clamp',
|
|
76
|
+
easing: Easing.out(Easing.quad),
|
|
77
|
+
});
|
|
78
|
+
const air = 1 - p; // shadow / tilt fade with flight progress
|
|
79
|
+
flyer = (
|
|
80
|
+
<div
|
|
81
|
+
key={`row-${i}`}
|
|
82
|
+
style={{
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
left: r.x,
|
|
85
|
+
top: r.y,
|
|
86
|
+
width: r.w,
|
|
87
|
+
height: r.h,
|
|
88
|
+
borderRadius: 8,
|
|
89
|
+
backgroundColor: '#fff',
|
|
90
|
+
backgroundImage: `url(${detailSrc})`,
|
|
91
|
+
backgroundSize: `1920px ${DETAIL_H}px`,
|
|
92
|
+
backgroundPosition: `-${r.x}px -${r.y}px`,
|
|
93
|
+
opacity: appear,
|
|
94
|
+
transform: `perspective(900px) translateY(${-120 * air}px) rotateX(${16 * air}deg) scale(${scale})`,
|
|
95
|
+
boxShadow: `0 ${30 * air}px ${60 * air}px rgba(30,25,18,${0.22 * air}), 0 ${8 * air}px ${16 * air}px rgba(30,25,18,${0.12 * air})`,
|
|
96
|
+
zIndex: 3,
|
|
97
|
+
pointerEvents: 'none',
|
|
98
|
+
}}
|
|
99
|
+
/>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// embed flash: 2px amber seam at the row's bottom edge, expanding from
|
|
104
|
+
// the center on touchdown, then fading out
|
|
105
|
+
let seam: React.ReactNode = null;
|
|
106
|
+
if (df >= land && df < land + 8) {
|
|
107
|
+
const spread = interpolate(df, [land, land + 5], [0, 1], {
|
|
108
|
+
extrapolateLeft: 'clamp',
|
|
109
|
+
extrapolateRight: 'clamp',
|
|
110
|
+
easing: Easing.out(Easing.cubic),
|
|
111
|
+
});
|
|
112
|
+
const seamOpacity = interpolate(df, [land, land + 2, land + 8], [1, 1, 0], {
|
|
113
|
+
extrapolateLeft: 'clamp',
|
|
114
|
+
extrapolateRight: 'clamp',
|
|
115
|
+
});
|
|
116
|
+
const seamW = r.w * spread;
|
|
117
|
+
seam = (
|
|
118
|
+
<div
|
|
119
|
+
key={`seam-${i}`}
|
|
120
|
+
style={{
|
|
121
|
+
position: 'absolute',
|
|
122
|
+
left: r.x + (r.w - seamW) / 2,
|
|
123
|
+
top: r.y + r.h - 2,
|
|
124
|
+
width: seamW,
|
|
125
|
+
height: 2,
|
|
126
|
+
background: 'oklch(58% 0.13 65)',
|
|
127
|
+
boxShadow: '0 0 6px rgba(180,120,50,0.35)',
|
|
128
|
+
opacity: seamOpacity,
|
|
129
|
+
zIndex: 4,
|
|
130
|
+
pointerEvents: 'none',
|
|
131
|
+
}}
|
|
132
|
+
/>
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return (
|
|
137
|
+
<React.Fragment key={i}>
|
|
138
|
+
{patch}
|
|
139
|
+
{flyer}
|
|
140
|
+
{seam}
|
|
141
|
+
</React.Fragment>
|
|
142
|
+
);
|
|
143
|
+
})}
|
|
144
|
+
</PageCam>
|
|
145
|
+
);
|
|
146
|
+
};
|