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,92 @@
|
|
|
1
|
+
// 文字沿曲线流入(text-on-path)——字符沿一条上升贝塞尔曲线(像图表增长线)
|
|
2
|
+
// 鱼贯滑入,行进中按切线角旋转;到达各自终点后再从"贴线姿态"lerp 到水平基线位
|
|
3
|
+
// 拼成正常标题。曲线本身随字符前进同步 evolve(dashoffset 生长)。
|
|
4
|
+
// 关键帧:字符 i 于 i*2 起跑、45f 沿线到达 t_i(out cubic)→ 到达后停 8f →
|
|
5
|
+
// 12f 摆正到水平基线(y 拉平、rotate→0)→ 全部落定约 f103 → 103–150 真静止。
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
8
|
+
import { G, TitleBlock } from '../_fixtures/Fixtures';
|
|
9
|
+
|
|
10
|
+
// 上升贝塞尔:左下 → 右上,先缓后陡(增长线形状)
|
|
11
|
+
const P0 = { x: 200, y: 820 };
|
|
12
|
+
const P1 = { x: 760, y: 810 };
|
|
13
|
+
const P2 = { x: 1240, y: 660 };
|
|
14
|
+
const P3 = { x: 1500, y: 320 };
|
|
15
|
+
|
|
16
|
+
const bez = (t: number) => {
|
|
17
|
+
const u = 1 - t;
|
|
18
|
+
return {
|
|
19
|
+
x: u * u * u * P0.x + 3 * u * u * t * P1.x + 3 * u * t * t * P2.x + t * t * t * P3.x,
|
|
20
|
+
y: u * u * u * P0.y + 3 * u * u * t * P1.y + 3 * u * t * t * P2.y + t * t * t * P3.y,
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
// 切线角(度)
|
|
24
|
+
const tangent = (t: number) => {
|
|
25
|
+
const u = 1 - t;
|
|
26
|
+
const dx = 3 * u * u * (P1.x - P0.x) + 6 * u * t * (P2.x - P1.x) + 3 * t * t * (P3.x - P2.x);
|
|
27
|
+
const dy = 3 * u * u * (P1.y - P0.y) + 6 * u * t * (P2.y - P1.y) + 3 * t * t * (P3.y - P2.y);
|
|
28
|
+
return (Math.atan2(dy, dx) * 180) / Math.PI;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const TEXT = 'GROWTH ALL THE WAY';
|
|
32
|
+
const N = TEXT.length;
|
|
33
|
+
const CHAR_W = 46; // 64px fontWeight 800 的近似字宽
|
|
34
|
+
const FINAL_Y = 300; // 水平基线(标题最终落位)
|
|
35
|
+
const FINAL_X0 = 960 - (N * CHAR_W) / 2;
|
|
36
|
+
|
|
37
|
+
export const TextOnPath: React.FC = () => {
|
|
38
|
+
const frame = useCurrentFrame();
|
|
39
|
+
// 曲线 evolve:随最前字符推进同步生长
|
|
40
|
+
const evolve = interpolate(frame, [0, 82], [0, 1], {
|
|
41
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
42
|
+
easing: Easing.out(Easing.quad),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
47
|
+
<div style={{ position: 'absolute', left: 120, top: 96 }}>
|
|
48
|
+
<TitleBlock text="TEXT ON PATH" size={54} />
|
|
49
|
+
</div>
|
|
50
|
+
<svg width={1920} height={1080} style={{ position: 'absolute', inset: 0 }}>
|
|
51
|
+
<path
|
|
52
|
+
d={`M ${P0.x} ${P0.y} C ${P1.x} ${P1.y}, ${P2.x} ${P2.y}, ${P3.x} ${P3.y}`}
|
|
53
|
+
fill="none" stroke={G.bar} strokeWidth={3}
|
|
54
|
+
pathLength={1} strokeDasharray={1} strokeDashoffset={1 - evolve}
|
|
55
|
+
/>
|
|
56
|
+
</svg>
|
|
57
|
+
{TEXT.split('').map((ch, i) => {
|
|
58
|
+
if (ch === ' ') return null;
|
|
59
|
+
const tEnd = 0.12 + 0.82 * (i / (N - 1)); // 各字符沿线终点
|
|
60
|
+
const start = i * 2;
|
|
61
|
+
// 沿线推进:start 起 45f 到达 tEnd
|
|
62
|
+
const t = interpolate(frame, [start, start + 45], [0, tEnd], {
|
|
63
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
64
|
+
easing: Easing.out(Easing.cubic),
|
|
65
|
+
});
|
|
66
|
+
const pOnCurve = bez(t);
|
|
67
|
+
const angOnCurve = tangent(t);
|
|
68
|
+
// 到达后停 8f,再 12f 摆正到水平基线
|
|
69
|
+
const settle = interpolate(frame, [start + 53, start + 65], [0, 1], {
|
|
70
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
71
|
+
easing: Easing.inOut(Easing.cubic),
|
|
72
|
+
});
|
|
73
|
+
const x = pOnCurve.x + (FINAL_X0 + i * CHAR_W - pOnCurve.x) * settle;
|
|
74
|
+
const y = pOnCurve.y + (FINAL_Y - pOnCurve.y) * settle;
|
|
75
|
+
const ang = angOnCurve * (1 - settle);
|
|
76
|
+
const op = interpolate(frame, [start, start + 8], [0, 1], {
|
|
77
|
+
extrapolateLeft: 'clamp', extrapolateRight: 'clamp',
|
|
78
|
+
});
|
|
79
|
+
return (
|
|
80
|
+
<div key={i} style={{
|
|
81
|
+
position: 'absolute', left: x, top: y, opacity: op,
|
|
82
|
+
transform: `translate(-50%, -50%) rotate(${ang}deg)`,
|
|
83
|
+
fontFamily: 'Helvetica, Arial, sans-serif', fontWeight: 800,
|
|
84
|
+
fontSize: 64, color: G.ink,
|
|
85
|
+
}}>
|
|
86
|
+
{ch}
|
|
87
|
+
</div>
|
|
88
|
+
);
|
|
89
|
+
})}
|
|
90
|
+
</div>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// 字距呼吸展开(tracking-expand-reveal)——电影片头字幕惯用的 letter-spacing 入场。
|
|
2
|
+
// 标题 "BREATHE"(150px)出场时字符几乎叠压(相当于 letter-spacing -0.42em),
|
|
3
|
+
// 50 帧内展开到 0.14em,同步 blur 10px→0、opacity 0.6→1、scaleX 0.92→1。
|
|
4
|
+
// 不动 letter-spacing 本身(逐帧重排会抖):容器常量 letterSpacing 0.14em 定终位,
|
|
5
|
+
// 逐字符 span 用 translateX 手动插值——第 i 字起始位移 = (i - 中心) × 每缝差值 84px,
|
|
6
|
+
// 全部挤向词心,位移只与字缝有关、与字宽无关,天然对中。
|
|
7
|
+
// 关键帧:0–50 展开(Easing.out(poly(5)))+去糊提亮 → 35–58 副标题淡入(≈主词展开 70% 时点)
|
|
8
|
+
// → 58–130 全静止(≥72f,滤镜彻底摘除)。
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { useCurrentFrame, interpolate, Easing } from 'remotion';
|
|
11
|
+
import { G, TitleBlock } from '../_fixtures/Fixtures';
|
|
12
|
+
|
|
13
|
+
const WORD = 'BREATHE';
|
|
14
|
+
const FS = 150; // 主词字号
|
|
15
|
+
// 每个字缝的起始-终点差:(-0.42em) - (0.14em) = -0.56em = -84px @150px
|
|
16
|
+
const GAP_DELTA = -0.56 * FS;
|
|
17
|
+
|
|
18
|
+
export const TrackingExpandReveal: React.FC = () => {
|
|
19
|
+
const frame = useCurrentFrame();
|
|
20
|
+
// 展开进度 0→1(0–50f,out poly(5))
|
|
21
|
+
const p = interpolate(frame, [0, 50], [0, 1], {
|
|
22
|
+
extrapolateLeft: 'clamp',
|
|
23
|
+
extrapolateRight: 'clamp',
|
|
24
|
+
easing: Easing.out(Easing.poly(5)),
|
|
25
|
+
});
|
|
26
|
+
const blur = 10 * (1 - p);
|
|
27
|
+
const op = interpolate(p, [0, 1], [0.6, 1]);
|
|
28
|
+
const sx = interpolate(p, [0, 1], [0.92, 1]);
|
|
29
|
+
// 副标题:主词时间轴走到 70%(帧 35)起淡入
|
|
30
|
+
const subOp = interpolate(frame, [35, 58], [0, 1], {
|
|
31
|
+
extrapolateLeft: 'clamp',
|
|
32
|
+
extrapolateRight: 'clamp',
|
|
33
|
+
easing: Easing.out(Easing.quad),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const N = WORD.length;
|
|
37
|
+
const center = (N - 1) / 2;
|
|
38
|
+
const settled = frame >= 50; // 展开完成后摘掉一切滤镜/变换,保证逐帧完全相同
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, position: 'relative', overflow: 'hidden' }}>
|
|
42
|
+
<div style={{ position: 'absolute', left: 120, top: 96 }}>
|
|
43
|
+
<TitleBlock text="TRACKING EXPAND REVEAL" size={54} />
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
{/* 主词:容器 letterSpacing 恒为 0.14em(终态),字符仅做 translateX */}
|
|
47
|
+
<div
|
|
48
|
+
style={{
|
|
49
|
+
position: 'absolute',
|
|
50
|
+
top: 430,
|
|
51
|
+
left: 0,
|
|
52
|
+
width: 1920,
|
|
53
|
+
display: 'flex',
|
|
54
|
+
justifyContent: 'center',
|
|
55
|
+
transform: settled ? undefined : `scaleX(${sx})`,
|
|
56
|
+
filter: settled ? undefined : `blur(${blur}px)`,
|
|
57
|
+
opacity: settled ? 1 : op,
|
|
58
|
+
}}
|
|
59
|
+
>
|
|
60
|
+
<div
|
|
61
|
+
style={{
|
|
62
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
63
|
+
fontWeight: 800,
|
|
64
|
+
fontSize: FS,
|
|
65
|
+
color: G.ink,
|
|
66
|
+
letterSpacing: '0.14em',
|
|
67
|
+
whiteSpace: 'pre',
|
|
68
|
+
// letter-spacing 只加在字后,整体左移半个缝宽找回视觉对中
|
|
69
|
+
marginLeft: 0.14 * FS * 0.5,
|
|
70
|
+
}}
|
|
71
|
+
>
|
|
72
|
+
{WORD.split('').map((ch, i) => {
|
|
73
|
+
const tx = (1 - p) * (i - center) * GAP_DELTA;
|
|
74
|
+
return (
|
|
75
|
+
<span
|
|
76
|
+
key={i}
|
|
77
|
+
style={{
|
|
78
|
+
display: 'inline-block',
|
|
79
|
+
transform: settled ? undefined : `translateX(${tx}px)`,
|
|
80
|
+
}}
|
|
81
|
+
>
|
|
82
|
+
{ch}
|
|
83
|
+
</span>
|
|
84
|
+
);
|
|
85
|
+
})}
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
{/* 副标题:主词展开 70% 时点淡入 */}
|
|
90
|
+
<div
|
|
91
|
+
style={{
|
|
92
|
+
position: 'absolute',
|
|
93
|
+
top: 630,
|
|
94
|
+
left: 0,
|
|
95
|
+
width: 1920,
|
|
96
|
+
textAlign: 'center',
|
|
97
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
98
|
+
fontWeight: 500,
|
|
99
|
+
fontSize: 34,
|
|
100
|
+
color: G.mid,
|
|
101
|
+
letterSpacing: '0.32em',
|
|
102
|
+
opacity: frame >= 58 ? 1 : subOp,
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
105
|
+
A CINEMATIC TITLE ENTRANCE
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
);
|
|
109
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// 字符坠落堆积(letter-drop-physics)——FallingLetterAnimation。
|
|
2
|
+
// "GRAVITY" 7 字符各自绝对定位,第 i 字符从帧 10+i*5 起下落:
|
|
3
|
+
// ① 重力加速 y = D*(t/24)^2 掉 720px 到基线(地板线可见);
|
|
4
|
+
// ② 落地后 2 次衰减弹跳(高度 30% / 9%,抛物线 4u(1-u) 拼段),
|
|
5
|
+
// 落地瞬间 rotate 到 seed hash ±6° 小歪角并保持;
|
|
6
|
+
// ③ 帧 110 一拍:6f ease-out 全体齐整回正(rotate→0、偏移→0、scale 1.06→1),
|
|
7
|
+
// 帧 116–150 真静止(≥25f)收尾。
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import { useCurrentFrame, Easing } from 'remotion';
|
|
10
|
+
import { G } from '../_fixtures/Fixtures';
|
|
11
|
+
|
|
12
|
+
// 确定性伪随机
|
|
13
|
+
const h = (n: number) => {
|
|
14
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
15
|
+
return s - Math.floor(s);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const WORD = 'GRAVITY';
|
|
19
|
+
const SLOT_W = 150; // 每字符槽宽
|
|
20
|
+
const FONT = 140;
|
|
21
|
+
const WORD_W = WORD.length * SLOT_W; // 1050
|
|
22
|
+
const LEFT = (1920 - WORD_W) / 2; // 435
|
|
23
|
+
const REST_TOP = 452; // 字符落定后的 top
|
|
24
|
+
const FLOOR_Y = REST_TOP + 152; // 地板线(视觉基线)
|
|
25
|
+
|
|
26
|
+
const DROP = 720; // 下落距离
|
|
27
|
+
const T_FALL = 24; // 落到基线用时
|
|
28
|
+
const T_B1 = 16; // 第一次弹跳时长(高 30%)
|
|
29
|
+
const T_B2 = 8; // 第二次弹跳时长(高 9%)
|
|
30
|
+
const SNAP = 110; // 齐整回正的一拍
|
|
31
|
+
const SNAP_DUR = 6;
|
|
32
|
+
|
|
33
|
+
const easeOutCubic = Easing.out(Easing.cubic);
|
|
34
|
+
const clamp01 = (x: number) => Math.min(1, Math.max(0, x));
|
|
35
|
+
|
|
36
|
+
// 单字符纵向位移(相对基线,负 = 在上方)
|
|
37
|
+
const dropY = (t: number): number => {
|
|
38
|
+
if (t <= 0) return -DROP;
|
|
39
|
+
if (t < T_FALL) return -DROP + DROP * (t / T_FALL) ** 2; // 重力加速
|
|
40
|
+
if (t < T_FALL + T_B1) {
|
|
41
|
+
const u = (t - T_FALL) / T_B1;
|
|
42
|
+
return -DROP * 0.3 * 4 * u * (1 - u); // 弹跳 1:30%
|
|
43
|
+
}
|
|
44
|
+
if (t < T_FALL + T_B1 + T_B2) {
|
|
45
|
+
const u = (t - T_FALL - T_B1) / T_B2;
|
|
46
|
+
return -DROP * 0.09 * 4 * u * (1 - u); // 弹跳 2:9%
|
|
47
|
+
}
|
|
48
|
+
return 0;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const LetterDropPhysics: React.FC = () => {
|
|
52
|
+
const frame = useCurrentFrame();
|
|
53
|
+
// 帧 110 起的齐整回正进度
|
|
54
|
+
const snap = easeOutCubic(clamp01((frame - SNAP) / SNAP_DUR));
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<div style={{ width: 1920, height: 1080, background: G.bg, overflow: 'hidden', position: 'relative' }}>
|
|
58
|
+
{/* 地板线:字符落点的视觉基线 */}
|
|
59
|
+
<div style={{ position: 'absolute', left: LEFT - 60, top: FLOOR_Y, width: WORD_W + 120, height: 6, background: G.bar, borderRadius: 3 }} />
|
|
60
|
+
|
|
61
|
+
{WORD.split('').map((ch, i) => {
|
|
62
|
+
const start = 10 + i * 5;
|
|
63
|
+
const t = frame - start;
|
|
64
|
+
const y = dropY(t);
|
|
65
|
+
// 落地瞬间歪到 seed 小角度(±6°),落地前为 0
|
|
66
|
+
const tiltTarget = (h(i + 1) - 0.5) * 12;
|
|
67
|
+
const landP = clamp01((t - T_FALL) / 6);
|
|
68
|
+
const restJitter = (h(i + 11) - 0.5) * 10; // 落定后的 ±5px 竖向错位
|
|
69
|
+
// snap 一拍:歪角与错位齐整归零,scale 1.06→1 脉冲
|
|
70
|
+
const rot = tiltTarget * landP * (1 - snap);
|
|
71
|
+
const jitter = restJitter * landP * (1 - snap);
|
|
72
|
+
const scale = frame < SNAP ? 1 : 1 + 0.06 * (1 - snap);
|
|
73
|
+
return (
|
|
74
|
+
<div
|
|
75
|
+
key={i}
|
|
76
|
+
style={{
|
|
77
|
+
position: 'absolute',
|
|
78
|
+
left: LEFT + i * SLOT_W,
|
|
79
|
+
top: REST_TOP,
|
|
80
|
+
width: SLOT_W,
|
|
81
|
+
height: FONT,
|
|
82
|
+
display: 'flex',
|
|
83
|
+
alignItems: 'flex-end',
|
|
84
|
+
justifyContent: 'center',
|
|
85
|
+
transform: `translateY(${y + jitter}px) rotate(${rot}deg) scale(${scale})`,
|
|
86
|
+
transformOrigin: '50% 100%',
|
|
87
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
88
|
+
fontWeight: 800,
|
|
89
|
+
fontSize: FONT,
|
|
90
|
+
lineHeight: 1,
|
|
91
|
+
color: G.ink,
|
|
92
|
+
}}
|
|
93
|
+
>
|
|
94
|
+
{ch}
|
|
95
|
+
</div>
|
|
96
|
+
);
|
|
97
|
+
})}
|
|
98
|
+
</div>
|
|
99
|
+
);
|
|
100
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// 乱码解码字(scramble-decode)——终端黑客感文字入场。
|
|
2
|
+
// 标题 "DECODE SPEED" 每字符先高速跳随机字母/数字(每 2f 换一个,seed hash 取字符),
|
|
3
|
+
// 从左到右逐个锁定:第 i 个字符在帧 20+i*6 锁定为真字符,锁定瞬间该字符反色闪
|
|
4
|
+
// (G.ink 色块白字 2f)随即恢复。跳动期字符 G.mid,锁定后 G.ink。
|
|
5
|
+
// 关键帧:0–20f 全员乱跳 → 20–86f 从左到右逐个锁定 → 87–130f 完全静止收尾。
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { useCurrentFrame } from 'remotion';
|
|
8
|
+
import { G } from '../_fixtures/Fixtures';
|
|
9
|
+
|
|
10
|
+
const TEXT = 'DECODE SPEED';
|
|
11
|
+
const CHARSET = 'ABCDEF0123456789#$%&';
|
|
12
|
+
const LOCK_START = 20; // 第 0 个字符锁定帧
|
|
13
|
+
const LOCK_STEP = 6; // 相邻字符锁定间隔
|
|
14
|
+
const FLASH_LEN = 2; // 锁定反色闪持续帧数
|
|
15
|
+
|
|
16
|
+
// 帧确定伪随机
|
|
17
|
+
const h = (n: number) => {
|
|
18
|
+
const s = Math.sin(n * 127.3) * 43758.5453;
|
|
19
|
+
return s - Math.floor(s);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const ScrambleDecode: React.FC = () => {
|
|
23
|
+
const frame = useCurrentFrame();
|
|
24
|
+
const chars = TEXT.split('');
|
|
25
|
+
const lockedCount = chars.filter((c, i) => c === ' ' || frame >= LOCK_START + i * LOCK_STEP).length;
|
|
26
|
+
const allLocked = lockedCount === chars.length;
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<div
|
|
30
|
+
style={{
|
|
31
|
+
width: 1920,
|
|
32
|
+
height: 1080,
|
|
33
|
+
background: G.bg,
|
|
34
|
+
display: 'flex',
|
|
35
|
+
flexDirection: 'column',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'center',
|
|
38
|
+
gap: 48,
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
<div
|
|
42
|
+
style={{
|
|
43
|
+
fontFamily: 'ui-monospace, Menlo, Monaco, monospace',
|
|
44
|
+
fontWeight: 800,
|
|
45
|
+
fontSize: 120,
|
|
46
|
+
letterSpacing: 2,
|
|
47
|
+
display: 'flex',
|
|
48
|
+
}}
|
|
49
|
+
>
|
|
50
|
+
{chars.map((ch, i) => {
|
|
51
|
+
if (ch === ' ') {
|
|
52
|
+
return <span key={i} style={{ display: 'inline-block', width: '0.7em' }} />;
|
|
53
|
+
}
|
|
54
|
+
const lockFrame = LOCK_START + i * LOCK_STEP;
|
|
55
|
+
const locked = frame >= lockFrame;
|
|
56
|
+
const flashing = locked && frame < lockFrame + FLASH_LEN;
|
|
57
|
+
// 跳动期:每 2 帧换一个伪随机字符
|
|
58
|
+
const tick = Math.floor(frame / 2);
|
|
59
|
+
const scrambleChar = CHARSET[Math.floor(h(i * 101 + tick * 7 + 13) * CHARSET.length)];
|
|
60
|
+
const shown = locked ? ch : scrambleChar;
|
|
61
|
+
return (
|
|
62
|
+
<span
|
|
63
|
+
key={i}
|
|
64
|
+
style={{
|
|
65
|
+
display: 'inline-block',
|
|
66
|
+
width: '1ch',
|
|
67
|
+
textAlign: 'center',
|
|
68
|
+
color: flashing ? G.card : locked ? G.ink : G.mid,
|
|
69
|
+
background: flashing ? G.ink : 'transparent',
|
|
70
|
+
}}
|
|
71
|
+
>
|
|
72
|
+
{shown}
|
|
73
|
+
</span>
|
|
74
|
+
);
|
|
75
|
+
})}
|
|
76
|
+
</div>
|
|
77
|
+
{/* 底部进度提示条:已锁定字符数比例,帮助读出"从左到右扫过"的推进感 */}
|
|
78
|
+
<div style={{ width: 900, height: 10, background: G.line, borderRadius: 5, overflow: 'hidden' }}>
|
|
79
|
+
<div
|
|
80
|
+
style={{
|
|
81
|
+
width: `${(lockedCount / chars.length) * 100}%`,
|
|
82
|
+
height: '100%',
|
|
83
|
+
background: allLocked ? G.ink : G.mid,
|
|
84
|
+
borderRadius: 5,
|
|
85
|
+
}}
|
|
86
|
+
/>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
);
|
|
90
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// 字重脉冲(font-weight-pump)——标题笔画随节拍变粗又弹回,像文字跟着低音鼓蹦迪。
|
|
2
|
+
// 节拍每 20f 一拍:帧 30/50/70/90/110 命中。命中瞬间 -webkit-text-stroke 0→10px
|
|
3
|
+
// 跳满,随后 10f 幂衰减 (1-t/10)^0.8 弹回 0;fontWeight 在命中窗口 400→900 离散跳变
|
|
4
|
+
// (env>0.15),配合 stroke 连续衰减读作"连续变粗"。第 3、5 拍(帧 70/110)为重音,
|
|
5
|
+
// 额外 scaleX 1→1.08 同衰减(transform 缩放不改排版)。底部 5 个节拍点作节拍参照。
|
|
6
|
+
// 结构:0–29f 静止 hold;30–119f 五拍脉冲;120–139f 真静止收尾(20f,110+10=120 无残留)。
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { useCurrentFrame } from 'remotion';
|
|
9
|
+
import { G } from '../_fixtures/Fixtures';
|
|
10
|
+
|
|
11
|
+
const BEATS = [30, 50, 70, 90, 110];
|
|
12
|
+
const ACCENTS = new Set([2, 4]); // 第 3、5 拍重音
|
|
13
|
+
const DECAY = 10; // 衰减帧数
|
|
14
|
+
|
|
15
|
+
// 命中后 10f 幂衰减包络:t=0 → 1,t>=10 → 精确 0(保证结尾真静止)
|
|
16
|
+
const envAt = (frame: number, beat: number) => {
|
|
17
|
+
const t = frame - beat;
|
|
18
|
+
if (t < 0 || t >= DECAY) return 0;
|
|
19
|
+
return Math.pow(1 - t / DECAY, 0.8);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const FontWeightPump: React.FC = () => {
|
|
23
|
+
const frame = useCurrentFrame();
|
|
24
|
+
|
|
25
|
+
// 只可能有一个活跃拍(拍距 20f > 衰减 10f),取最大包络及其拍序号
|
|
26
|
+
let env = 0;
|
|
27
|
+
let activeBeat = -1;
|
|
28
|
+
BEATS.forEach((b, i) => {
|
|
29
|
+
const e = envAt(frame, b);
|
|
30
|
+
if (e > env) {
|
|
31
|
+
env = e;
|
|
32
|
+
activeBeat = i;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const strokeW = 10 * env; // 笔画粗细连续衰减
|
|
37
|
+
const weight = env > 0.15 ? 900 : 400; // 命中窗口离散跳字重
|
|
38
|
+
const accent = activeBeat >= 0 && ACCENTS.has(activeBeat);
|
|
39
|
+
const scaleX = accent ? 1 + 0.08 * env : 1; // 重音拍变宽一挡
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<div
|
|
43
|
+
style={{
|
|
44
|
+
width: 1920,
|
|
45
|
+
height: 1080,
|
|
46
|
+
background: G.bg,
|
|
47
|
+
position: 'relative',
|
|
48
|
+
overflow: 'hidden',
|
|
49
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
50
|
+
}}
|
|
51
|
+
>
|
|
52
|
+
{/* 定宽居中容器,transform 缩放不改排版 */}
|
|
53
|
+
<div
|
|
54
|
+
style={{
|
|
55
|
+
position: 'absolute',
|
|
56
|
+
left: 0,
|
|
57
|
+
top: 0,
|
|
58
|
+
width: 1920,
|
|
59
|
+
height: 1080,
|
|
60
|
+
display: 'flex',
|
|
61
|
+
alignItems: 'center',
|
|
62
|
+
justifyContent: 'center',
|
|
63
|
+
}}
|
|
64
|
+
>
|
|
65
|
+
<div
|
|
66
|
+
style={{
|
|
67
|
+
fontSize: 150,
|
|
68
|
+
fontWeight: weight,
|
|
69
|
+
color: G.ink,
|
|
70
|
+
letterSpacing: 6,
|
|
71
|
+
whiteSpace: 'nowrap',
|
|
72
|
+
WebkitTextStroke: `${strokeW}px ${G.ink}`,
|
|
73
|
+
transform: `scaleX(${scaleX})`,
|
|
74
|
+
transformOrigin: 'center center',
|
|
75
|
+
}}
|
|
76
|
+
>
|
|
77
|
+
PUMP IT UP
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
{/* 底部节拍点:5 个,命中哪拍哪个点闪 ink 并放大 */}
|
|
82
|
+
<div
|
|
83
|
+
style={{
|
|
84
|
+
position: 'absolute',
|
|
85
|
+
left: 0,
|
|
86
|
+
bottom: 130,
|
|
87
|
+
width: 1920,
|
|
88
|
+
display: 'flex',
|
|
89
|
+
justifyContent: 'center',
|
|
90
|
+
gap: 56,
|
|
91
|
+
}}
|
|
92
|
+
>
|
|
93
|
+
{BEATS.map((b, i) => {
|
|
94
|
+
const e = envAt(frame, b);
|
|
95
|
+
const dotOpacity = e > 0.02 ? Math.min(1, 0.3 + e * 1.2) : 0;
|
|
96
|
+
const dotScale = 1 + 0.8 * e;
|
|
97
|
+
return (
|
|
98
|
+
<div
|
|
99
|
+
key={i}
|
|
100
|
+
style={{
|
|
101
|
+
width: 26,
|
|
102
|
+
height: 26,
|
|
103
|
+
borderRadius: 13,
|
|
104
|
+
background: G.line,
|
|
105
|
+
position: 'relative',
|
|
106
|
+
transform: `scale(${dotScale})`,
|
|
107
|
+
}}
|
|
108
|
+
>
|
|
109
|
+
<div
|
|
110
|
+
style={{
|
|
111
|
+
position: 'absolute',
|
|
112
|
+
inset: 0,
|
|
113
|
+
borderRadius: 13,
|
|
114
|
+
background: G.ink,
|
|
115
|
+
opacity: dotOpacity,
|
|
116
|
+
}}
|
|
117
|
+
/>
|
|
118
|
+
</div>
|
|
119
|
+
);
|
|
120
|
+
})}
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
);
|
|
124
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// 卡拉OK填色随读(karaoke-fill-sync)——旁白读到哪个词,哪个词就被深色从左到右
|
|
2
|
+
// 点亮。两行标语 "SHIP FASTER / BREAK NOTHING",每个词双层同文本叠放:底层 G.line
|
|
3
|
+
// 浅灰字,上层 G.ink 深字用 clip-path: inset(0 X% 0 0) 按词内进度线性填充(逐词独立
|
|
4
|
+
// 叠层,clip 百分比即词内进度,无需量测词在整行的像素占比)。词级时间表模拟语速:
|
|
5
|
+
// SHIP 20–38、FASTER 42–75(长词慢读)、BREAK 85–103、NOTHING 107–130,词间停顿。
|
|
6
|
+
// 正在填的词底下有 8px 深色下划线跟随填充右缘作读指。0–19f hold;130–149f 真静止。
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { useCurrentFrame, interpolate } from 'remotion';
|
|
9
|
+
import { G } from '../_fixtures/Fixtures';
|
|
10
|
+
|
|
11
|
+
type Word = { text: string; start: number; end: number };
|
|
12
|
+
|
|
13
|
+
const LINES: Word[][] = [
|
|
14
|
+
[
|
|
15
|
+
{ text: 'SHIP', start: 20, end: 38 },
|
|
16
|
+
{ text: 'FASTER', start: 42, end: 75 },
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
{ text: 'BREAK', start: 85, end: 103 },
|
|
20
|
+
{ text: 'NOTHING', start: 107, end: 130 },
|
|
21
|
+
],
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
const KaraokeWord: React.FC<{ word: Word; frame: number }> = ({ word, frame }) => {
|
|
25
|
+
// 词内 linear 填充进度,clamp 保证读完保持
|
|
26
|
+
const p = interpolate(frame, [word.start, word.end], [0, 1], {
|
|
27
|
+
extrapolateLeft: 'clamp',
|
|
28
|
+
extrapolateRight: 'clamp',
|
|
29
|
+
});
|
|
30
|
+
const active = frame >= word.start && frame < word.end; // 正在读这个词
|
|
31
|
+
return (
|
|
32
|
+
<span style={{ position: 'relative', display: 'inline-block' }}>
|
|
33
|
+
{/* 底层:浅灰未读字 */}
|
|
34
|
+
<span style={{ color: G.line }}>{word.text}</span>
|
|
35
|
+
{/* 上层:深字按进度从左到右揭开 */}
|
|
36
|
+
<span
|
|
37
|
+
style={{
|
|
38
|
+
position: 'absolute',
|
|
39
|
+
inset: 0,
|
|
40
|
+
color: G.ink,
|
|
41
|
+
clipPath: `inset(0 ${(1 - p) * 100}% 0 0)`,
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
{word.text}
|
|
45
|
+
</span>
|
|
46
|
+
{/* 读指下划线:只在正在填的词下出现,右缘跟随填充进度 */}
|
|
47
|
+
{active && (
|
|
48
|
+
<span
|
|
49
|
+
style={{
|
|
50
|
+
position: 'absolute',
|
|
51
|
+
left: 0,
|
|
52
|
+
bottom: -14,
|
|
53
|
+
width: `${p * 100}%`,
|
|
54
|
+
height: 8,
|
|
55
|
+
background: G.ink,
|
|
56
|
+
}}
|
|
57
|
+
/>
|
|
58
|
+
)}
|
|
59
|
+
</span>
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export const KaraokeFillSync: React.FC = () => {
|
|
64
|
+
const frame = useCurrentFrame();
|
|
65
|
+
return (
|
|
66
|
+
<div
|
|
67
|
+
style={{
|
|
68
|
+
width: 1920,
|
|
69
|
+
height: 1080,
|
|
70
|
+
background: G.bg,
|
|
71
|
+
overflow: 'hidden',
|
|
72
|
+
display: 'flex',
|
|
73
|
+
flexDirection: 'column',
|
|
74
|
+
justifyContent: 'center',
|
|
75
|
+
paddingLeft: 240,
|
|
76
|
+
boxSizing: 'border-box',
|
|
77
|
+
fontFamily: 'Helvetica, Arial, sans-serif',
|
|
78
|
+
fontSize: 130,
|
|
79
|
+
fontWeight: 800,
|
|
80
|
+
letterSpacing: 2,
|
|
81
|
+
lineHeight: 1.45,
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
{LINES.map((words, li) => (
|
|
85
|
+
<div key={li} style={{ display: 'flex', gap: 48 }}>
|
|
86
|
+
{words.map((w) => (
|
|
87
|
+
<KaraokeWord key={w.text} word={w} frame={frame} />
|
|
88
|
+
))}
|
|
89
|
+
</div>
|
|
90
|
+
))}
|
|
91
|
+
</div>
|
|
92
|
+
);
|
|
93
|
+
};
|