hyper-animator-codex 0.7.0 → 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 +67 -7
- package/bin/hyper-animator-codex.mjs +31 -9
- package/bin/postinstall.mjs +19 -0
- package/lib/install-options.mjs +3 -0
- package/lib/install-skill.mjs +84 -2
- package/lib/minimax-config.mjs +3 -3
- package/package.json +3 -2
- 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,129 @@
|
|
|
1
|
+
// overhead-tabletop-drop|上帝视角桌面滑降
|
|
2
|
+
// perspective(1600px) 内三张"页面卡"rotateX(62°) 平躺成桌面卡阵。
|
|
3
|
+
// 0–55f 相机横向滑过(只动 translateX,缓入缓出);55–85f 骤降扎入:
|
|
4
|
+
// rotateX 62→0 + 世界 scale 1→2.0(2% 过冲)+ translateX -650→0 三者同跑,
|
|
5
|
+
// 中间卡对位落成正视满屏 dashboard。全部动画 f=93 结束,收尾真静止 52f。
|
|
6
|
+
// 卡片 996×560(spec 900→996,使 FakeDashboard 0.5185 缩放严丝合缝、
|
|
7
|
+
// 落版 16:9 精确对位),间距 140px。
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { AbsoluteFill, interpolate, useCurrentFrame, Easing } from 'remotion';
|
|
10
|
+
import { FakeDashboard, Card, G } from '../_fixtures/Fixtures';
|
|
11
|
+
|
|
12
|
+
const CARD_W = 996;
|
|
13
|
+
const CARD_H = 560;
|
|
14
|
+
const GAP = 140;
|
|
15
|
+
const PITCH = CARD_W + GAP; // 1136
|
|
16
|
+
const INNER = CARD_H / 1080; // 0.5185:FakeDashboard 缩到卡内正好铺满
|
|
17
|
+
|
|
18
|
+
const PAN_END = 55;
|
|
19
|
+
const DROP_END = 85;
|
|
20
|
+
|
|
21
|
+
// 单张"页面卡":白底圆角卡,内容按 INNER 缩放塞满
|
|
22
|
+
const PageCard: React.FC<{ x: number; children: React.ReactNode }> = ({ x, children }) => (
|
|
23
|
+
<div
|
|
24
|
+
style={{
|
|
25
|
+
position: 'absolute',
|
|
26
|
+
left: x - CARD_W / 2,
|
|
27
|
+
top: -CARD_H / 2,
|
|
28
|
+
width: CARD_W,
|
|
29
|
+
height: CARD_H,
|
|
30
|
+
background: G.card,
|
|
31
|
+
border: `2px solid ${G.border}`,
|
|
32
|
+
borderRadius: 14,
|
|
33
|
+
overflow: 'hidden',
|
|
34
|
+
boxSizing: 'border-box',
|
|
35
|
+
boxShadow: '0 24px 48px rgba(0,0,0,0.22)',
|
|
36
|
+
backfaceVisibility: 'hidden',
|
|
37
|
+
transform: 'translateZ(4px)',
|
|
38
|
+
}}
|
|
39
|
+
>
|
|
40
|
+
<div style={{ width: 1920, height: 1080, transform: `scale(${INNER})`, transformOrigin: '0 0' }}>
|
|
41
|
+
{children}
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
export const OverheadTabletopDrop: React.FC = () => {
|
|
47
|
+
const f = useCurrentFrame();
|
|
48
|
+
|
|
49
|
+
// 0–55f 横滑:只动 translateX,缓入缓出
|
|
50
|
+
const panX = interpolate(f, [0, PAN_END], [700, -650], {
|
|
51
|
+
easing: Easing.inOut(Easing.cubic),
|
|
52
|
+
extrapolateLeft: 'clamp',
|
|
53
|
+
extrapolateRight: 'clamp',
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// 55–85f 骤降:角度 / 缩放 / 位移三者同跑,out-cubic + 2% 过冲
|
|
57
|
+
const drop = interpolate(f, [PAN_END, DROP_END], [0, 1], {
|
|
58
|
+
easing: Easing.out(Easing.cubic),
|
|
59
|
+
extrapolateLeft: 'clamp',
|
|
60
|
+
extrapolateRight: 'clamp',
|
|
61
|
+
});
|
|
62
|
+
const rotX = interpolate(f, [PAN_END, DROP_END, DROP_END + 4, DROP_END + 8], [62, -1.8, 0.6, 0], {
|
|
63
|
+
easing: Easing.out(Easing.cubic),
|
|
64
|
+
extrapolateLeft: 'clamp',
|
|
65
|
+
extrapolateRight: 'clamp',
|
|
66
|
+
});
|
|
67
|
+
const scale = interpolate(f, [PAN_END, DROP_END, DROP_END + 7], [1, 2.04, 2.0], {
|
|
68
|
+
easing: Easing.out(Easing.cubic),
|
|
69
|
+
extrapolateLeft: 'clamp',
|
|
70
|
+
extrapolateRight: 'clamp',
|
|
71
|
+
});
|
|
72
|
+
const dropX = interpolate(drop, [0, 1], [panX, 0]); // drop 段把 -650 收回 0
|
|
73
|
+
|
|
74
|
+
const tx = f <= PAN_END ? panX : dropX;
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
78
|
+
<div style={{ position: 'absolute', inset: 0, perspective: 1600, perspectiveOrigin: '50% 42%' }}>
|
|
79
|
+
{/* 世界原点 = 屏心;先 in-plane scale,再 rotateX,最后 translateX */}
|
|
80
|
+
<div
|
|
81
|
+
style={{
|
|
82
|
+
position: 'absolute',
|
|
83
|
+
left: '50%',
|
|
84
|
+
top: '50%',
|
|
85
|
+
width: 0,
|
|
86
|
+
height: 0,
|
|
87
|
+
transformStyle: 'preserve-3d',
|
|
88
|
+
transform: `translateX(${tx}px) rotateX(${rotX}deg) scale(${scale})`,
|
|
89
|
+
}}
|
|
90
|
+
>
|
|
91
|
+
{/* 桌面:浅灰底 + 网格线,给横滑段提供运动参照 */}
|
|
92
|
+
<div
|
|
93
|
+
style={{
|
|
94
|
+
position: 'absolute',
|
|
95
|
+
left: -2800,
|
|
96
|
+
top: -760,
|
|
97
|
+
width: 5600,
|
|
98
|
+
height: 1520,
|
|
99
|
+
background: '#e6e6e4',
|
|
100
|
+
backgroundImage: `repeating-linear-gradient(90deg, ${G.line} 0px, ${G.line} 2px, transparent 2px, transparent 160px), repeating-linear-gradient(0deg, ${G.line} 0px, ${G.line} 2px, transparent 2px, transparent 160px)`,
|
|
101
|
+
backfaceVisibility: 'hidden',
|
|
102
|
+
}}
|
|
103
|
+
/>
|
|
104
|
+
<PageCard x={-PITCH}>
|
|
105
|
+
<FakeDashboard variant="B" />
|
|
106
|
+
</PageCard>
|
|
107
|
+
{/* 目标页:落版满屏 */}
|
|
108
|
+
<PageCard x={0}>
|
|
109
|
+
<FakeDashboard variant="A" />
|
|
110
|
+
</PageCard>
|
|
111
|
+
<PageCard x={PITCH}>
|
|
112
|
+
<div
|
|
113
|
+
style={{
|
|
114
|
+
width: 1920,
|
|
115
|
+
height: 1080,
|
|
116
|
+
background: G.panel,
|
|
117
|
+
display: 'flex',
|
|
118
|
+
alignItems: 'center',
|
|
119
|
+
justifyContent: 'center',
|
|
120
|
+
}}
|
|
121
|
+
>
|
|
122
|
+
<Card w={760} h={520} seed={4} />
|
|
123
|
+
</div>
|
|
124
|
+
</PageCard>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</AbsoluteFill>
|
|
128
|
+
);
|
|
129
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// tilt-reveal|俯仰揭示
|
|
2
|
+
// 开场俯视 dashboard 顶部(rotateX 平躺、只露顶栏),~43f 机位抬头回正,
|
|
3
|
+
// 内容一排排涌入视野。out-cubic + 末端轻微过冲回正,落定真静止 ≥35f。
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { AbsoluteFill, interpolate, useCurrentFrame, Easing } from 'remotion';
|
|
6
|
+
import { FakeDashboard, G } from '../_fixtures/Fixtures';
|
|
7
|
+
|
|
8
|
+
const HOLD = 25; // 俯角定格
|
|
9
|
+
const MOVE = 43; // 主抬升
|
|
10
|
+
// 过冲:-55° → +2.6° → -0.9° → 0°,全部动画在 f=76 结束(145-76=69f 真静止)
|
|
11
|
+
|
|
12
|
+
export const TiltReveal: React.FC = () => {
|
|
13
|
+
const f = useCurrentFrame();
|
|
14
|
+
|
|
15
|
+
const rotX = interpolate(
|
|
16
|
+
f,
|
|
17
|
+
[HOLD, HOLD + MOVE, HOLD + MOVE + 4, HOLD + MOVE + 8],
|
|
18
|
+
[-80, 2.6, -0.9, 0],
|
|
19
|
+
{ easing: Easing.out(Easing.cubic), extrapolateLeft: 'clamp', extrapolateRight: 'clamp' },
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const p = interpolate(f, [HOLD, HOLD + MOVE], [0, 1], {
|
|
23
|
+
easing: Easing.out(Easing.cubic),
|
|
24
|
+
extrapolateLeft: 'clamp',
|
|
25
|
+
extrapolateRight: 'clamp',
|
|
26
|
+
});
|
|
27
|
+
const scale = interpolate(p, [0, 1], [3.2, 1]);
|
|
28
|
+
const ty = interpolate(p, [0, 1], [200, 0]);
|
|
29
|
+
const persp = interpolate(p, [0, 1], [600, 1200]);
|
|
30
|
+
const perspY = interpolate(p, [0, 1], [5, 40]);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<AbsoluteFill style={{ background: G.bg, overflow: 'hidden' }}>
|
|
34
|
+
<div
|
|
35
|
+
style={{
|
|
36
|
+
position: 'absolute',
|
|
37
|
+
inset: 0,
|
|
38
|
+
perspective: persp,
|
|
39
|
+
perspectiveOrigin: `50% ${perspY}%`,
|
|
40
|
+
}}
|
|
41
|
+
>
|
|
42
|
+
<div
|
|
43
|
+
style={{
|
|
44
|
+
width: 1920,
|
|
45
|
+
height: 1080,
|
|
46
|
+
transformOrigin: '50% 0%', // 画面上缘
|
|
47
|
+
transform: `translateY(${ty}px) scale(${scale}) rotateX(${rotX}deg)`,
|
|
48
|
+
}}
|
|
49
|
+
>
|
|
50
|
+
<FakeDashboard variant="A" />
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</AbsoluteFill>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// 对开门裂幕(barn-door-split-reveal)——剪映"开门式"转场。
|
|
2
|
+
// FakeDashboard A 从画面正中垂直裂成左右两半:两个 960×1080 overflow:hidden
|
|
3
|
+
// 容器各装一份完整 A(右半内层 translateX(-960) 对位拼合),同时向外加速滑
|
|
4
|
+
// 出画外,露出底层 FakeDashboard B 从 scale 1.06 轻推到 1.0 迎上来。
|
|
5
|
+
// 裂缝各自内边缘 2px G.ink 亮线 + 8px 投影强调"撕开"。
|
|
6
|
+
// 关键帧:0–30 静止展示 A(18–22 / 25–29 中缝细线两次闪现预告裂点)→
|
|
7
|
+
// 30–50 两半各 translateX ∓980(Easing.in cubic 加速滑出)→
|
|
8
|
+
// 30–55 底层 B scale 1.06→1.0(out cubic)→ 55–130 全静止(75f)。
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
11
|
+
import { G, FakeDashboard, TitleBlock } from '../_fixtures/Fixtures';
|
|
12
|
+
|
|
13
|
+
export const BarnDoorSplit: React.FC = () => {
|
|
14
|
+
const frame = useCurrentFrame();
|
|
15
|
+
|
|
16
|
+
// 两半外滑位移:30–50f,0 → 980px,加速离场
|
|
17
|
+
const slide = interpolate(frame, [30, 50], [0, 980], {
|
|
18
|
+
extrapolateLeft: 'clamp',
|
|
19
|
+
extrapolateRight: 'clamp',
|
|
20
|
+
easing: Easing.in(Easing.cubic),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// 底层 B:30–55f 从 1.06 轻推到 1.0 迎上来
|
|
24
|
+
const bScale = interpolate(frame, [30, 55], [1.06, 1.0], {
|
|
25
|
+
extrapolateLeft: 'clamp',
|
|
26
|
+
extrapolateRight: 'clamp',
|
|
27
|
+
easing: Easing.out(Easing.cubic),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// 裂前预告:中缝细线两次闪现(帧确定的开关,无随机)
|
|
31
|
+
const crackFlash =
|
|
32
|
+
(frame >= 18 && frame < 22) || (frame >= 25 && frame < 29);
|
|
33
|
+
// 裂开后内边缘亮线 + 阴影常驻(随门一起滑出画外)
|
|
34
|
+
const tornEdge = frame >= 30;
|
|
35
|
+
|
|
36
|
+
const edgeLine = (side: 'left' | 'right'): React.CSSProperties => ({
|
|
37
|
+
position: 'absolute',
|
|
38
|
+
top: 0,
|
|
39
|
+
[side]: 0,
|
|
40
|
+
width: 3,
|
|
41
|
+
height: 1080,
|
|
42
|
+
background: G.ink,
|
|
43
|
+
boxShadow:
|
|
44
|
+
side === 'right'
|
|
45
|
+
? '-8px 0 14px rgba(0,0,0,0.4)'
|
|
46
|
+
: '8px 0 14px rgba(0,0,0,0.4)',
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<div
|
|
51
|
+
style={{
|
|
52
|
+
width: 1920,
|
|
53
|
+
height: 1080,
|
|
54
|
+
background: G.bg,
|
|
55
|
+
position: 'relative',
|
|
56
|
+
overflow: 'hidden',
|
|
57
|
+
}}
|
|
58
|
+
>
|
|
59
|
+
{/* 底层 FakeDashboard B:scale 1.06 → 1.0 迎上来 */}
|
|
60
|
+
<div
|
|
61
|
+
style={{
|
|
62
|
+
position: 'absolute',
|
|
63
|
+
left: 0,
|
|
64
|
+
top: 0,
|
|
65
|
+
width: 1920,
|
|
66
|
+
height: 1080,
|
|
67
|
+
transform: `scale(${bScale})`,
|
|
68
|
+
transformOrigin: '50% 50%',
|
|
69
|
+
}}
|
|
70
|
+
>
|
|
71
|
+
<FakeDashboard variant="B" />
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
{/* 左门:960×1080 视口,装完整 A 的左半 */}
|
|
75
|
+
<div
|
|
76
|
+
style={{
|
|
77
|
+
position: 'absolute',
|
|
78
|
+
left: 0,
|
|
79
|
+
top: 0,
|
|
80
|
+
width: 960,
|
|
81
|
+
height: 1080,
|
|
82
|
+
overflow: 'hidden',
|
|
83
|
+
transform: `translateX(${-slide}px)`,
|
|
84
|
+
}}
|
|
85
|
+
>
|
|
86
|
+
<div style={{ position: 'absolute', left: 0, top: 0, width: 1920, height: 1080 }}>
|
|
87
|
+
<FakeDashboard variant="A" />
|
|
88
|
+
</div>
|
|
89
|
+
{tornEdge && <div style={edgeLine('right')} />}
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
{/* 右门:960×1080 视口,内层 translateX(-960) 对位拼合 */}
|
|
93
|
+
<div
|
|
94
|
+
style={{
|
|
95
|
+
position: 'absolute',
|
|
96
|
+
left: 960,
|
|
97
|
+
top: 0,
|
|
98
|
+
width: 960,
|
|
99
|
+
height: 1080,
|
|
100
|
+
overflow: 'hidden',
|
|
101
|
+
transform: `translateX(${slide}px)`,
|
|
102
|
+
}}
|
|
103
|
+
>
|
|
104
|
+
<div
|
|
105
|
+
style={{
|
|
106
|
+
position: 'absolute',
|
|
107
|
+
left: 0,
|
|
108
|
+
top: 0,
|
|
109
|
+
width: 1920,
|
|
110
|
+
height: 1080,
|
|
111
|
+
transform: 'translateX(-960px)',
|
|
112
|
+
}}
|
|
113
|
+
>
|
|
114
|
+
<FakeDashboard variant="A" />
|
|
115
|
+
</div>
|
|
116
|
+
{tornEdge && <div style={edgeLine('left')} />}
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
{/* 裂点预告:中缝 2px 细线闪现两次 */}
|
|
120
|
+
{crackFlash && (
|
|
121
|
+
<div
|
|
122
|
+
style={{
|
|
123
|
+
position: 'absolute',
|
|
124
|
+
left: 959,
|
|
125
|
+
top: 0,
|
|
126
|
+
width: 2,
|
|
127
|
+
height: 1080,
|
|
128
|
+
background: G.ink,
|
|
129
|
+
}}
|
|
130
|
+
/>
|
|
131
|
+
)}
|
|
132
|
+
|
|
133
|
+
<div style={{ position: 'absolute', left: 120, top: 96 }}>
|
|
134
|
+
<TitleBlock text="BARN DOOR SPLIT" size={54} />
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
);
|
|
138
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// 立方体空间翻转(cube-rotate)——cube transition 转场自实现。
|
|
2
|
+
// FakeDashboard A / B 各缩放 0.82 居中,当立方体相邻两面:perspective 1400px,
|
|
3
|
+
// 面宽 W=1920*0.82,两面各 rotateY(面角) translateZ(W/2),场景整体先
|
|
4
|
+
// translateZ(-W/2) 再 rotateY(θ)(把正面拉回 z=0,保证 hold 时精确 0.82 尺度)。
|
|
5
|
+
// 旧面 A 转出画面 brightness 1→0.55 压暗,新面 B 从 +90° 侧转入 0.55→1 亮起;
|
|
6
|
+
// 接缝两侧各一条竖向渐变阴影,随角度 sin(pπ) 加深再消失;转动中段叠 blur(1.5px),
|
|
7
|
+
// 落定摘掉(filter 条件挂载,保证收尾逐帧完全相同)。
|
|
8
|
+
// 关键帧:0–30 静止展示 A → 30–68 θ 0→-90°(inOut cubic)翻转 → 68–140 B 真静止 72f。
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
11
|
+
import { G, FakeDashboard, TitleBlock } from '../_fixtures/Fixtures';
|
|
12
|
+
|
|
13
|
+
const S = 0.82;
|
|
14
|
+
const W = 1920 * S; // 面宽 = 立方体棱长
|
|
15
|
+
const H = 1080 * S;
|
|
16
|
+
|
|
17
|
+
// 单个立方体面:W×H 视口内放缩放 0.82 的整幅 dashboard
|
|
18
|
+
const Face: React.FC<{
|
|
19
|
+
variant: 'A' | 'B';
|
|
20
|
+
rot: number; // 面自身的 rotateY(A=0,B=90)
|
|
21
|
+
brightness: number;
|
|
22
|
+
seam: number; // 接缝阴影不透明度 0–1
|
|
23
|
+
seamSide: 'right' | 'left'; // 阴影贴在哪条竖边(即共享棱一侧)
|
|
24
|
+
}> = ({ variant, rot, brightness, seam, seamSide }) => (
|
|
25
|
+
<div
|
|
26
|
+
style={{
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
width: W,
|
|
29
|
+
height: H,
|
|
30
|
+
overflow: 'hidden',
|
|
31
|
+
backfaceVisibility: 'hidden',
|
|
32
|
+
transform: `rotateY(${rot}deg) translateZ(${W / 2}px)`,
|
|
33
|
+
filter: `brightness(${brightness})`,
|
|
34
|
+
background: G.bg,
|
|
35
|
+
}}
|
|
36
|
+
>
|
|
37
|
+
<div style={{ transform: `scale(${S})`, transformOrigin: '0 0' }}>
|
|
38
|
+
<FakeDashboard variant={variant} />
|
|
39
|
+
</div>
|
|
40
|
+
{seam > 0.01 && (
|
|
41
|
+
<div
|
|
42
|
+
style={{
|
|
43
|
+
position: 'absolute',
|
|
44
|
+
top: 0,
|
|
45
|
+
[seamSide]: 0,
|
|
46
|
+
width: 150,
|
|
47
|
+
height: H,
|
|
48
|
+
opacity: seam,
|
|
49
|
+
background:
|
|
50
|
+
seamSide === 'right'
|
|
51
|
+
? 'linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.55))'
|
|
52
|
+
: 'linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,0.55))',
|
|
53
|
+
}}
|
|
54
|
+
/>
|
|
55
|
+
)}
|
|
56
|
+
</div>
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
export const CubeRotate: React.FC = () => {
|
|
60
|
+
const frame = useCurrentFrame();
|
|
61
|
+
// 翻转进度:30–68f,inOut cubic;两端 clamp 保证 hold 段逐帧恒定
|
|
62
|
+
const p = interpolate(frame, [30, 68], [0, 1], {
|
|
63
|
+
extrapolateLeft: 'clamp',
|
|
64
|
+
extrapolateRight: 'clamp',
|
|
65
|
+
easing: Easing.inOut(Easing.cubic),
|
|
66
|
+
});
|
|
67
|
+
const theta = -90 * p;
|
|
68
|
+
const brightA = 1 - 0.45 * p; // 旧面转出压暗 1→0.55
|
|
69
|
+
const brightB = 0.55 + 0.45 * p; // 新面转入亮起 0.55→1
|
|
70
|
+
const mid = Math.sin(p * Math.PI); // 0→1→0,45° 时最深
|
|
71
|
+
const seam = mid * 0.9;
|
|
72
|
+
const blur = mid * 1.5;
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
76
|
+
{/* blur 外包一层:>0.02 才挂 filter,落定后收尾帧完全相同 */}
|
|
77
|
+
<div
|
|
78
|
+
style={{
|
|
79
|
+
position: 'absolute',
|
|
80
|
+
inset: 0,
|
|
81
|
+
filter: blur > 0.02 ? `blur(${blur}px)` : undefined,
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
<div
|
|
85
|
+
style={{
|
|
86
|
+
position: 'absolute',
|
|
87
|
+
left: (1920 - W) / 2,
|
|
88
|
+
top: (1080 - H) / 2,
|
|
89
|
+
width: W,
|
|
90
|
+
height: H,
|
|
91
|
+
perspective: 1400,
|
|
92
|
+
}}
|
|
93
|
+
>
|
|
94
|
+
<div
|
|
95
|
+
style={{
|
|
96
|
+
position: 'absolute',
|
|
97
|
+
inset: 0,
|
|
98
|
+
transformStyle: 'preserve-3d',
|
|
99
|
+
transform: `translateZ(${-W / 2}px) rotateY(${theta}deg)`,
|
|
100
|
+
}}
|
|
101
|
+
>
|
|
102
|
+
{/* 面 A:正面出发,绕左而去;接缝棱在其右边 */}
|
|
103
|
+
<Face variant="A" rot={0} brightness={brightA} seam={seam} seamSide="right" />
|
|
104
|
+
{/* 面 B:从 +90° 侧面转进来;接缝棱在其左边 */}
|
|
105
|
+
<Face variant="B" rot={90} brightness={brightB} seam={seam} seamSide="left" />
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
<div style={{ position: 'absolute', left: 120, top: 60 }}>
|
|
110
|
+
<TitleBlock text="CUBE ROTATE" size={54} />
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
);
|
|
114
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
AbsoluteFill,
|
|
4
|
+
Img,
|
|
5
|
+
interpolate,
|
|
6
|
+
staticFile,
|
|
7
|
+
useCurrentFrame,
|
|
8
|
+
useVideoConfig,
|
|
9
|
+
} from 'remotion';
|
|
10
|
+
import { VerticalTicker, TickerColumn } from './VerticalTicker';
|
|
11
|
+
|
|
12
|
+
const BG = '#101014';
|
|
13
|
+
|
|
14
|
+
const shot = (file: string) => (
|
|
15
|
+
<div
|
|
16
|
+
style={{
|
|
17
|
+
borderRadius: 16,
|
|
18
|
+
overflow: 'hidden',
|
|
19
|
+
boxShadow: '0 12px 40px rgba(0,0,0,0.45)',
|
|
20
|
+
background: '#fff',
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
23
|
+
<Img src={staticFile(`textures/${file}`)} style={{ width: '100%', display: 'block' }} />
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
// 3 列差速反向(配方卡参数:loop 12/9/14s,中列反向)
|
|
28
|
+
export const buildColumns = (loops: [number, number, number]): TickerColumn[] => [
|
|
29
|
+
{
|
|
30
|
+
items: ['card1.png', 'card2.png', 'card3.png', 'card10.png'].map(shot),
|
|
31
|
+
durationInSeconds: loops[0],
|
|
32
|
+
direction: -1,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
items: ['card4.png', 'card5.png', 'card6.png', 'projects-empty.png'].map(shot),
|
|
36
|
+
durationInSeconds: loops[1],
|
|
37
|
+
direction: 1,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
items: ['card7.png', 'card8.png', 'card9.png', 'float-search.png'].map(shot),
|
|
41
|
+
durationInSeconds: loops[2],
|
|
42
|
+
direction: -1,
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
export const PageWaterfallWall: React.FC = () => {
|
|
47
|
+
const frame = useCurrentFrame();
|
|
48
|
+
const { durationInFrames } = useVideoConfig();
|
|
49
|
+
// 镜头缓推寄生在外层,墙自身循环、镜头单向
|
|
50
|
+
const push = interpolate(frame, [0, durationInFrames], [1, 1.06]);
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<AbsoluteFill style={{ backgroundColor: BG }}>
|
|
54
|
+
<AbsoluteFill style={{ transform: `scale(${push})` }}>
|
|
55
|
+
<VerticalTicker
|
|
56
|
+
columns={buildColumns([12, 9, 14])}
|
|
57
|
+
backgroundColor={BG}
|
|
58
|
+
columnWidth={560}
|
|
59
|
+
gap={30}
|
|
60
|
+
/>
|
|
61
|
+
</AbsoluteFill>
|
|
62
|
+
</AbsoluteFill>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// 接缝自检用:短 loop(3s=90f)、无镜头推,f0 与 f90 应逐像素一致
|
|
67
|
+
export const SeamTest: React.FC = () => (
|
|
68
|
+
<AbsoluteFill style={{ backgroundColor: BG }}>
|
|
69
|
+
<VerticalTicker
|
|
70
|
+
columns={buildColumns([3, 3, 3])}
|
|
71
|
+
backgroundColor={BG}
|
|
72
|
+
columnWidth={560}
|
|
73
|
+
gap={30}
|
|
74
|
+
/>
|
|
75
|
+
</AbsoluteFill>
|
|
76
|
+
);
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// origin: vibe-motion/skills remotion-3d-ticker assets/VerticalTicker.tsx
|
|
2
|
+
// (2026-07-13 扫描,2026-07-15 吸收;改动:items 泛化为 ReactNode、
|
|
3
|
+
// 遮罩高度/透视角/scale/列宽/间距提为 props)
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { AbsoluteFill, useCurrentFrame, useVideoConfig } from 'remotion';
|
|
6
|
+
|
|
7
|
+
export interface TickerColumn {
|
|
8
|
+
/** Column content — any ReactNode (screenshot-slice divs, <Img>, text cards…) */
|
|
9
|
+
items: React.ReactNode[];
|
|
10
|
+
/** Seconds for one full loop (one copy of items scrolling its own height) */
|
|
11
|
+
durationInSeconds: number;
|
|
12
|
+
/** -1 scrolls up, 1 scrolls down */
|
|
13
|
+
direction: -1 | 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface VerticalTickerProps {
|
|
17
|
+
columns: TickerColumn[];
|
|
18
|
+
/** Background color, also used by the top/bottom fade masks */
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
/** Height of each fade mask in px */
|
|
21
|
+
maskHeight?: number;
|
|
22
|
+
/** rotateX tilt of the whole wall, degrees */
|
|
23
|
+
tiltDeg?: number;
|
|
24
|
+
/** CSS perspective distance in px */
|
|
25
|
+
perspective?: number;
|
|
26
|
+
/** Overall scale of the tilted wall (compensates perspective shrink) */
|
|
27
|
+
scale?: number;
|
|
28
|
+
/** Column width in px */
|
|
29
|
+
columnWidth?: number;
|
|
30
|
+
/** Gap between columns and between items within a column, px */
|
|
31
|
+
gap?: number;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 3D 透视多列无限纵向滚动墙。每列 [...items, ...items] 翻倍 +
|
|
36
|
+
* progress 取模 translateY 0→-50%:前半段恰好滚出视口时归零,
|
|
37
|
+
* 后半段与前半段像素级一致,循环点不可见。
|
|
38
|
+
* 接缝无痕的前提:-50% 必须恰等于单副本周期(内容高 + n 个 gap)。
|
|
39
|
+
* 源实现用 flex gap(翻倍后只有 2n-1 个 gap)会差 gap/2 px 跳一下,
|
|
40
|
+
* 这里改为每项 marginBottom = gap,容器高恰为周期两倍。
|
|
41
|
+
*/
|
|
42
|
+
export const VerticalTicker: React.FC<VerticalTickerProps> = ({
|
|
43
|
+
columns,
|
|
44
|
+
backgroundColor = '#000',
|
|
45
|
+
maskHeight = 200,
|
|
46
|
+
tiltDeg = 20,
|
|
47
|
+
perspective = 1000,
|
|
48
|
+
scale = 1.2,
|
|
49
|
+
columnWidth = 400,
|
|
50
|
+
gap = 30,
|
|
51
|
+
}) => {
|
|
52
|
+
return (
|
|
53
|
+
<AbsoluteFill style={{ backgroundColor, overflow: 'hidden' }}>
|
|
54
|
+
<div
|
|
55
|
+
style={{
|
|
56
|
+
width: '100%',
|
|
57
|
+
height: '100%',
|
|
58
|
+
display: 'flex',
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
gap,
|
|
61
|
+
transform: `perspective(${perspective}px) rotateX(${tiltDeg}deg) scale(${scale})`,
|
|
62
|
+
transformOrigin: 'center center',
|
|
63
|
+
}}
|
|
64
|
+
>
|
|
65
|
+
{columns.map((col, idx) => (
|
|
66
|
+
<Column key={idx} {...col} width={columnWidth} gap={gap} />
|
|
67
|
+
))}
|
|
68
|
+
</div>
|
|
69
|
+
{/* Fade masks sit above the wall so rows enter/exit softly */}
|
|
70
|
+
<div
|
|
71
|
+
style={{
|
|
72
|
+
position: 'absolute',
|
|
73
|
+
top: 0,
|
|
74
|
+
left: 0,
|
|
75
|
+
right: 0,
|
|
76
|
+
height: maskHeight,
|
|
77
|
+
background: `linear-gradient(to bottom, ${backgroundColor} 0%, transparent 100%)`,
|
|
78
|
+
zIndex: 10,
|
|
79
|
+
}}
|
|
80
|
+
/>
|
|
81
|
+
<div
|
|
82
|
+
style={{
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
bottom: 0,
|
|
85
|
+
left: 0,
|
|
86
|
+
right: 0,
|
|
87
|
+
height: maskHeight,
|
|
88
|
+
background: `linear-gradient(to top, ${backgroundColor} 0%, transparent 100%)`,
|
|
89
|
+
zIndex: 10,
|
|
90
|
+
}}
|
|
91
|
+
/>
|
|
92
|
+
</AbsoluteFill>
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const Column: React.FC<TickerColumn & { width: number; gap: number }> = ({
|
|
97
|
+
items,
|
|
98
|
+
durationInSeconds,
|
|
99
|
+
direction,
|
|
100
|
+
width,
|
|
101
|
+
gap,
|
|
102
|
+
}) => {
|
|
103
|
+
const frame = useCurrentFrame();
|
|
104
|
+
const { fps } = useVideoConfig();
|
|
105
|
+
|
|
106
|
+
const loopFrames = durationInSeconds * fps;
|
|
107
|
+
const progress = (frame % loopFrames) / loopFrames;
|
|
108
|
+
// up: 0 → -50%; down: -50% → 0(起点即偏移半程,首帧无空白)
|
|
109
|
+
const translateY = direction === -1 ? progress * -50 : -50 + progress * 50;
|
|
110
|
+
|
|
111
|
+
return (
|
|
112
|
+
<div style={{ width, height: '100%', display: 'flex', flexDirection: 'column' }}>
|
|
113
|
+
<div
|
|
114
|
+
style={{
|
|
115
|
+
display: 'flex',
|
|
116
|
+
flexDirection: 'column',
|
|
117
|
+
transform: `translateY(${translateY}%)`,
|
|
118
|
+
willChange: 'transform',
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
{[...items, ...items].map((node, i) => (
|
|
122
|
+
<div key={i} style={{ marginBottom: gap }}>
|
|
123
|
+
{node}
|
|
124
|
+
</div>
|
|
125
|
+
))}
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
);
|
|
129
|
+
};
|