hyper-animator-codex 0.7.1 → 0.8.1
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 +67 -4
- package/bin/hyper-animator-codex.mjs +1 -1
- package/lib/minimax-config.mjs +3 -3
- package/package.json +4 -1
- package/skills/hyper-animator-codex/SKILL.md +66 -22
- package/skills/hyper-animator-codex/agents/openai.yaml +2 -2
- package/skills/hyper-animator-codex/contracts/shot-plan.schema.json +280 -0
- package/skills/hyper-animator-codex/contracts/workflow-policy.json +97 -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 +99 -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 +32 -8
- package/skills/hyper-animator-codex/references/minimax-music-workflow.md +24 -4
- package/skills/hyper-animator-codex/references/narration-audio-workflow.md +47 -10
- 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/motion-pack/README.md +32 -0
- package/skills/hyper-animator-codex/references/shotcraft/motion-pack/shotcraft-motion-pack.js +178 -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/git_checkpoint.mjs +2 -2
- 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 +266 -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,248 @@
|
|
|
1
|
+
// unit-dot-swarm-regroup-v2 —— 单位点阵重组 v2(批次 6 "改改再看" 重做)
|
|
2
|
+
// 相对 v1 的加码:点数 200→320、点径 7→9;真实叙事语境:图例 "Each dot ≈ 40 customers",
|
|
3
|
+
// 聚簇时每簇上方浮真标签(Free · 7,210 / Pro · 4,102 / Enterprise · 1,535,Pro 琥珀主角色),
|
|
4
|
+
// 列队成柱时柱底浮真轴标 + 基线;终幕点阵聚成 "12,847"(1/2/,/8/4/7 位图字形),
|
|
5
|
+
// 下方浮 "Total customers"。阶段间 hold 更短(14/38/36f 间隔)、迁徙 spring 更冲
|
|
6
|
+
// (stiffness 110→150、DUR 26→20)。收尾 f126 后真静止 44f。
|
|
7
|
+
// 帧确定性:伪随机全用 sin 散列,无 Math.random / Date.now。
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { useCurrentFrame, spring, interpolate } from 'remotion';
|
|
10
|
+
import { G, TitleBlock } from '../_fixtures/Fixtures';
|
|
11
|
+
|
|
12
|
+
const AMBER = '#b45309';
|
|
13
|
+
const FPS = 30;
|
|
14
|
+
const N = 320;
|
|
15
|
+
const DOT_R = 9;
|
|
16
|
+
|
|
17
|
+
const M1 = 12; // 聚簇
|
|
18
|
+
const M2 = 48; // 列队成柱
|
|
19
|
+
const M3 = 84; // 收拢成 12,847
|
|
20
|
+
const DUR = 20;
|
|
21
|
+
const STAG = 8;
|
|
22
|
+
|
|
23
|
+
// 帧确定伪随机
|
|
24
|
+
const rnd = (i: number, salt: number): number => {
|
|
25
|
+
const x = Math.sin(i * 12.9898 + salt * 78.233) * 43758.5453;
|
|
26
|
+
return x - Math.floor(x);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// —— 阶段 0:散布(星群) ——
|
|
30
|
+
const scatter = (i: number): [number, number] => [
|
|
31
|
+
300 + rnd(i, 1) * 1320,
|
|
32
|
+
330 + rnd(i, 2) * 620,
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
// —— 分组:Free 180 / Pro 102 / Enterprise 38(每点 ≈ 40 customers) ——
|
|
36
|
+
const groupOf = (i: number): number => (i < 180 ? 0 : i < 282 ? 1 : 2);
|
|
37
|
+
const idxInGroup = (i: number): number => (i < 180 ? i : i < 282 ? i - 180 : i - 282);
|
|
38
|
+
const GROUP_N = [180, 102, 38];
|
|
39
|
+
const GROUP_LABEL = ['Free · 7,210', 'Pro · 4,102', 'Enterprise · 1,535'];
|
|
40
|
+
|
|
41
|
+
// —— 阶段 1:三簇(圆盘散布,sqrt 半径均匀) ——
|
|
42
|
+
const CLUSTER_C: [number, number][] = [
|
|
43
|
+
[520, 620],
|
|
44
|
+
[980, 570],
|
|
45
|
+
[1400, 640],
|
|
46
|
+
];
|
|
47
|
+
const CLUSTER_R = GROUP_N.map((n) => 58 + n * 0.46); // 141 / 105 / 75
|
|
48
|
+
const cluster = (i: number): [number, number] => {
|
|
49
|
+
const g = groupOf(i);
|
|
50
|
+
const r = Math.sqrt(rnd(i, 3)) * CLUSTER_R[g];
|
|
51
|
+
const a = rnd(i, 4) * Math.PI * 2;
|
|
52
|
+
return [CLUSTER_C[g][0] + r * Math.cos(a), CLUSTER_C[g][1] + r * Math.sin(a)];
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// —— 阶段 2:三根柱(8 点宽网格自底向上码放,底边对齐) ——
|
|
56
|
+
const BAR_BASE = 840;
|
|
57
|
+
const BAR_X = [520, 980, 1400];
|
|
58
|
+
const SPACING = 20;
|
|
59
|
+
const bar = (i: number): [number, number] => {
|
|
60
|
+
const g = groupOf(i);
|
|
61
|
+
const j = idxInGroup(i);
|
|
62
|
+
const col = j % 8;
|
|
63
|
+
const row = Math.floor(j / 8);
|
|
64
|
+
return [BAR_X[g] + (col - 3.5) * SPACING, BAR_BASE - row * SPACING];
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// —— 阶段 3:数字 "12,847" 点阵(5×7 位图 × 2×2 上采样 + 逗号) ——
|
|
68
|
+
const ONE = ['00100', '01100', '00100', '00100', '00100', '00100', '01110'];
|
|
69
|
+
const TWO = ['01110', '10001', '00001', '00010', '00100', '01000', '11111'];
|
|
70
|
+
const EIGHT = ['01110', '10001', '10001', '01110', '10001', '10001', '01110'];
|
|
71
|
+
const FOUR = ['00110', '01010', '10010', '11111', '00010', '00010', '00010'];
|
|
72
|
+
const SEVEN = ['11111', '00001', '00010', '00100', '00100', '00100', '00100'];
|
|
73
|
+
const CELL = 40;
|
|
74
|
+
const SUB = 20;
|
|
75
|
+
const Y0 = 390;
|
|
76
|
+
const cellPts = (x: number, y: number): [number, number][] => [
|
|
77
|
+
[x, y],
|
|
78
|
+
[x + SUB, y],
|
|
79
|
+
[x, y + SUB],
|
|
80
|
+
[x + SUB, y + SUB],
|
|
81
|
+
];
|
|
82
|
+
const buildDigit = (bitmap: string[], x0: number): [number, number][] => {
|
|
83
|
+
const out: [number, number][] = [];
|
|
84
|
+
bitmap.forEach((rowStr, r) => {
|
|
85
|
+
rowStr.split('').forEach((c, col) => {
|
|
86
|
+
if (c === '1') out.push(...cellPts(x0 + col * CELL, Y0 + r * CELL));
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
return out;
|
|
90
|
+
};
|
|
91
|
+
const DIGIT_PTS: [number, number][] = [
|
|
92
|
+
...buildDigit(ONE, 350),
|
|
93
|
+
...buildDigit(TWO, 590),
|
|
94
|
+
// 逗号:基线处两格,微斜的小尾巴
|
|
95
|
+
...cellPts(845, Y0 + 5.4 * CELL),
|
|
96
|
+
...cellPts(836, Y0 + 6.3 * CELL),
|
|
97
|
+
...buildDigit(EIGHT, 920),
|
|
98
|
+
...buildDigit(FOUR, 1160),
|
|
99
|
+
...buildDigit(SEVEN, 1400),
|
|
100
|
+
];
|
|
101
|
+
const digit = (i: number): [number, number] => {
|
|
102
|
+
const p = DIGIT_PTS[i % DIGIT_PTS.length];
|
|
103
|
+
const jx = (rnd(i, 5) - 0.5) * 7;
|
|
104
|
+
const jy = (rnd(i, 6) - 0.5) * 7;
|
|
105
|
+
return [p[0] + jx, p[1] + jy];
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const lerp = (a: [number, number], b: [number, number], t: number): [number, number] => [
|
|
109
|
+
a[0] + (b[0] - a[0]) * t,
|
|
110
|
+
a[1] + (b[1] - a[1]) * t,
|
|
111
|
+
];
|
|
112
|
+
|
|
113
|
+
const fade = (frame: number, inA: number, inB: number, outA?: number, outB?: number): number => {
|
|
114
|
+
const fi = interpolate(frame, [inA, inB], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
115
|
+
if (outA === undefined || outB === undefined) return fi;
|
|
116
|
+
const fo = interpolate(frame, [outA, outB], [1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' });
|
|
117
|
+
return Math.min(fi, fo);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const LABEL_FONT = 'Helvetica, Arial, sans-serif';
|
|
121
|
+
|
|
122
|
+
export const UnitDotSwarmRegroupV2: React.FC = () => {
|
|
123
|
+
const frame = useCurrentFrame();
|
|
124
|
+
|
|
125
|
+
const dots = Array.from({ length: N }, (_, i) => {
|
|
126
|
+
const stag = rnd(i, 7) * STAG;
|
|
127
|
+
const mig = (start: number) =>
|
|
128
|
+
spring({
|
|
129
|
+
frame: frame - start - stag,
|
|
130
|
+
fps: FPS,
|
|
131
|
+
config: { damping: 11.5, stiffness: 150, mass: 0.8 },
|
|
132
|
+
durationInFrames: DUR,
|
|
133
|
+
durationRestThreshold: 0.0001,
|
|
134
|
+
});
|
|
135
|
+
let p = scatter(i);
|
|
136
|
+
p = lerp(p, cluster(i), mig(M1));
|
|
137
|
+
p = lerp(p, bar(i), mig(M2));
|
|
138
|
+
p = lerp(p, digit(i), mig(M3));
|
|
139
|
+
return p;
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
// 各阶段标签透明度(迁徙完成后浮现,下一次迁徙启动即撤)
|
|
143
|
+
const clusterLabelOp = fade(frame, 38, 46, M2, M2 + 8);
|
|
144
|
+
const barLabelOp = fade(frame, 72, 80, M3, M3 + 8);
|
|
145
|
+
const captionOp = fade(frame, 114, 126);
|
|
146
|
+
|
|
147
|
+
return (
|
|
148
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
149
|
+
<div style={{ position: 'absolute', top: 110, width: '100%', textAlign: 'center' }}>
|
|
150
|
+
<TitleBlock text="UNIT DOT SWARM REGROUP V2" size={72} />
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
{/* 图例:每点的含义(全程挂角) */}
|
|
154
|
+
<div
|
|
155
|
+
style={{
|
|
156
|
+
position: 'absolute',
|
|
157
|
+
left: 90,
|
|
158
|
+
bottom: 70,
|
|
159
|
+
display: 'flex',
|
|
160
|
+
alignItems: 'center',
|
|
161
|
+
gap: 12,
|
|
162
|
+
fontFamily: LABEL_FONT,
|
|
163
|
+
fontSize: 24,
|
|
164
|
+
fontWeight: 600,
|
|
165
|
+
color: G.mid,
|
|
166
|
+
}}
|
|
167
|
+
>
|
|
168
|
+
<div style={{ width: 18, height: 18, borderRadius: 9, background: G.mid }} />
|
|
169
|
+
Each dot ≈ 40 customers
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', inset: 0 }}>
|
|
173
|
+
{dots.map((p, i) => (
|
|
174
|
+
<circle key={i} cx={p[0]} cy={p[1]} r={DOT_R} fill={groupOf(i) === 1 ? AMBER : groupOf(i) === 2 ? G.ink : G.mid} />
|
|
175
|
+
))}
|
|
176
|
+
</svg>
|
|
177
|
+
|
|
178
|
+
{/* 阶段 1:簇标签(真人数) */}
|
|
179
|
+
{clusterLabelOp > 0 &&
|
|
180
|
+
CLUSTER_C.map((c, g) => (
|
|
181
|
+
<div
|
|
182
|
+
key={`cl${g}`}
|
|
183
|
+
style={{
|
|
184
|
+
position: 'absolute',
|
|
185
|
+
left: c[0] - 200,
|
|
186
|
+
top: c[1] - CLUSTER_R[g] - 66,
|
|
187
|
+
width: 400,
|
|
188
|
+
textAlign: 'center',
|
|
189
|
+
fontFamily: LABEL_FONT,
|
|
190
|
+
fontSize: 30,
|
|
191
|
+
fontWeight: 700,
|
|
192
|
+
color: g === 1 ? AMBER : G.ink,
|
|
193
|
+
opacity: clusterLabelOp,
|
|
194
|
+
}}
|
|
195
|
+
>
|
|
196
|
+
{GROUP_LABEL[g]}
|
|
197
|
+
</div>
|
|
198
|
+
))}
|
|
199
|
+
|
|
200
|
+
{/* 阶段 2:柱底基线 + 真轴标 */}
|
|
201
|
+
{barLabelOp > 0 && (
|
|
202
|
+
<>
|
|
203
|
+
<div style={{ position: 'absolute', left: 380, width: 1160, top: BAR_BASE + 16, height: 3, background: G.bar, opacity: barLabelOp }} />
|
|
204
|
+
{BAR_X.map((x, g) => (
|
|
205
|
+
<div
|
|
206
|
+
key={`bl${g}`}
|
|
207
|
+
style={{
|
|
208
|
+
position: 'absolute',
|
|
209
|
+
left: x - 150,
|
|
210
|
+
top: BAR_BASE + 30,
|
|
211
|
+
width: 300,
|
|
212
|
+
textAlign: 'center',
|
|
213
|
+
fontFamily: LABEL_FONT,
|
|
214
|
+
fontSize: 28,
|
|
215
|
+
fontWeight: 700,
|
|
216
|
+
color: g === 1 ? AMBER : G.mid,
|
|
217
|
+
opacity: barLabelOp,
|
|
218
|
+
}}
|
|
219
|
+
>
|
|
220
|
+
{['Free', 'Pro', 'Enterprise'][g]}
|
|
221
|
+
</div>
|
|
222
|
+
))}
|
|
223
|
+
</>
|
|
224
|
+
)}
|
|
225
|
+
|
|
226
|
+
{/* 终幕:数字下方真文案 */}
|
|
227
|
+
{captionOp > 0 && (
|
|
228
|
+
<div
|
|
229
|
+
style={{
|
|
230
|
+
position: 'absolute',
|
|
231
|
+
left: 0,
|
|
232
|
+
width: 1920,
|
|
233
|
+
top: Y0 + 7 * CELL + 60,
|
|
234
|
+
textAlign: 'center',
|
|
235
|
+
fontFamily: LABEL_FONT,
|
|
236
|
+
fontSize: 34,
|
|
237
|
+
fontWeight: 600,
|
|
238
|
+
color: G.mid,
|
|
239
|
+
opacity: captionOp,
|
|
240
|
+
letterSpacing: 2,
|
|
241
|
+
}}
|
|
242
|
+
>
|
|
243
|
+
Total customers
|
|
244
|
+
</div>
|
|
245
|
+
)}
|
|
246
|
+
</div>
|
|
247
|
+
);
|
|
248
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// 圆心匹配光圈切(match-cut × iris-reveal 组合):
|
|
2
|
+
// 帧 0–30:景 A(列表面板)hold,第 2 行 44px 圆形头像做两次脉冲 + 扩散光环提示"看这里";
|
|
3
|
+
// 帧 30–75:景 B 以 clip-path: circle(r at CX CY) 从 22px 炸开到 2100px(Easing.inOut(cubic)),
|
|
4
|
+
// 景 B 是深色圆环图表页,圆环半径同步从 22px 长到 170px——在光圈吃满全屏前就"接住"头像的圆;
|
|
5
|
+
// 帧 45–100:圆环描边 sweep 到 78%,中央大数字随之浮现计数;帧 100–140 全属性静止收尾(≥35f)。
|
|
6
|
+
// 命门:两景的圆严格同心——CX/CY 写死为 FakeDashboard B 第 2 行头像的屏幕坐标常量。
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
9
|
+
import { FakeDashboard, G } from '../_fixtures/Fixtures';
|
|
10
|
+
|
|
11
|
+
// FakeDashboard variant B 第 2 行左侧 44px 头像的圆心(手算自 fixture 布局)
|
|
12
|
+
const CX = 308;
|
|
13
|
+
const CY = 384.8;
|
|
14
|
+
|
|
15
|
+
export const CircleMatchIris: React.FC = () => {
|
|
16
|
+
const f = useCurrentFrame();
|
|
17
|
+
|
|
18
|
+
// ---- 景 A:头像脉冲(帧 0–30,两次呼吸) ----
|
|
19
|
+
const pulseT = Math.min(f, 30) / 30;
|
|
20
|
+
const scale = f < 30 ? 1 + 0.45 * Math.abs(Math.sin(pulseT * Math.PI * 2)) : 1;
|
|
21
|
+
// 两道扩散光环
|
|
22
|
+
const waves = [0, 14].map((start) => {
|
|
23
|
+
const p = interpolate(f, [start, start + 16], [0, 1], {
|
|
24
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
25
|
+
});
|
|
26
|
+
return { r: 22 + p * 40, o: f < start + 16 ? 0.85 * (1 - p) : 0 };
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// ---- 光圈:景 B 从同一圆心炸开 ----
|
|
30
|
+
const irisR = interpolate(f, [30, 75], [22, 2100], {
|
|
31
|
+
easing: Easing.inOut(Easing.cubic),
|
|
32
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// ---- 景 B 圆环:半径从 22 长到 170,"接住"头像的圆 ----
|
|
36
|
+
const ringR = interpolate(f, [30, 70], [22, 170], {
|
|
37
|
+
easing: Easing.inOut(Easing.cubic),
|
|
38
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
39
|
+
});
|
|
40
|
+
const ringW = interpolate(f, [30, 70], [12, 40], {
|
|
41
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
42
|
+
});
|
|
43
|
+
// 描边 sweep 到 78%
|
|
44
|
+
const sweep = interpolate(f, [45, 100], [0, 0.78], {
|
|
45
|
+
easing: Easing.out(Easing.cubic),
|
|
46
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
47
|
+
});
|
|
48
|
+
const circ = 2 * Math.PI * ringR;
|
|
49
|
+
const num = Math.round(sweep * 100);
|
|
50
|
+
const numOpacity = interpolate(f, [68, 88], [0, 1], {
|
|
51
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
52
|
+
});
|
|
53
|
+
const furnitureOpacity = interpolate(f, [60, 85], [0, 1], {
|
|
54
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
return (
|
|
58
|
+
<div style={{ width: 1920, height: 1080, position: 'relative', overflow: 'hidden', background: G.bg }}>
|
|
59
|
+
{/* ===== 景 A:列表面板 ===== */}
|
|
60
|
+
<FakeDashboard variant="B" />
|
|
61
|
+
{/* 白色补丁盖住 fixture 自带的圆角方块,再叠真正的圆形头像 */}
|
|
62
|
+
<div style={{ position: 'absolute', left: CX - 23, top: CY - 23, width: 46, height: 46, background: G.card }} />
|
|
63
|
+
<div style={{
|
|
64
|
+
position: 'absolute', left: CX - 22, top: CY - 22, width: 44, height: 44,
|
|
65
|
+
borderRadius: 22, background: G.mid, border: `3px solid ${G.ink}`,
|
|
66
|
+
boxSizing: 'border-box', transform: `scale(${scale})`,
|
|
67
|
+
}} />
|
|
68
|
+
{/* 脉冲扩散光环 */}
|
|
69
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', left: 0, top: 0 }}>
|
|
70
|
+
{waves.map((w, i) => (
|
|
71
|
+
<circle key={i} cx={CX} cy={CY} r={w.r} fill="none" stroke={G.ink} strokeWidth={4} opacity={w.o} />
|
|
72
|
+
))}
|
|
73
|
+
</svg>
|
|
74
|
+
|
|
75
|
+
{/* ===== 景 B:深色圆环图表页,从同一圆心以光圈长出 ===== */}
|
|
76
|
+
{f >= 30 && (
|
|
77
|
+
<div style={{
|
|
78
|
+
position: 'absolute', left: 0, top: 0, width: 1920, height: 1080,
|
|
79
|
+
background: G.ink,
|
|
80
|
+
clipPath: `circle(${irisR}px at ${CX}px ${CY}px)`,
|
|
81
|
+
}}>
|
|
82
|
+
{/* 圆环 donut:圆心与头像严格同点 */}
|
|
83
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', left: 0, top: 0 }}>
|
|
84
|
+
{/* 底轨 */}
|
|
85
|
+
<circle cx={CX} cy={CY} r={ringR} fill="none" stroke="#5a5a58" strokeWidth={ringW} />
|
|
86
|
+
{/* sweep 弧,从正上方起 */}
|
|
87
|
+
<circle
|
|
88
|
+
cx={CX} cy={CY} r={ringR} fill="none" stroke="#ececea"
|
|
89
|
+
strokeWidth={ringW} strokeLinecap="round"
|
|
90
|
+
strokeDasharray={`${sweep * circ} ${circ}`}
|
|
91
|
+
transform={`rotate(-90 ${CX} ${CY})`}
|
|
92
|
+
/>
|
|
93
|
+
</svg>
|
|
94
|
+
{/* 中央大数字 */}
|
|
95
|
+
<div style={{
|
|
96
|
+
position: 'absolute', left: CX - 150, top: CY - 80, width: 300, height: 160,
|
|
97
|
+
display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center',
|
|
98
|
+
opacity: numOpacity,
|
|
99
|
+
}}>
|
|
100
|
+
<div style={{ fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800, fontSize: 96, color: '#f2f2f0', letterSpacing: -2 }}>
|
|
101
|
+
{num}%
|
|
102
|
+
</div>
|
|
103
|
+
<div style={{ marginTop: 6, height: 12, width: 130, background: '#6a6a68', borderRadius: 6 }} />
|
|
104
|
+
</div>
|
|
105
|
+
{/* 右侧页面家具:标题 + 统计条,证明这是一整页 */}
|
|
106
|
+
<div style={{ position: 'absolute', left: 680, top: 260, opacity: furnitureOpacity, display: 'flex', flexDirection: 'column', gap: 30 }}>
|
|
107
|
+
<div style={{ height: 34, width: 520, background: '#c2c2c0', borderRadius: 10 }} />
|
|
108
|
+
<div style={{ height: 16, width: 780, background: '#5a5a58', borderRadius: 8 }} />
|
|
109
|
+
<div style={{ height: 16, width: 640, background: '#5a5a58', borderRadius: 8 }} />
|
|
110
|
+
<div style={{ height: 16, width: 700, background: '#5a5a58', borderRadius: 8 }} />
|
|
111
|
+
<div style={{ display: 'flex', gap: 28, marginTop: 24 }}>
|
|
112
|
+
{[0, 1, 2].map((i) => (
|
|
113
|
+
<div key={i} style={{ width: 240, height: 150, background: '#454543', border: '2px solid #5a5a58', borderRadius: 14, padding: 20, boxSizing: 'border-box', display: 'flex', flexDirection: 'column', gap: 12 }}>
|
|
114
|
+
<div style={{ height: 12, width: `${55 + i * 12}%`, background: '#8f8f8d', borderRadius: 6 }} />
|
|
115
|
+
<div style={{ height: 30, width: '45%', background: '#c2c2c0', borderRadius: 8, marginTop: 'auto' }} />
|
|
116
|
+
</div>
|
|
117
|
+
))}
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
)}
|
|
122
|
+
</div>
|
|
123
|
+
);
|
|
124
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// cloner-depth-echo —— 克隆纵队
|
|
2
|
+
// 一张主卡瞬间"复印"出 7 个克隆体沿 Z 轴向后等距排开(间隔 120px、
|
|
3
|
+
// opacity 100%→20% 衰减、整队 8° rotateY 侧视),12f 错峰弹出;停 25f;
|
|
4
|
+
// 全部克隆加速吸回本体合一(10f ease-in),合体瞬间本体弹 1.08x。
|
|
5
|
+
// 收尾 f120 后真静止 40f。全部 frame 派生。
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { useCurrentFrame, interpolate, spring, Easing } from 'remotion';
|
|
8
|
+
import { G, Card, TitleBlock } from '../_fixtures/Fixtures';
|
|
9
|
+
|
|
10
|
+
const FPS = 30;
|
|
11
|
+
const N = 7; // 克隆数
|
|
12
|
+
const GAP_Z = 120;
|
|
13
|
+
|
|
14
|
+
const SPREAD_START = 18; // 排开起始帧
|
|
15
|
+
const HOLD_END = 18 + 12 + 25; // f55:停留结束
|
|
16
|
+
const MERGE_DUR = 10; // 吸回时长
|
|
17
|
+
|
|
18
|
+
export const ClonerDepthEcho: React.FC = () => {
|
|
19
|
+
const frame = useCurrentFrame();
|
|
20
|
+
|
|
21
|
+
// 吸回进度(全体同步,ease-in 加速)
|
|
22
|
+
const merge = interpolate(frame, [HOLD_END, HOLD_END + MERGE_DUR], [0, 1], {
|
|
23
|
+
easing: Easing.in(Easing.cubic),
|
|
24
|
+
extrapolateLeft: 'clamp',
|
|
25
|
+
extrapolateRight: 'clamp',
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// 合体瞬间本体弹一下
|
|
29
|
+
const popS = spring({
|
|
30
|
+
frame: frame - (HOLD_END + MERGE_DUR),
|
|
31
|
+
fps: FPS,
|
|
32
|
+
config: { damping: 11, stiffness: 200, mass: 0.7 },
|
|
33
|
+
durationInFrames: 18,
|
|
34
|
+
});
|
|
35
|
+
const heroScale = frame >= HOLD_END + MERGE_DUR ? 1 + 0.08 * Math.sin(popS * Math.PI) : 1;
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, overflow: 'hidden', position: 'relative' }}>
|
|
39
|
+
<div style={{ position: 'absolute', top: 100, width: '100%', textAlign: 'center' }}>
|
|
40
|
+
<TitleBlock text="CLONER DEPTH ECHO" size={72} />
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div style={{ position: 'absolute', inset: 0, perspective: 1600, perspectiveOrigin: '58% 46%' }}>
|
|
44
|
+
<div
|
|
45
|
+
style={{
|
|
46
|
+
position: 'absolute',
|
|
47
|
+
left: 960 - 260,
|
|
48
|
+
top: 540 - 170 + 40,
|
|
49
|
+
transformStyle: 'preserve-3d',
|
|
50
|
+
transform: 'rotateY(16deg)',
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
{/* 克隆队列:从后往前渲染保证遮挡正确 */}
|
|
54
|
+
{Array.from({ length: N }, (_, k) => N - k).map((idx) => {
|
|
55
|
+
// idx 1..N,idx 越大越靠后
|
|
56
|
+
const spread = spring({
|
|
57
|
+
frame: frame - SPREAD_START - (idx - 1) * 1.6,
|
|
58
|
+
fps: FPS,
|
|
59
|
+
config: { damping: 14, stiffness: 160, mass: 0.8 },
|
|
60
|
+
durationInFrames: 16,
|
|
61
|
+
});
|
|
62
|
+
const p = spread * (1 - merge);
|
|
63
|
+
const z = -GAP_Z * idx * p;
|
|
64
|
+
// 斜向错位让纵队肉眼可见(像侧看一列纵队)
|
|
65
|
+
const dx = 64 * idx * p;
|
|
66
|
+
const dy = -34 * idx * p;
|
|
67
|
+
const op = (1 - (idx / N) * 0.8) * spread * (1 - merge);
|
|
68
|
+
if (op <= 0.005) return null;
|
|
69
|
+
return (
|
|
70
|
+
<div
|
|
71
|
+
key={idx}
|
|
72
|
+
style={{
|
|
73
|
+
position: 'absolute',
|
|
74
|
+
transform: `translate3d(${dx.toFixed(2)}px, ${dy.toFixed(2)}px, ${z.toFixed(2)}px)`,
|
|
75
|
+
opacity: op,
|
|
76
|
+
}}
|
|
77
|
+
>
|
|
78
|
+
<Card w={520} h={340} seed={3} />
|
|
79
|
+
</div>
|
|
80
|
+
);
|
|
81
|
+
})}
|
|
82
|
+
{/* 本体 */}
|
|
83
|
+
<div style={{ position: 'absolute', transform: `translateZ(0px) scale(${heroScale.toFixed(4)})` }}>
|
|
84
|
+
<Card w={520} h={340} seed={3} style={{ boxShadow: '0 10px 36px rgba(31,28,23,0.22)' }} />
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
);
|
|
90
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// cursor-cast-ensemble —— figma 0:05 (cursor-badge-cast) + miro 全片 cursor-ensemble-ambience
|
|
2
|
+
// 5 枚具名彩色光标从画外飞入(弹簧减速+名牌淡入),落位后在灰阶画布上持续漂移、
|
|
3
|
+
// 指向、聚拢;灰阶便签当环境道具;其中一枚(Rita)在便签上实时打字补全一行文本
|
|
4
|
+
// (pitch collaborator-cameo 的打字戏并入)。
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { useCurrentFrame, spring, interpolate } from 'remotion';
|
|
7
|
+
import { G } from '../_fixtures/Fixtures';
|
|
8
|
+
|
|
9
|
+
const mulberry32 = (a: number) => () => {
|
|
10
|
+
let t = (a += 0x6d2b79f5);
|
|
11
|
+
t = Math.imul(t ^ (t >>> 15), t | 1);
|
|
12
|
+
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
|
|
13
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const FPS = 30;
|
|
17
|
+
const clamp01 = (t: number) => Math.min(1, Math.max(0, t));
|
|
18
|
+
const easeInOut = (t: number) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2);
|
|
19
|
+
|
|
20
|
+
type Actor = {
|
|
21
|
+
name: string; color: string;
|
|
22
|
+
from: [number, number]; home: [number, number];
|
|
23
|
+
delay: number; phase: number;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const ACTORS: Actor[] = [
|
|
27
|
+
{ name: 'Lisa', color: '#4C8DF6', from: [-160, 200], home: [430, 330], delay: 0, phase: 0.0 },
|
|
28
|
+
{ name: 'Lucas', color: '#2FBF71', from: [2080, 160], home: [1370, 290], delay: 5, phase: 1.7 },
|
|
29
|
+
{ name: 'Marta', color: '#F2994A', from: [-160, 900], home: [560, 760], delay: 9, phase: 3.1 },
|
|
30
|
+
{ name: 'Niko', color: '#4C8DF6', from: [2080, 950], home: [1420, 780], delay: 13, phase: 4.4 },
|
|
31
|
+
{ name: 'Rita', color: '#2FBF71', from: [900, -180], home: [960, 545], delay: 17, phase: 5.6 },
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
const TYPED = 'Our customers love it';
|
|
35
|
+
|
|
36
|
+
const CursorActor: React.FC<{ x: number; y: number; a: Actor; badge: number; scale?: number }> = ({
|
|
37
|
+
x, y, a, badge, scale = 2.1,
|
|
38
|
+
}) => (
|
|
39
|
+
<div style={{ position: 'absolute', left: x, top: y, transform: `scale(${scale})`, transformOrigin: '0 0', zIndex: 10 }}>
|
|
40
|
+
<svg width={30} height={44} viewBox="0 0 13.5 20" style={{ display: 'block', overflow: 'visible' }}>
|
|
41
|
+
<path d="M0.5 0.5 L0.5 17.2 L4.7 13.4 L7.3 19.5 L10 18.3 L7.4 12.3 L13 12.3 Z"
|
|
42
|
+
fill={a.color} stroke="#ffffff" strokeWidth={1.1} strokeLinejoin="round" />
|
|
43
|
+
</svg>
|
|
44
|
+
<div style={{
|
|
45
|
+
position: 'absolute', left: 24, top: 40, whiteSpace: 'nowrap',
|
|
46
|
+
background: a.color, color: '#fff', borderRadius: 7, padding: '4px 11px',
|
|
47
|
+
fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 700, fontSize: 14,
|
|
48
|
+
opacity: badge, transform: `translateY(${(1 - badge) * 10}px)`,
|
|
49
|
+
}}>
|
|
50
|
+
{a.name}
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
export const CursorCastEnsemble: React.FC = () => {
|
|
56
|
+
const f = useCurrentFrame();
|
|
57
|
+
const rnd = mulberry32(88);
|
|
58
|
+
// 便签的固定随机旋转
|
|
59
|
+
const noteRots = Array.from({ length: 4 }).map(() => (rnd() - 0.5) * 8);
|
|
60
|
+
|
|
61
|
+
// 聚拢时刻:90 帧后所有光标向中央便签聚拢
|
|
62
|
+
const gatherT = easeInOut(clamp01((f - 92) / 26));
|
|
63
|
+
const GATHER: [number, number][] = [
|
|
64
|
+
[770, 430], [1160, 420], [800, 640], [1130, 650], [960, 545],
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
// 打字进度(Rita 落位后开始,60–130 帧)
|
|
68
|
+
const typedCount = Math.floor(interpolate(f, [58, 118], [0, TYPED.length], {
|
|
69
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
70
|
+
}));
|
|
71
|
+
const caretOn = Math.floor(f / 8) % 2 === 0;
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
75
|
+
{/* 点阵无限画布底 */}
|
|
76
|
+
<div style={{
|
|
77
|
+
position: 'absolute', inset: 0,
|
|
78
|
+
backgroundImage: `radial-gradient(${G.line} 2.4px, transparent 2.4px)`,
|
|
79
|
+
backgroundSize: '46px 46px',
|
|
80
|
+
}} />
|
|
81
|
+
{/* 灰阶便签环境道具 */}
|
|
82
|
+
{[
|
|
83
|
+
{ x: 250, y: 170, s: 1 }, { x: 1490, y: 140, s: 2 },
|
|
84
|
+
{ x: 210, y: 700, s: 3 }, { x: 1530, y: 690, s: 4 },
|
|
85
|
+
].map((n, i) => (
|
|
86
|
+
<div key={i} style={{
|
|
87
|
+
position: 'absolute', left: n.x, top: n.y, width: 230, height: 210,
|
|
88
|
+
background: '#e6e6e2', border: `2px solid ${G.border}`, borderRadius: 6,
|
|
89
|
+
boxShadow: '0 4px 14px rgba(0,0,0,0.10)', transform: `rotate(${noteRots[i]}deg)`,
|
|
90
|
+
padding: 18, boxSizing: 'border-box', display: 'flex', flexDirection: 'column', gap: 12,
|
|
91
|
+
}}>
|
|
92
|
+
<div style={{ height: 12, width: '70%', background: G.bar, borderRadius: 6 }} />
|
|
93
|
+
<div style={{ height: 10, width: '86%', background: G.line, borderRadius: 5 }} />
|
|
94
|
+
<div style={{ height: 10, width: '58%', background: G.line, borderRadius: 5 }} />
|
|
95
|
+
</div>
|
|
96
|
+
))}
|
|
97
|
+
{/* 中央大便签:Rita 打字的舞台 */}
|
|
98
|
+
<div style={{
|
|
99
|
+
position: 'absolute', left: 660, top: 420, width: 600, height: 240,
|
|
100
|
+
background: '#ffffff', border: `2px solid ${G.border}`, borderRadius: 12,
|
|
101
|
+
boxShadow: '0 6px 22px rgba(0,0,0,0.12)', padding: 30, boxSizing: 'border-box',
|
|
102
|
+
}}>
|
|
103
|
+
<div style={{ height: 14, width: 180, background: G.bar, borderRadius: 7, marginBottom: 24 }} />
|
|
104
|
+
<div style={{
|
|
105
|
+
fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 700, fontSize: 44,
|
|
106
|
+
color: G.ink, letterSpacing: -0.5, minHeight: 56,
|
|
107
|
+
}}>
|
|
108
|
+
{TYPED.slice(0, typedCount)}
|
|
109
|
+
<span style={{
|
|
110
|
+
display: 'inline-block', width: 4, height: 44, background: '#2FBF71',
|
|
111
|
+
marginLeft: 3, verticalAlign: 'middle',
|
|
112
|
+
opacity: f > 50 && typedCount < TYPED.length ? (caretOn ? 1 : 0.15) : 0,
|
|
113
|
+
}} />
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
{/* 五枚光标 */}
|
|
118
|
+
{ACTORS.map((a, i) => {
|
|
119
|
+
const s = spring({ frame: f - a.delay, fps: FPS, config: { damping: 15, stiffness: 90, mass: 0.9 } });
|
|
120
|
+
let x = interpolate(s, [0, 1], [a.from[0], a.home[0]]);
|
|
121
|
+
let y = interpolate(s, [0, 1], [a.from[1], a.home[1]]);
|
|
122
|
+
// 落位后持续漂移 + 偶尔"指向"性的小冲刺
|
|
123
|
+
const settled = clamp01((f - a.delay - 26) / 10);
|
|
124
|
+
const driftX = Math.sin(f * 0.055 + a.phase) * 46 + Math.sin(f * 0.021 + a.phase * 2) * 30;
|
|
125
|
+
const driftY = Math.cos(f * 0.047 + a.phase * 1.3) * 38 + Math.cos(f * 0.017 + a.phase) * 24;
|
|
126
|
+
x += driftX * settled * (1 - gatherT * 0.55);
|
|
127
|
+
y += driftY * settled * (1 - gatherT * 0.55);
|
|
128
|
+
// 聚拢
|
|
129
|
+
x = interpolate(gatherT, [0, 1], [x, GATHER[i][0] + driftX * 0.25]);
|
|
130
|
+
y = interpolate(gatherT, [0, 1], [y, GATHER[i][1] + driftY * 0.25]);
|
|
131
|
+
const badge = clamp01((f - a.delay - 12) / 12);
|
|
132
|
+
return <CursorActor key={a.name} x={x} y={y} a={a} badge={badge} />;
|
|
133
|
+
})}
|
|
134
|
+
</div>
|
|
135
|
+
);
|
|
136
|
+
};
|