popost 4.6.1 → 4.6.7
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/LICENSE +59 -3
- package/README.md +20 -7
- package/SKILL.md +48 -131
- package/THIRD_PARTY_NOTICES +524 -0
- package/agents/openai.yaml +2 -2
- package/assets/video/examples/audio-bars.html +125 -0
- package/assets/video/examples/bouncing-ball.html +182 -0
- package/assets/video/examples/card-flip.html +92 -0
- package/assets/video/examples/catalogue.json +16335 -0
- package/assets/video/examples/counter-stat.html +155 -0
- package/assets/video/examples/folding-doors.html +94 -0
- package/assets/video/examples/glitch-title.html +120 -0
- package/assets/video/examples/goo-blobs.html +127 -0
- package/assets/video/examples/grid-reveal.html +151 -0
- package/assets/video/examples/hf/agent-cursor.html +781 -0
- package/assets/video/examples/hf/ai-answer-rank.html +767 -0
- package/assets/video/examples/hf/ai-chat-reveal.html +1260 -0
- package/assets/video/examples/hf/animated-bar-chart.html +312 -0
- package/assets/video/examples/hf/app-showcase.html +1115 -0
- package/assets/video/examples/hf/apple-money-count.html +453 -0
- package/assets/video/examples/hf/arc-motion-path.html +303 -0
- package/assets/video/examples/hf/ascii-render-pass.html +728 -0
- package/assets/video/examples/hf/ascii-trail-reveal.html +595 -0
- package/assets/video/examples/hf/aurora-drift.html +439 -0
- package/assets/video/examples/hf/aurora.html +258 -0
- package/assets/video/examples/hf/avatar-cloud.html +667 -0
- package/assets/video/examples/hf/avatar-group-hover.html +342 -0
- package/assets/video/examples/hf/badge-pop.html +400 -0
- package/assets/video/examples/hf/bar-chart-race.html +795 -0
- package/assets/video/examples/hf/beat-accent.html +507 -0
- package/assets/video/examples/hf/beat-freeze-cut.html +1050 -0
- package/assets/video/examples/hf/beat-pulse-background.html +422 -0
- package/assets/video/examples/hf/beat-timeline.html +488 -0
- package/assets/video/examples/hf/before-after-wipe.html +681 -0
- package/assets/video/examples/hf/blob.html +258 -0
- package/assets/video/examples/hf/blue-sweater-intro-video.html +1656 -0
- package/assets/video/examples/hf/blur-in.html +624 -0
- package/assets/video/examples/hf/blur-out-up.html +350 -0
- package/assets/video/examples/hf/bottom-up-letters.html +335 -0
- package/assets/video/examples/hf/browser-device-stage.html +847 -0
- package/assets/video/examples/hf/camcorder-hud.html +371 -0
- package/assets/video/examples/hf/camera-dolly-zoom.html +485 -0
- package/assets/video/examples/hf/camera-rig-depth-stack.html +246 -0
- package/assets/video/examples/hf/camera-scan-gate.html +708 -0
- package/assets/video/examples/hf/camera-shake.html +989 -0
- package/assets/video/examples/hf/canopy-part-title.html +2549 -0
- package/assets/video/examples/hf/caption-blend-difference.html +247 -0
- package/assets/video/examples/hf/caption-camera-follow.html +537 -0
- package/assets/video/examples/hf/caption-clip-wipe.html +363 -0
- package/assets/video/examples/hf/caption-editorial-emphasis.html +615 -0
- package/assets/video/examples/hf/caption-emoji-pop.html +623 -0
- package/assets/video/examples/hf/caption-glitch-rgb.html +475 -0
- package/assets/video/examples/hf/caption-gradient-fill.html +392 -0
- package/assets/video/examples/hf/caption-highlight.html +433 -0
- package/assets/video/examples/hf/caption-kinetic-slam.html +334 -0
- package/assets/video/examples/hf/caption-matrix-decode.html +399 -0
- package/assets/video/examples/hf/caption-neon-accent.html +684 -0
- package/assets/video/examples/hf/caption-neon-glow.html +373 -0
- package/assets/video/examples/hf/caption-parallax-layers.html +530 -0
- package/assets/video/examples/hf/caption-particle-burst.html +454 -0
- package/assets/video/examples/hf/caption-pill-karaoke.html +517 -0
- package/assets/video/examples/hf/caption-texture.html +368 -0
- package/assets/video/examples/hf/caption-weight-shift.html +566 -0
- package/assets/video/examples/hf/card-resize.html +435 -0
- package/assets/video/examples/hf/caret-swap.html +601 -0
- package/assets/video/examples/hf/carousel-circle-1.html +1175 -0
- package/assets/video/examples/hf/carousel-circle-2.html +1175 -0
- package/assets/video/examples/hf/carousel-circle-3.html +1175 -0
- package/assets/video/examples/hf/carousel-circle-4.html +1175 -0
- package/assets/video/examples/hf/carousel-circle-5.html +1175 -0
- package/assets/video/examples/hf/carousel-orbit-1.html +1198 -0
- package/assets/video/examples/hf/carousel-orbit-2.html +1198 -0
- package/assets/video/examples/hf/carousel-orbit-3.html +1198 -0
- package/assets/video/examples/hf/carousel-orbit-4.html +1214 -0
- package/assets/video/examples/hf/carousel-orbit-5.html +1198 -0
- package/assets/video/examples/hf/carousel-path-1.html +1219 -0
- package/assets/video/examples/hf/carousel-path-2.html +1176 -0
- package/assets/video/examples/hf/carousel-path-3.html +1190 -0
- package/assets/video/examples/hf/carousel-path-4.html +1219 -0
- package/assets/video/examples/hf/carousel-path-5.html +1218 -0
- package/assets/video/examples/hf/carousel-vision-1.html +1180 -0
- package/assets/video/examples/hf/carousel-vision-2.html +1180 -0
- package/assets/video/examples/hf/carousel-vision-3.html +1180 -0
- package/assets/video/examples/hf/carousel-vision-4.html +1187 -0
- package/assets/video/examples/hf/carousel-vision-5.html +1180 -0
- package/assets/video/examples/hf/char-slam-explode.html +546 -0
- package/assets/video/examples/hf/chart-story.html +973 -0
- package/assets/video/examples/hf/chat-message.html +635 -0
- package/assets/video/examples/hf/chat-thread.html +953 -0
- package/assets/video/examples/hf/chatgpt-exchange.html +1620 -0
- package/assets/video/examples/hf/chromatic-radial-split.html +613 -0
- package/assets/video/examples/hf/chrome-orb.html +258 -0
- package/assets/video/examples/hf/cinemagraph.html +422 -0
- package/assets/video/examples/hf/cinematic-zoom.html +613 -0
- package/assets/video/examples/hf/claude-exchange.html +1845 -0
- package/assets/video/examples/hf/code-3d-extrude.html +755 -0
- package/assets/video/examples/hf/code-diff.html +956 -0
- package/assets/video/examples/hf/code-highlight.html +885 -0
- package/assets/video/examples/hf/code-morph.html +1357 -0
- package/assets/video/examples/hf/code-particle-assemble.html +622 -0
- package/assets/video/examples/hf/code-scroll.html +1700 -0
- package/assets/video/examples/hf/code-shader-dissolve.html +677 -0
- package/assets/video/examples/hf/code-slice-hero.html +1276 -0
- package/assets/video/examples/hf/code-snippet-apple-terminal-pro.html +388 -0
- package/assets/video/examples/hf/code-snippet-dark-2026.html +1231 -0
- package/assets/video/examples/hf/code-snippet-dark-modern.html +1227 -0
- package/assets/video/examples/hf/code-terminal-run.html +766 -0
- package/assets/video/examples/hf/code-typing.html +903 -0
- package/assets/video/examples/hf/color-wheel.html +258 -0
- package/assets/video/examples/hf/colorama-wipe.html +503 -0
- package/assets/video/examples/hf/comparison-split.html +657 -0
- package/assets/video/examples/hf/confetti.html +349 -0
- package/assets/video/examples/hf/conic-progress-ring.html +441 -0
- package/assets/video/examples/hf/constellation-hub.html +662 -0
- package/assets/video/examples/hf/cosmic-orb.html +643 -0
- package/assets/video/examples/hf/count-up.html +552 -0
- package/assets/video/examples/hf/cross-warp-morph.html +624 -0
- package/assets/video/examples/hf/cta-close.html +492 -0
- package/assets/video/examples/hf/cta-lockup.html +470 -0
- package/assets/video/examples/hf/cuboid-carousel.html +2385 -0
- package/assets/video/examples/hf/cursor-annotate.html +827 -0
- package/assets/video/examples/hf/cursor-context-menu.html +757 -0
- package/assets/video/examples/hf/cursor-drag-drop.html +656 -0
- package/assets/video/examples/hf/cursor-glyph-trail.html +904 -0
- package/assets/video/examples/hf/cursor-marquee-select.html +1266 -0
- package/assets/video/examples/hf/cursor-text-select.html +638 -0
- package/assets/video/examples/hf/cursor-zoom-follow.html +973 -0
- package/assets/video/examples/hf/curtain-reveal.html +590 -0
- package/assets/video/examples/hf/cut-the-curve.html +715 -0
- package/assets/video/examples/hf/dart-cursor.html +863 -0
- package/assets/video/examples/hf/data-chart.html +666 -0
- package/assets/video/examples/hf/decision-tree.html +655 -0
- package/assets/video/examples/hf/decline-chart.html +485 -0
- package/assets/video/examples/hf/device-frame-stage.html +661 -0
- package/assets/video/examples/hf/domain-warp-dissolve.html +627 -0
- package/assets/video/examples/hf/drift-hold.html +392 -0
- package/assets/video/examples/hf/dynamic-grid.html +336 -0
- package/assets/video/examples/hf/echo-smear.html +994 -0
- package/assets/video/examples/hf/echo-trail.html +557 -0
- package/assets/video/examples/hf/editorial-flash-overlay.html +337 -0
- package/assets/video/examples/hf/exploded-stack.html +761 -0
- package/assets/video/examples/hf/extended-keyframe.html +715 -0
- package/assets/video/examples/hf/extruded-logo.html +757 -0
- package/assets/video/examples/hf/facet-morph.html +746 -0
- package/assets/video/examples/hf/fade-through.html +443 -0
- package/assets/video/examples/hf/falling-lines.html +259 -0
- package/assets/video/examples/hf/filmed-screen.html +1065 -0
- package/assets/video/examples/hf/flash-through-white.html +613 -0
- package/assets/video/examples/hf/flowchart-vertical.html +631 -0
- package/assets/video/examples/hf/flowchart.html +630 -0
- package/assets/video/examples/hf/flowing-gradient.html +258 -0
- package/assets/video/examples/hf/focus-blur-resolve.html +321 -0
- package/assets/video/examples/hf/focus-rack.html +542 -0
- package/assets/video/examples/hf/focus-swap.html +496 -0
- package/assets/video/examples/hf/fractal-noise.html +258 -0
- package/assets/video/examples/hf/freeze-frame-dressing.html +357 -0
- package/assets/video/examples/hf/frost.html +258 -0
- package/assets/video/examples/hf/gabor-noise.html +258 -0
- package/assets/video/examples/hf/gallery-tunnel.html +652 -0
- package/assets/video/examples/hf/gesture-tap.html +604 -0
- package/assets/video/examples/hf/glass-hero.html +505 -0
- package/assets/video/examples/hf/glass-shard-title.html +1618 -0
- package/assets/video/examples/hf/glitch.html +613 -0
- package/assets/video/examples/hf/gloss-sweep.html +418 -0
- package/assets/video/examples/hf/godrays.html +257 -0
- package/assets/video/examples/hf/goo.html +258 -0
- package/assets/video/examples/hf/gooey-split.html +1092 -0
- package/assets/video/examples/hf/grain-field.html +377 -0
- package/assets/video/examples/hf/grain-overlay.html +295 -0
- package/assets/video/examples/hf/gravitational-lens.html +612 -0
- package/assets/video/examples/hf/grid-card-assemble.html +671 -0
- package/assets/video/examples/hf/grid-pixelate-wipe.html +314 -0
- package/assets/video/examples/hf/halftone-dissolve.html +696 -0
- package/assets/video/examples/hf/halftone-field.html +598 -0
- package/assets/video/examples/hf/headline-slam.html +455 -0
- package/assets/video/examples/hf/heatmap.html +258 -0
- package/assets/video/examples/hf/heygen-avatar-promo-card.html +627 -0
- package/assets/video/examples/hf/hologram.html +258 -0
- package/assets/video/examples/hf/holographic.html +258 -0
- package/assets/video/examples/hf/hw-arrow.html +835 -0
- package/assets/video/examples/hf/hw-boil.html +632 -0
- package/assets/video/examples/hf/hw-box-label.html +741 -0
- package/assets/video/examples/hf/hw-callout-circle.html +820 -0
- package/assets/video/examples/hf/hw-frame.html +455 -0
- package/assets/video/examples/hf/hw-path-text.html +349 -0
- package/assets/video/examples/hf/hw-pipeline.html +472 -0
- package/assets/video/examples/hf/hw-scribble-transition.html +291 -0
- package/assets/video/examples/hf/hw-text-cloud.html +439 -0
- package/assets/video/examples/hf/hw-title.html +412 -0
- package/assets/video/examples/hf/hw-underline.html +403 -0
- package/assets/video/examples/hf/hw-write-title.html +1389 -0
- package/assets/video/examples/hf/icon-morph-beat.html +463 -0
- package/assets/video/examples/hf/icon-swap.html +380 -0
- package/assets/video/examples/hf/ink-bleed-reveal.html +659 -0
- package/assets/video/examples/hf/inline-highlight.html +322 -0
- package/assets/video/examples/hf/input-feedback.html +419 -0
- package/assets/video/examples/hf/instagram-follow.html +460 -0
- package/assets/video/examples/hf/ios26-liquid-glass.html +1597 -0
- package/assets/video/examples/hf/iris-reveal.html +684 -0
- package/assets/video/examples/hf/keyframe-scrub-stack.html +326 -0
- package/assets/video/examples/hf/kinetic-center-build.html +538 -0
- package/assets/video/examples/hf/kinetic-type-swap.html +610 -0
- package/assets/video/examples/hf/kinetic-type.html +862 -0
- package/assets/video/examples/hf/lens-flare.html +258 -0
- package/assets/video/examples/hf/light-edge.html +259 -0
- package/assets/video/examples/hf/light-leak.html +612 -0
- package/assets/video/examples/hf/light-sweep-pass.html +684 -0
- package/assets/video/examples/hf/line-by-line-slide.html +345 -0
- package/assets/video/examples/hf/line-swap.html +526 -0
- package/assets/video/examples/hf/liquid-glass-notification.html +1898 -0
- package/assets/video/examples/hf/liquid-glass-widgets.html +2175 -0
- package/assets/video/examples/hf/liquid-metal.html +259 -0
- package/assets/video/examples/hf/locked-nucleus-orbit.html +564 -0
- package/assets/video/examples/hf/logo-brand-close.html +598 -0
- package/assets/video/examples/hf/logo-outro.html +397 -0
- package/assets/video/examples/hf/logo-sting.html +378 -0
- package/assets/video/examples/hf/logo-wall.html +502 -0
- package/assets/video/examples/hf/lottie-character-walk.html +407 -0
- package/assets/video/examples/hf/lt-accent-underline.html +247 -0
- package/assets/video/examples/hf/lt-bold-block.html +249 -0
- package/assets/video/examples/hf/lt-clean-bar.html +251 -0
- package/assets/video/examples/hf/lt-color-block.html +241 -0
- package/assets/video/examples/hf/lt-dark-card.html +251 -0
- package/assets/video/examples/hf/lt-kicker-name.html +254 -0
- package/assets/video/examples/hf/lt-mask-reveal.html +260 -0
- package/assets/video/examples/hf/lt-neon-border.html +604 -0
- package/assets/video/examples/hf/lt-side-rule.html +254 -0
- package/assets/video/examples/hf/lt-soft-pill.html +259 -0
- package/assets/video/examples/hf/lt-stack-bars.html +249 -0
- package/assets/video/examples/hf/macos-notification.html +372 -0
- package/assets/video/examples/hf/macos-tahoe-liquid-glass.html +1701 -0
- package/assets/video/examples/hf/magnetic-cursor.html +684 -0
- package/assets/video/examples/hf/marble.html +257 -0
- package/assets/video/examples/hf/marker-checklist-card.html +727 -0
- package/assets/video/examples/hf/marker-highlight.html +589 -0
- package/assets/video/examples/hf/match-cut.html +505 -0
- package/assets/video/examples/hf/matrix-decode.html +363 -0
- package/assets/video/examples/hf/menu-morph.html +420 -0
- package/assets/video/examples/hf/mesh-gradient-bg.html +329 -0
- package/assets/video/examples/hf/mesh-gradient.html +257 -0
- package/assets/video/examples/hf/message-thread-reveal.html +1913 -0
- package/assets/video/examples/hf/micro-transitions.html +631 -0
- package/assets/video/examples/hf/mk-background.html +376 -0
- package/assets/video/examples/hf/mk-callout-highlight.html +322 -0
- package/assets/video/examples/hf/mk-clone-wall-transition.html +364 -0
- package/assets/video/examples/hf/mk-emphasis-type.html +235 -0
- package/assets/video/examples/hf/mk-line-graph.html +432 -0
- package/assets/video/examples/hf/mk-placeholder-grid.html +373 -0
- package/assets/video/examples/hf/mk-progress-stat.html +324 -0
- package/assets/video/examples/hf/mk-specs-list.html +362 -0
- package/assets/video/examples/hf/mk-usage-arc.html +297 -0
- package/assets/video/examples/hf/modal-morph.html +727 -0
- package/assets/video/examples/hf/morph-swap.html +590 -0
- package/assets/video/examples/hf/morph-text.html +409 -0
- package/assets/video/examples/hf/multi-device-splay.html +934 -0
- package/assets/video/examples/hf/multiplayer-cursors.html +642 -0
- package/assets/video/examples/hf/native-notification-pop.html +670 -0
- package/assets/video/examples/hf/nebula.html +258 -0
- package/assets/video/examples/hf/news-ticker.html +548 -0
- package/assets/video/examples/hf/north-korea-locked-down.html +447 -0
- package/assets/video/examples/hf/notes-reveal.html +2028 -0
- package/assets/video/examples/hf/notes-typing.html +631 -0
- package/assets/video/examples/hf/notification-cascade.html +740 -0
- package/assets/video/examples/hf/notification-pileup.html +667 -0
- package/assets/video/examples/hf/notification-stack.html +610 -0
- package/assets/video/examples/hf/number-pop-in.html +362 -0
- package/assets/video/examples/hf/number-wheel.html +378 -0
- package/assets/video/examples/hf/nyc-paris-flight.html +659 -0
- package/assets/video/examples/hf/nyt-graph.html +715 -0
- package/assets/video/examples/hf/obsidian.html +258 -0
- package/assets/video/examples/hf/offset-path-traveler.html +511 -0
- package/assets/video/examples/hf/onboarding-stepper-flow.html +292 -0
- package/assets/video/examples/hf/orbit-card.html +2457 -0
- package/assets/video/examples/hf/ordered-dither-pass.html +753 -0
- package/assets/video/examples/hf/organic-light-leak-overlay.html +336 -0
- package/assets/video/examples/hf/oscilloscope-trace.html +718 -0
- package/assets/video/examples/hf/outline-draw.html +394 -0
- package/assets/video/examples/hf/oversized-cursor.html +851 -0
- package/assets/video/examples/hf/overwhelm-surround.html +557 -0
- package/assets/video/examples/hf/page-slide.html +377 -0
- package/assets/video/examples/hf/pan-stations.html +555 -0
- package/assets/video/examples/hf/panel-reveal.html +370 -0
- package/assets/video/examples/hf/paper-collage-reveal.html +737 -0
- package/assets/video/examples/hf/parallax-device-dive.html +647 -0
- package/assets/video/examples/hf/parallax-unzoom.html +499 -0
- package/assets/video/examples/hf/parallax-zoom.html +515 -0
- package/assets/video/examples/hf/particle-image-reveal.html +595 -0
- package/assets/video/examples/hf/particle-text-dissolve.html +615 -0
- package/assets/video/examples/hf/path-traced-3d.html +508 -0
- package/assets/video/examples/hf/pendulum-swing.html +364 -0
- package/assets/video/examples/hf/per-word-crossfade.html +398 -0
- package/assets/video/examples/hf/per-word-rise.html +556 -0
- package/assets/video/examples/hf/perspective-marquee.html +366 -0
- package/assets/video/examples/hf/physical-exit.html +459 -0
- package/assets/video/examples/hf/plasma.html +258 -0
- package/assets/video/examples/hf/plastic.html +258 -0
- package/assets/video/examples/hf/play-mode.html +1035 -0
- package/assets/video/examples/hf/press-ripple.html +675 -0
- package/assets/video/examples/hf/prism.html +258 -0
- package/assets/video/examples/hf/product-promo.html +1311 -0
- package/assets/video/examples/hf/product-turntable.html +4569 -0
- package/assets/video/examples/hf/pull-back-reveal.html +546 -0
- package/assets/video/examples/hf/pull-to-refresh.html +861 -0
- package/assets/video/examples/hf/push-in.html +379 -0
- package/assets/video/examples/hf/rack-focus.html +779 -0
- package/assets/video/examples/hf/radial-surround.html +653 -0
- package/assets/video/examples/hf/reddit-post.html +515 -0
- package/assets/video/examples/hf/rgb-glitch-text.html +353 -0
- package/assets/video/examples/hf/ridged-burn.html +624 -0
- package/assets/video/examples/hf/ripple-waves.html +613 -0
- package/assets/video/examples/hf/ripples.html +259 -0
- package/assets/video/examples/hf/rubber-band-bumper.html +534 -0
- package/assets/video/examples/hf/scan-band.html +415 -0
- package/assets/video/examples/hf/scramble-reveal.html +510 -0
- package/assets/video/examples/hf/screen-flow-carousel.html +779 -0
- package/assets/video/examples/hf/scroll-camera-story.html +988 -0
- package/assets/video/examples/hf/scroll-feed.html +602 -0
- package/assets/video/examples/hf/sdf-iris.html +613 -0
- package/assets/video/examples/hf/segmentation-flood.html +748 -0
- package/assets/video/examples/hf/separator.html +620 -0
- package/assets/video/examples/hf/settings-toggle-flow.html +286 -0
- package/assets/video/examples/hf/share-sheet-carousel.html +591 -0
- package/assets/video/examples/hf/shared-axis-y.html +370 -0
- package/assets/video/examples/hf/shared-axis-z.html +514 -0
- package/assets/video/examples/hf/sheet-spring-up.html +681 -0
- package/assets/video/examples/hf/shimmer-sweep.html +301 -0
- package/assets/video/examples/hf/signup-flow.html +276 -0
- package/assets/video/examples/hf/sine-wave.html +258 -0
- package/assets/video/examples/hf/skeleton-reveal.html +373 -0
- package/assets/video/examples/hf/slack-notification-ad.html +901 -0
- package/assets/video/examples/hf/slit-scan-reveal.html +540 -0
- package/assets/video/examples/hf/slot-machine-roll.html +391 -0
- package/assets/video/examples/hf/snow.html +499 -0
- package/assets/video/examples/hf/social-proof-card.html +534 -0
- package/assets/video/examples/hf/soft-blur-in.html +322 -0
- package/assets/video/examples/hf/spain-map.html +583 -0
- package/assets/video/examples/hf/spiral-galaxy.html +507 -0
- package/assets/video/examples/hf/spiral.html +258 -0
- package/assets/video/examples/hf/split-flap-board.html +537 -0
- package/assets/video/examples/hf/split-tilt-cards.html +775 -0
- package/assets/video/examples/hf/spotify-card.html +470 -0
- package/assets/video/examples/hf/spotlight-card.html +328 -0
- package/assets/video/examples/hf/spring-pop.html +406 -0
- package/assets/video/examples/hf/spring-stack-shuffle.html +791 -0
- package/assets/video/examples/hf/stagger-cascade.html +465 -0
- package/assets/video/examples/hf/stagger-lattice.html +278 -0
- package/assets/video/examples/hf/staggered-fade-up.html +368 -0
- package/assets/video/examples/hf/star-rating-fill.html +511 -0
- package/assets/video/examples/hf/starfield.html +450 -0
- package/assets/video/examples/hf/state-chip-rail.html +585 -0
- package/assets/video/examples/hf/sticky-mock-swap.html +664 -0
- package/assets/video/examples/hf/stitched-text-draw.html +1053 -0
- package/assets/video/examples/hf/stop-motion-cadence.html +670 -0
- package/assets/video/examples/hf/store-badge-lockup.html +521 -0
- package/assets/video/examples/hf/strands.html +258 -0
- package/assets/video/examples/hf/streaming-text.html +581 -0
- package/assets/video/examples/hf/strikethrough-replace.html +356 -0
- package/assets/video/examples/hf/stripes.html +258 -0
- package/assets/video/examples/hf/success-check.html +390 -0
- package/assets/video/examples/hf/sun-burst.html +258 -0
- package/assets/video/examples/hf/svg-line-draw-loader.html +257 -0
- package/assets/video/examples/hf/svg-mask-reveal.html +523 -0
- package/assets/video/examples/hf/svg-stroke-trace.html +465 -0
- package/assets/video/examples/hf/swipe-rail.html +564 -0
- package/assets/video/examples/hf/swirl-vortex.html +623 -0
- package/assets/video/examples/hf/swirl.html +258 -0
- package/assets/video/examples/hf/swiss-grid.html +837 -0
- package/assets/video/examples/hf/tabs-slide-indicator.html +424 -0
- package/assets/video/examples/hf/telemetry-hud.html +760 -0
- package/assets/video/examples/hf/terminal-simulator.html +293 -0
- package/assets/video/examples/hf/testimonial-card.html +545 -0
- package/assets/video/examples/hf/testimonial-proof-card.html +720 -0
- package/assets/video/examples/hf/text-match-cut.html +1345 -0
- package/assets/video/examples/hf/text-shimmer.html +394 -0
- package/assets/video/examples/hf/text-stagger.html +373 -0
- package/assets/video/examples/hf/text-state-swap.html +421 -0
- package/assets/video/examples/hf/thermal-distortion.html +624 -0
- package/assets/video/examples/hf/thin-film.html +258 -0
- package/assets/video/examples/hf/thread-message-stack.html +377 -0
- package/assets/video/examples/hf/three-orbiting-cards.html +322 -0
- package/assets/video/examples/hf/ticker-takeover.html +534 -0
- package/assets/video/examples/hf/tiktok-follow.html +435 -0
- package/assets/video/examples/hf/tilt-card.html +406 -0
- package/assets/video/examples/hf/titlecard-calm.html +388 -0
- package/assets/video/examples/hf/titlecard-lockup.html +546 -0
- package/assets/video/examples/hf/toggle-flip.html +601 -0
- package/assets/video/examples/hf/top-down-letters.html +326 -0
- package/assets/video/examples/hf/torn-paper-rip.html +762 -0
- package/assets/video/examples/hf/touch-indicator.html +777 -0
- package/assets/video/examples/hf/tracing-beam.html +608 -0
- package/assets/video/examples/hf/tracking-in.html +317 -0
- package/assets/video/examples/hf/transitions-3d.html +434 -0
- package/assets/video/examples/hf/transitions-blur.html +524 -0
- package/assets/video/examples/hf/transitions-cover.html +508 -0
- package/assets/video/examples/hf/transitions-destruction.html +551 -0
- package/assets/video/examples/hf/transitions-dissolve.html +529 -0
- package/assets/video/examples/hf/transitions-distortion.html +522 -0
- package/assets/video/examples/hf/transitions-grid.html +442 -0
- package/assets/video/examples/hf/transitions-light.html +528 -0
- package/assets/video/examples/hf/transitions-mechanical.html +560 -0
- package/assets/video/examples/hf/transitions-other.html +532 -0
- package/assets/video/examples/hf/transitions-push.html +520 -0
- package/assets/video/examples/hf/transitions-radial.html +492 -0
- package/assets/video/examples/hf/transitions-scale.html +487 -0
- package/assets/video/examples/hf/trust-strip.html +445 -0
- package/assets/video/examples/hf/typed-prompt.html +619 -0
- package/assets/video/examples/hf/typewriter.html +350 -0
- package/assets/video/examples/hf/typing-indicator.html +702 -0
- package/assets/video/examples/hf/ui-3d-reveal.html +2929 -0
- package/assets/video/examples/hf/ui-focus-zoom.html +786 -0
- package/assets/video/examples/hf/us-map-bubble.html +669 -0
- package/assets/video/examples/hf/us-map-flow.html +621 -0
- package/assets/video/examples/hf/us-map-hex.html +733 -0
- package/assets/video/examples/hf/us-map.html +591 -0
- package/assets/video/examples/hf/variable-font-flex.html +538 -0
- package/assets/video/examples/hf/vector-editor-rig.html +977 -0
- package/assets/video/examples/hf/vfx-anamorphic-flare.html +572 -0
- package/assets/video/examples/hf/vfx-iphone-device.html +1089 -0
- package/assets/video/examples/hf/vfx-liquid-background.html +1479 -0
- package/assets/video/examples/hf/vfx-liquid-glass.html +2054 -0
- package/assets/video/examples/hf/vfx-magnetic.html +660 -0
- package/assets/video/examples/hf/vfx-portal.html +1090 -0
- package/assets/video/examples/hf/vfx-shatter.html +1382 -0
- package/assets/video/examples/hf/vignette.html +385 -0
- package/assets/video/examples/hf/voronoi.html +258 -0
- package/assets/video/examples/hf/vox-annotate.html +707 -0
- package/assets/video/examples/hf/vpn-youtube-spot.html +1118 -0
- package/assets/video/examples/hf/water.html +258 -0
- package/assets/video/examples/hf/waveform.html +258 -0
- package/assets/video/examples/hf/week-in-merges.html +673 -0
- package/assets/video/examples/hf/weight-wave.html +531 -0
- package/assets/video/examples/hf/whip-pan-cut.html +668 -0
- package/assets/video/examples/hf/whip-pan.html +613 -0
- package/assets/video/examples/hf/whiteboard-ink.html +763 -0
- package/assets/video/examples/hf/wireframe-portal-title.html +3840 -0
- package/assets/video/examples/hf/wordmark-tiles.html +559 -0
- package/assets/video/examples/hf/world-map.html +623 -0
- package/assets/video/examples/hf/worley-noise.html +259 -0
- package/assets/video/examples/hf/x-follow-card.html +286 -0
- package/assets/video/examples/hf/x-post.html +611 -0
- package/assets/video/examples/hf/yt-camera-move.html +308 -0
- package/assets/video/examples/hf/yt-circle-pointer.html +301 -0
- package/assets/video/examples/hf/yt-comment-card.html +458 -0
- package/assets/video/examples/hf/yt-feather-highlight.html +279 -0
- package/assets/video/examples/hf/yt-lcd-background.html +446 -0
- package/assets/video/examples/hf/yt-logo-intro.html +390 -0
- package/assets/video/examples/hf/yt-lower-third.html +414 -0
- package/assets/video/examples/hf/yt-prism-title.html +343 -0
- package/assets/video/examples/hf/yt-screen-warp.html +257 -0
- package/assets/video/examples/hf/yt-vertical-fill.html +367 -0
- package/assets/video/examples/kinetic-type.html +137 -0
- package/assets/video/examples/list-cards.html +155 -0
- package/assets/video/examples/motion-blur-streak.html +119 -0
- package/assets/video/examples/object-reveal.html +107 -0
- package/assets/video/examples/page-flip.html +163 -0
- package/assets/video/examples/parallax-layers.html +130 -0
- package/assets/video/examples/particle-burst.html +157 -0
- package/assets/video/examples/pen-draw.html +146 -0
- package/assets/video/examples/shape-morph.html +151 -0
- package/assets/video/examples/slam-title.html +125 -0
- package/assets/video/examples/speed-lines.html +123 -0
- package/assets/video/examples/spring-pop.html +129 -0
- package/assets/video/examples/streak-wipe.html +78 -0
- package/assets/video/examples/three-chrome-knot.html +155 -0
- package/assets/video/examples/three-clay.html +138 -0
- package/assets/video/examples/three-cube-wave.html +140 -0
- package/assets/video/examples/three-extruded-shape.html +148 -0
- package/assets/video/examples/type-on.html +128 -0
- package/assets/video/motion.js +991 -0
- package/assets/video/screen.js +298 -0
- package/assets/video/sfx/catalogue.json +2283 -0
- package/assets/video/times.js +59 -0
- package/dist/cli.js +36667 -2526
- package/dist/index.js +36429 -2459
- package/dist/types/args.d.ts +2 -0
- package/dist/types/cloud/service.d.ts +13 -0
- package/dist/types/commands/usage.d.ts +2 -0
- package/dist/types/commands/video.d.ts +10 -0
- package/dist/types/cpu-budget.d.ts +43 -0
- package/dist/types/images/batch-jobs.d.ts +2 -0
- package/dist/types/images/batch-run.d.ts +2 -1
- package/dist/types/images/jobs.d.ts +7 -0
- package/dist/types/images/pending.d.ts +40 -0
- package/dist/types/images/retry.d.ts +4 -1
- package/dist/types/images/run.d.ts +9 -1
- package/dist/types/node-runtime.d.ts +6 -1
- package/dist/types/providers/api.d.ts +9 -0
- package/dist/types/providers/base.d.ts +2 -0
- package/dist/types/providers/cli-generate.d.ts +5 -1
- package/dist/types/providers/cli-pending.d.ts +24 -0
- package/dist/types/providers/errors.d.ts +2 -1
- package/dist/types/providers/ledger.d.ts +10 -6
- package/dist/types/providers/popost-async.d.ts +35 -0
- package/dist/types/providers/popost-tasks.d.ts +16 -5
- package/dist/types/providers/popost.d.ts +16 -1
- package/dist/types/providers/task.d.ts +43 -0
- package/dist/types/render/browser.d.ts +16 -2
- package/dist/types/runtime.d.ts +73 -2
- package/dist/types/version.d.ts +1 -1
- package/dist/types/video/align/index.d.ts +43 -0
- package/dist/types/video/capture/director.d.ts +70 -0
- package/dist/types/video/capture/index.d.ts +141 -0
- package/dist/types/video/capture/stage.d.ts +99 -0
- package/dist/types/video/capture/steps.d.ts +138 -0
- package/dist/types/video/commands/cast.d.ts +3 -0
- package/dist/types/video/commands/clips.d.ts +2 -0
- package/dist/types/video/commands/compare-scope.d.ts +7 -0
- package/dist/types/video/commands/credits.d.ts +19 -0
- package/dist/types/video/commands/elements.d.ts +22 -0
- package/dist/types/video/commands/eval.d.ts +2 -0
- package/dist/types/video/commands/example.d.ts +1 -0
- package/dist/types/video/commands/generate.d.ts +14 -0
- package/dist/types/video/commands/loop-shared.d.ts +12 -0
- package/dist/types/video/commands/loop.d.ts +4 -0
- package/dist/types/video/commands/make.d.ts +9 -0
- package/dist/types/video/commands/materials.d.ts +1 -0
- package/dist/types/video/commands/measure.d.ts +2 -0
- package/dist/types/video/commands/media.d.ts +2 -0
- package/dist/types/video/commands/music-plan.d.ts +1 -0
- package/dist/types/video/commands/music.d.ts +2 -0
- package/dist/types/video/commands/read.d.ts +19 -0
- package/dist/types/video/commands/replication-books.d.ts +2 -0
- package/dist/types/video/commands/replication.d.ts +2 -0
- package/dist/types/video/commands/sfx-extract.d.ts +2 -0
- package/dist/types/video/commands/sfx-place.d.ts +3 -0
- package/dist/types/video/commands/sfx.d.ts +2 -0
- package/dist/types/video/commands/shared.d.ts +39 -0
- package/dist/types/video/commands/source.d.ts +2 -0
- package/dist/types/video/commands/speech-check.d.ts +1 -0
- package/dist/types/video/commands/speech-kind.d.ts +6 -0
- package/dist/types/video/commands/template.d.ts +10 -0
- package/dist/types/video/commands/voice-profile.d.ts +2 -0
- package/dist/types/video/commands/voice-sample.d.ts +1 -0
- package/dist/types/video/compile/footage.d.ts +36 -0
- package/dist/types/video/compile/index.d.ts +30 -0
- package/dist/types/video/compile/page-bundle.d.ts +1 -0
- package/dist/types/video/compile/page.d.ts +10 -0
- package/dist/types/video/compile/words.d.ts +9 -0
- package/dist/types/video/describe/aim.d.ts +20 -0
- package/dist/types/video/describe/beats.d.ts +53 -0
- package/dist/types/video/describe/curves.d.ts +27 -0
- package/dist/types/video/describe/frames.d.ts +62 -0
- package/dist/types/video/describe/index.d.ts +34 -0
- package/dist/types/video/describe/inset.d.ts +83 -0
- package/dist/types/video/describe/kind.d.ts +29 -0
- package/dist/types/video/describe/known.d.ts +31 -0
- package/dist/types/video/describe/movement.d.ts +17 -0
- package/dist/types/video/describe/parts.d.ts +52 -0
- package/dist/types/video/describe/paths.d.ts +21 -0
- package/dist/types/video/describe/speech-kind.d.ts +144 -0
- package/dist/types/video/describe/unrecovered.d.ts +29 -0
- package/dist/types/video/draft/build.d.ts +34 -0
- package/dist/types/video/draft/export.d.ts +19 -0
- package/dist/types/video/draft/lifecycle.d.ts +9 -0
- package/dist/types/video/draft/native.d.ts +27 -0
- package/dist/types/video/draft/schema.d.ts +316 -0
- package/dist/types/video/draft/targets.d.ts +19 -0
- package/dist/types/video/elements/caption-reading.d.ts +9 -0
- package/dist/types/video/elements/caption-roles.d.ts +6 -0
- package/dist/types/video/elements/carry.d.ts +45 -0
- package/dist/types/video/elements/check.d.ts +14 -0
- package/dist/types/video/elements/findings.d.ts +49 -0
- package/dist/types/video/elements/main.d.ts +54 -0
- package/dist/types/video/elements/picture.d.ts +31 -0
- package/dist/types/video/elements/questions.d.ts +35 -0
- package/dist/types/video/elements/read.d.ts +14 -0
- package/dist/types/video/elements/status.d.ts +23 -0
- package/dist/types/video/elements/types.d.ts +120 -0
- package/dist/types/video/eval/contrast.d.ts +136 -0
- package/dist/types/video/eval/dataset.d.ts +21 -0
- package/dist/types/video/eval/floor.d.ts +27 -0
- package/dist/types/video/eval/ledger.d.ts +27 -0
- package/dist/types/video/eval/legibility.d.ts +33 -0
- package/dist/types/video/eval/readback-frames.d.ts +41 -0
- package/dist/types/video/eval/readback-kept.d.ts +10 -0
- package/dist/types/video/eval/readback-run.d.ts +58 -0
- package/dist/types/video/eval/readback.d.ts +48 -0
- package/dist/types/video/eval/roundtrip.d.ts +71 -0
- package/dist/types/video/generate/approved.d.ts +74 -0
- package/dist/types/video/generate/cast.d.ts +60 -0
- package/dist/types/video/generate/character.d.ts +14 -0
- package/dist/types/video/generate/clip-sound.d.ts +63 -0
- package/dist/types/video/generate/cloud-image.d.ts +12 -0
- package/dist/types/video/generate/cloud.d.ts +67 -0
- package/dist/types/video/generate/dialogue.d.ts +116 -0
- package/dist/types/video/generate/index.d.ts +265 -0
- package/dist/types/video/generate/provenance.d.ts +11 -0
- package/dist/types/video/generate/speech-lock.d.ts +4 -0
- package/dist/types/video/generate/speech.d.ts +20 -0
- package/dist/types/video/host.d.ts +42 -0
- package/dist/types/video/hosted-api.d.ts +161 -0
- package/dist/types/video/look/index.d.ts +67 -0
- package/dist/types/video/look/like.d.ts +18 -0
- package/dist/types/video/look/sheets.d.ts +58 -0
- package/dist/types/video/measure/align.d.ts +33 -0
- package/dist/types/video/measure/amount.d.ts +52 -0
- package/dist/types/video/measure/bars.d.ts +22 -0
- package/dist/types/video/measure/boundaries.d.ts +18 -0
- package/dist/types/video/measure/cache.d.ts +6 -0
- package/dist/types/video/measure/camera.d.ts +21 -0
- package/dist/types/video/measure/colour.d.ts +12 -0
- package/dist/types/video/measure/curve.d.ts +29 -0
- package/dist/types/video/measure/cuts.d.ts +17 -0
- package/dist/types/video/measure/easing.d.ts +52 -0
- package/dist/types/video/measure/fill.d.ts +20 -0
- package/dist/types/video/measure/fits.d.ts +80 -0
- package/dist/types/video/measure/gradual.d.ts +23 -0
- package/dist/types/video/measure/index.d.ts +28 -0
- package/dist/types/video/measure/kinds.d.ts +71 -0
- package/dist/types/video/measure/motion.d.ts +26 -0
- package/dist/types/video/measure/move.d.ts +90 -0
- package/dist/types/video/measure/moves.d.ts +22 -0
- package/dist/types/video/measure/orientation.d.ts +11 -0
- package/dist/types/video/measure/pixels.d.ts +41 -0
- package/dist/types/video/measure/profile.d.ts +53 -0
- package/dist/types/video/measure/reveal.d.ts +48 -0
- package/dist/types/video/measure/rhythm.d.ts +7 -0
- package/dist/types/video/measure/robust.d.ts +18 -0
- package/dist/types/video/measure/signals.d.ts +48 -0
- package/dist/types/video/measure/signature.d.ts +10 -0
- package/dist/types/video/measure/span.d.ts +28 -0
- package/dist/types/video/measure/still-shots.d.ts +40 -0
- package/dist/types/video/measure/switch.d.ts +101 -0
- package/dist/types/video/measure/tracks.d.ts +20 -0
- package/dist/types/video/measure/unmix.d.ts +20 -0
- package/dist/types/video/media/decode.d.ts +59 -0
- package/dist/types/video/media/ffmpeg.d.ts +48 -0
- package/dist/types/video/media/footage.d.ts +53 -0
- package/dist/types/video/media/screenshot.d.ts +26 -0
- package/dist/types/video/media/selection.d.ts +4 -0
- package/dist/types/video/media/wav.d.ts +26 -0
- package/dist/types/video/music/hosted.d.ts +110 -0
- package/dist/types/video/music/plan.d.ts +103 -0
- package/dist/types/video/music/provenance.d.ts +86 -0
- package/dist/types/video/page/apply.d.ts +9 -0
- package/dist/types/video/page/contract.d.ts +164 -0
- package/dist/types/video/page/css.d.ts +9 -0
- package/dist/types/video/page/dom.d.ts +56 -0
- package/dist/types/video/page/fit.d.ts +13 -0
- package/dist/types/video/page/layout.d.ts +8 -0
- package/dist/types/video/page/main.d.ts +1 -0
- package/dist/types/video/page/scene.d.ts +38 -0
- package/dist/types/video/page/texts.d.ts +10 -0
- package/dist/types/video/page/times.d.ts +31 -0
- package/dist/types/video/page/words.d.ts +39 -0
- package/dist/types/video/paid-download.d.ts +19 -0
- package/dist/types/video/plan/ask.d.ts +77 -0
- package/dist/types/video/plan/generated.d.ts +29 -0
- package/dist/types/video/plan/index.d.ts +6 -0
- package/dist/types/video/plan/materials.d.ts +22 -0
- package/dist/types/video/plan/model.d.ts +59 -0
- package/dist/types/video/plan/prompt.d.ts +41 -0
- package/dist/types/video/plan/see.d.ts +35 -0
- package/dist/types/video/presets/camera.d.ts +27 -0
- package/dist/types/video/presets/easing.d.ts +11 -0
- package/dist/types/video/presets/fill.d.ts +16 -0
- package/dist/types/video/presets/loop.d.ts +20 -0
- package/dist/types/video/presets/motion.d.ts +47 -0
- package/dist/types/video/presets/spoken.d.ts +35 -0
- package/dist/types/video/presets/text-styles.d.ts +44 -0
- package/dist/types/video/presets/transition.d.ts +66 -0
- package/dist/types/video/preview/cloud.d.ts +13 -0
- package/dist/types/video/preview/edit/check.d.ts +15 -0
- package/dist/types/video/preview/edit/editor.d.ts +52 -0
- package/dist/types/video/preview/edit/ops.d.ts +52 -0
- package/dist/types/video/preview/edit/render.d.ts +11 -0
- package/dist/types/video/preview/edit/retime.d.ts +2 -0
- package/dist/types/video/preview/edit/routes.d.ts +1106 -0
- package/dist/types/video/preview/export-settings.d.ts +25 -0
- package/dist/types/video/preview/files.d.ts +25 -0
- package/dist/types/video/preview/html.d.ts +9 -0
- package/dist/types/video/preview/index.d.ts +20 -0
- package/dist/types/video/preview/project.d.ts +48 -0
- package/dist/types/video/preview/protocol.d.ts +91 -0
- package/dist/types/video/preview/server.d.ts +21 -0
- package/dist/types/video/preview/shell/app.d.ts +81 -0
- package/dist/types/video/preview/shell/dom.d.ts +49 -0
- package/dist/types/video/preview/shell/edit/controller.d.ts +32 -0
- package/dist/types/video/preview/shell/edit/fields.d.ts +49 -0
- package/dist/types/video/preview/shell/edit/form-parts.d.ts +17 -0
- package/dist/types/video/preview/shell/edit/form.d.ts +17 -0
- package/dist/types/video/preview/shell/edit/inline.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/lanes-edit.d.ts +31 -0
- package/dist/types/video/preview/shell/edit/layer-order.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/remove.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/reveal.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/scenes.d.ts +7 -0
- package/dist/types/video/preview/shell/edit/schema.d.ts +30 -0
- package/dist/types/video/preview/shell/edit/source.d.ts +83 -0
- package/dist/types/video/preview/shell/edit/split.d.ts +8 -0
- package/dist/types/video/preview/shell/edit/stage-edit.d.ts +21 -0
- package/dist/types/video/preview/shell/edit/text-fit.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/toolbar.d.ts +14 -0
- package/dist/types/video/preview/shell/footage.d.ts +6 -0
- package/dist/types/video/preview/shell/i18n.d.ts +176 -0
- package/dist/types/video/preview/shell/lanes.d.ts +2 -0
- package/dist/types/video/preview/shell/main.d.ts +1 -0
- package/dist/types/video/preview/shell/model.d.ts +85 -0
- package/dist/types/video/preview/shell/panel.d.ts +3 -0
- package/dist/types/video/preview/shell/readonly.d.ts +1 -0
- package/dist/types/video/preview/shell/stage.d.ts +7 -0
- package/dist/types/video/preview/shell/studio/audio.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/cloud.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/code.d.ts +6 -0
- package/dist/types/video/preview/shell/studio/copy.d.ts +159 -0
- package/dist/types/video/preview/shell/studio/draft-result.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/export.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/scene-selection.d.ts +19 -0
- package/dist/types/video/preview/shell/studio/sidebar.d.ts +27 -0
- package/dist/types/video/preview/shell/studio/style.d.ts +2 -0
- package/dist/types/video/preview/shell/studio/timeline.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/ui.d.ts +18 -0
- package/dist/types/video/preview/shell/studio/workspace.d.ts +11 -0
- package/dist/types/video/preview/shell/style.d.ts +5 -0
- package/dist/types/video/preview/shell/transport.d.ts +6 -0
- package/dist/types/video/preview/shell-bundle.d.ts +1 -0
- package/dist/types/video/preview/studio-actions.d.ts +4 -0
- package/dist/types/video/preview/studio-data.d.ts +32 -0
- package/dist/types/video/preview/thumbnails.d.ts +5 -0
- package/dist/types/video/preview/watch.d.ts +23 -0
- package/dist/types/video/progress.d.ts +28 -0
- package/dist/types/video/project/check-camera.d.ts +8 -0
- package/dist/types/video/project/check-caption.d.ts +8 -0
- package/dist/types/video/project/check-common.d.ts +25 -0
- package/dist/types/video/project/check-footage.d.ts +22 -0
- package/dist/types/video/project/check-look.d.ts +19 -0
- package/dist/types/video/project/check-sound.d.ts +57 -0
- package/dist/types/video/project/check-span.d.ts +11 -0
- package/dist/types/video/project/check-tracks.d.ts +8 -0
- package/dist/types/video/project/check-transition.d.ts +11 -0
- package/dist/types/video/project/check-words.d.ts +32 -0
- package/dist/types/video/project/check.d.ts +42 -0
- package/dist/types/video/project/issues.d.ts +43 -0
- package/dist/types/video/project/schema.d.ts +2074 -0
- package/dist/types/video/project/suggest.d.ts +4 -0
- package/dist/types/video/project/words.d.ts +6 -0
- package/dist/types/video/render/browser-step.d.ts +5 -0
- package/dist/types/video/render/chunked.d.ts +29 -0
- package/dist/types/video/render/chunks.d.ts +39 -0
- package/dist/types/video/render/encode.d.ts +54 -0
- package/dist/types/video/render/index.d.ts +116 -0
- package/dist/types/video/render/layout.d.ts +26 -0
- package/dist/types/video/render/record.d.ts +80 -0
- package/dist/types/video/render/session.d.ts +81 -0
- package/dist/types/video/render/shots.d.ts +11 -0
- package/dist/types/video/render/verify.d.ts +16 -0
- package/dist/types/video/replication/audio-provenance.d.ts +36 -0
- package/dist/types/video/replication/books.d.ts +64 -0
- package/dist/types/video/replication/browser.d.ts +1 -0
- package/dist/types/video/replication/check.d.ts +19 -0
- package/dist/types/video/replication/contract.d.ts +683 -0
- package/dist/types/video/replication/io.d.ts +22 -0
- package/dist/types/video/replication/motion-bundle.d.ts +1 -0
- package/dist/types/video/replication/motion.d.ts +109 -0
- package/dist/types/video/replication/pairs.d.ts +69 -0
- package/dist/types/video/replication/prefill.d.ts +34 -0
- package/dist/types/video/replication/production.d.ts +168 -0
- package/dist/types/video/replication/retiming.d.ts +16 -0
- package/dist/types/video/replication/review.d.ts +50 -0
- package/dist/types/video/replication/revision.d.ts +2 -0
- package/dist/types/video/replication/schema.d.ts +56 -0
- package/dist/types/video/replication/source-clock.d.ts +24 -0
- package/dist/types/video/replication/speech-observed.d.ts +121 -0
- package/dist/types/video/replication/voice-spans.d.ts +3 -0
- package/dist/types/video/retarget/caption-look.d.ts +14 -0
- package/dist/types/video/retarget/fps.d.ts +5 -0
- package/dist/types/video/retarget/index.d.ts +256 -0
- package/dist/types/video/retarget/items.d.ts +44 -0
- package/dist/types/video/retarget/marks.d.ts +12 -0
- package/dist/types/video/retarget/pace.d.ts +36 -0
- package/dist/types/video/retarget/speak.d.ts +43 -0
- package/dist/types/video/retarget/takes.d.ts +66 -0
- package/dist/types/video/retarget/tempo.d.ts +42 -0
- package/dist/types/video/retarget/titles.d.ts +76 -0
- package/dist/types/video/retarget/words.d.ts +39 -0
- package/dist/types/video/scene/author.d.ts +74 -0
- package/dist/types/video/scene/check.d.ts +64 -0
- package/dist/types/video/scene/copied.d.ts +30 -0
- package/dist/types/video/scene/cues.d.ts +40 -0
- package/dist/types/video/scene/examples.d.ts +129 -0
- package/dist/types/video/scene/findings.d.ts +71 -0
- package/dist/types/video/scene/fonts.d.ts +19 -0
- package/dist/types/video/scene/items.d.ts +23 -0
- package/dist/types/video/scene/library.d.ts +41 -0
- package/dist/types/video/scene/lint.d.ts +15 -0
- package/dist/types/video/scene/numbers.d.ts +39 -0
- package/dist/types/video/scene/pictures.d.ts +12 -0
- package/dist/types/video/scene/write.d.ts +41 -0
- package/dist/types/video/score/index.d.ts +13 -0
- package/dist/types/video/score/pair.d.ts +43 -0
- package/dist/types/video/score/picture.d.ts +14 -0
- package/dist/types/video/score/project-windows.d.ts +9 -0
- package/dist/types/video/score/shot-transition.d.ts +62 -0
- package/dist/types/video/score/shots.d.ts +101 -0
- package/dist/types/video/score/time.d.ts +22 -0
- package/dist/types/video/score/tracks.d.ts +42 -0
- package/dist/types/video/score/weights.d.ts +19 -0
- package/dist/types/video/sfx/cache.d.ts +16 -0
- package/dist/types/video/sfx/catalogue.d.ts +64 -0
- package/dist/types/video/sfx/extract.d.ts +65 -0
- package/dist/types/video/sfx/levels.d.ts +39 -0
- package/dist/types/video/sfx/library.d.ts +26 -0
- package/dist/types/video/sfx/place.d.ts +82 -0
- package/dist/types/video/sfx/project.d.ts +36 -0
- package/dist/types/video/sound/analysis.d.ts +46 -0
- package/dist/types/video/sound/breaks.d.ts +84 -0
- package/dist/types/video/sound/measure.d.ts +106 -0
- package/dist/types/video/sound/modes.d.ts +75 -0
- package/dist/types/video/sound/pcm.d.ts +21 -0
- package/dist/types/video/sound/reading.d.ts +124 -0
- package/dist/types/video/sound/speech-check.d.ts +76 -0
- package/dist/types/video/source/collect.d.ts +64 -0
- package/dist/types/video/source/read.d.ts +57 -0
- package/dist/types/video/source/used.d.ts +4 -0
- package/dist/types/video/speech/hosted.d.ts +36 -0
- package/dist/types/video/speech/index.d.ts +83 -0
- package/dist/types/video/speech/types.d.ts +46 -0
- package/dist/types/video/submit-retry.d.ts +15 -0
- package/dist/types/video/synth/generate.d.ts +53 -0
- package/dist/types/video/synth/truth.d.ts +8 -0
- package/dist/types/video/synth/write.d.ts +13 -0
- package/dist/types/video/template/capacity.d.ts +37 -0
- package/dist/types/video/template/card-elements.d.ts +17 -0
- package/dist/types/video/template/card.d.ts +22 -0
- package/dist/types/video/template/check-captions.d.ts +11 -0
- package/dist/types/video/template/check.d.ts +40 -0
- package/dist/types/video/template/facts.d.ts +90 -0
- package/dist/types/video/template/fill.d.ts +53 -0
- package/dist/types/video/template/fingerprint.d.ts +2 -0
- package/dist/types/video/template/fit.d.ts +60 -0
- package/dist/types/video/template/index.d.ts +8 -0
- package/dist/types/video/template/project.d.ts +21 -0
- package/dist/types/video/template/save.d.ts +54 -0
- package/dist/types/video/template/slots.d.ts +26 -0
- package/dist/types/video/template/speech-rules.d.ts +61 -0
- package/dist/types/video/template/split.d.ts +10 -0
- package/dist/types/video/template/structure.d.ts +82 -0
- package/dist/types/video/template/swap.d.ts +33 -0
- package/dist/types/video/template/types.d.ts +387 -0
- package/dist/types/video/text/bar.d.ts +63 -0
- package/dist/types/video/text/change.d.ts +19 -0
- package/dist/types/video/text/core.d.ts +25 -0
- package/dist/types/video/text/cues.d.ts +26 -0
- package/dist/types/video/text/fold.d.ts +9 -0
- package/dist/types/video/text/frame.d.ts +41 -0
- package/dist/types/video/text/highlight.d.ts +19 -0
- package/dist/types/video/text/index.d.ts +67 -0
- package/dist/types/video/text/letters.d.ts +85 -0
- package/dist/types/video/text/look.d.ts +53 -0
- package/dist/types/video/text/reader-command.d.ts +26 -0
- package/dist/types/video/text/reveal.d.ts +37 -0
- package/dist/types/video/text/rings.d.ts +39 -0
- package/dist/types/video/text/shadow.d.ts +44 -0
- package/dist/types/video/text/share.d.ts +2 -0
- package/dist/types/video/text/speech.d.ts +15 -0
- package/dist/types/video/text/strokes.d.ts +30 -0
- package/dist/types/video/text/types.d.ts +147 -0
- package/dist/types/video/timeline/cue-words.d.ts +27 -0
- package/dist/types/video/timeline/footage.d.ts +25 -0
- package/dist/types/video/timeline/frame.d.ts +55 -0
- package/dist/types/video/timeline/items.d.ts +28 -0
- package/dist/types/video/timeline/mix.d.ts +67 -0
- package/dist/types/video/timeline/resolve.d.ts +20 -0
- package/dist/types/video/timeline/spans.d.ts +32 -0
- package/dist/types/video/timeline/words.d.ts +64 -0
- package/dist/types/video/tool.d.ts +29 -0
- package/dist/types/video/types.d.ts +1057 -0
- package/dist/types/video/voice/cache.d.ts +10 -0
- package/dist/types/video/voice/create.d.ts +43 -0
- package/dist/types/video/voice/hosted.d.ts +42 -0
- package/dist/types/video/voice/index.d.ts +85 -0
- package/dist/types/video/voice/pace.d.ts +37 -0
- package/dist/types/video/voice/profile.d.ts +26 -0
- package/dist/types/video/voice/sample.d.ts +46 -0
- package/dist/types/video/wallet.d.ts +45 -0
- package/dist/types/video/work.d.ts +10 -0
- package/dist/types/workflow/post-bundle.d.ts +2 -2
- package/package.json +13 -4
- package/references/image-workflow.md +111 -0
- package/references/onboarding.md +50 -19
- package/references/post-bundle.md +1 -1
- package/references/providers.md +5 -2
- package/references/video-draft-export.md +13 -0
- package/references/video-editing.md +43 -0
- package/references/video-effects.md +613 -0
- package/references/video-elements.md +199 -0
- package/references/video-examples/showcase/assets/pattern.svg +18 -0
- package/references/video-examples/showcase/assets/voice.sbg +4 -0
- package/references/video-examples/showcase/assets/voice.words.json +68 -0
- package/references/video-examples/showcase/video.json +550 -0
- package/references/video-examples/template-demo/TEMPLATE.md +30 -0
- package/references/video-examples/template-demo/fill.json +29 -0
- package/references/video-examples/template-demo/slots.json +210 -0
- package/references/video-examples/template-demo/template.json +105 -0
- package/references/video-motion.md +315 -0
- package/references/video-native-observation.md +37 -0
- package/references/video-performers.md +96 -0
- package/references/video-project.md +65 -0
- package/references/video-replication.md +305 -0
- package/references/video-scenes.md +416 -0
- package/references/video-sfx.md +109 -0
- package/references/video-sound.md +222 -0
- package/references/video-step-0-machine.md +61 -0
- package/references/video-step-1-read.md +168 -0
- package/references/video-step-2-structure.md +24 -0
- package/references/video-step-3-content.md +117 -0
- package/references/video-step-4-lines.md +88 -0
- package/references/video-step-5-scenes.md +126 -0
- package/references/video-step-6-voice.md +53 -0
- package/references/video-step-7-deliver.md +92 -0
- package/references/video-templates.md +187 -0
- package/references/video-tools.md +562 -0
- package/references/video.md +140 -0
- package/templates/community/README.md +274 -1
- package/templates/community/index.json +3829 -0
- package/templates/community/instagram-age-expectations/README.md +14 -0
- package/templates/community/instagram-age-expectations/SKILL.md +52 -0
- package/templates/community/instagram-age-expectations/source.json +9 -0
- package/templates/community/instagram-age-expectations/template.json +53 -0
- package/templates/community/instagram-artwork-detail/README.md +19 -0
- package/templates/community/instagram-artwork-detail/SKILL.md +53 -0
- package/templates/community/instagram-artwork-detail/source.json +9 -0
- package/templates/community/instagram-artwork-detail/template.json +61 -0
- package/templates/community/instagram-balanced-traits/README.md +12 -0
- package/templates/community/instagram-balanced-traits/SKILL.md +52 -0
- package/templates/community/instagram-balanced-traits/source.json +9 -0
- package/templates/community/instagram-balanced-traits/template.json +53 -0
- package/templates/community/instagram-behind-the-scenes/README.md +12 -0
- package/templates/community/instagram-behind-the-scenes/SKILL.md +53 -0
- package/templates/community/instagram-behind-the-scenes/source.json +9 -0
- package/templates/community/instagram-behind-the-scenes/template.json +52 -0
- package/templates/community/instagram-brand-personification/README.md +26 -0
- package/templates/community/instagram-brand-personification/SKILL.md +53 -0
- package/templates/community/instagram-brand-personification/source.json +9 -0
- package/templates/community/instagram-brand-personification/template.json +66 -0
- package/templates/community/instagram-brand-system/README.md +17 -0
- package/templates/community/instagram-brand-system/SKILL.md +53 -0
- package/templates/community/instagram-brand-system/source.json +9 -0
- package/templates/community/instagram-brand-system/template.json +60 -0
- package/templates/community/instagram-calendar-cheat-sheet/README.md +8 -0
- package/templates/community/instagram-calendar-cheat-sheet/SKILL.md +53 -0
- package/templates/community/instagram-calendar-cheat-sheet/source.json +9 -0
- package/templates/community/instagram-calendar-cheat-sheet/template.json +47 -0
- package/templates/community/instagram-capacity-planning/README.md +12 -0
- package/templates/community/instagram-capacity-planning/SKILL.md +53 -0
- package/templates/community/instagram-capacity-planning/source.json +9 -0
- package/templates/community/instagram-capacity-planning/template.json +55 -0
- package/templates/community/instagram-category-use-guide/README.md +14 -0
- package/templates/community/instagram-category-use-guide/SKILL.md +53 -0
- package/templates/community/instagram-category-use-guide/source.json +9 -0
- package/templates/community/instagram-category-use-guide/template.json +55 -0
- package/templates/community/instagram-character-led-tour/README.md +17 -0
- package/templates/community/instagram-character-led-tour/SKILL.md +53 -0
- package/templates/community/instagram-character-led-tour/source.json +9 -0
- package/templates/community/instagram-character-led-tour/template.json +56 -0
- package/templates/community/instagram-comic-dialogue/README.md +16 -0
- package/templates/community/instagram-comic-dialogue/SKILL.md +53 -0
- package/templates/community/instagram-comic-dialogue/source.json +9 -0
- package/templates/community/instagram-comic-dialogue/template.json +59 -0
- package/templates/community/instagram-command-shortcuts/README.md +13 -0
- package/templates/community/instagram-command-shortcuts/SKILL.md +53 -0
- package/templates/community/instagram-command-shortcuts/source.json +9 -0
- package/templates/community/instagram-command-shortcuts/template.json +52 -0
- package/templates/community/instagram-context-changes-meaning/README.md +11 -0
- package/templates/community/instagram-context-changes-meaning/SKILL.md +53 -0
- package/templates/community/instagram-context-changes-meaning/source.json +9 -0
- package/templates/community/instagram-context-changes-meaning/template.json +54 -0
- package/templates/community/instagram-continuous-canvas/README.md +16 -0
- package/templates/community/instagram-continuous-canvas/SKILL.md +52 -0
- package/templates/community/instagram-continuous-canvas/source.json +9 -0
- package/templates/community/instagram-continuous-canvas/template.json +59 -0
- package/templates/community/instagram-conversation-questions/README.md +12 -0
- package/templates/community/instagram-conversation-questions/SKILL.md +52 -0
- package/templates/community/instagram-conversation-questions/source.json +9 -0
- package/templates/community/instagram-conversation-questions/template.json +51 -0
- package/templates/community/instagram-copy-alternatives/README.md +11 -0
- package/templates/community/instagram-copy-alternatives/SKILL.md +53 -0
- package/templates/community/instagram-copy-alternatives/source.json +9 -0
- package/templates/community/instagram-copy-alternatives/template.json +50 -0
- package/templates/community/instagram-copyable-notes/README.md +13 -0
- package/templates/community/instagram-copyable-notes/SKILL.md +52 -0
- package/templates/community/instagram-copyable-notes/source.json +9 -0
- package/templates/community/instagram-copyable-notes/template.json +51 -0
- package/templates/community/instagram-curated-resources/README.md +13 -0
- package/templates/community/instagram-curated-resources/SKILL.md +52 -0
- package/templates/community/instagram-curated-resources/source.json +9 -0
- package/templates/community/instagram-curated-resources/template.json +54 -0
- package/templates/community/instagram-destination-costs/README.md +17 -0
- package/templates/community/instagram-destination-costs/SKILL.md +52 -0
- package/templates/community/instagram-destination-costs/source.json +9 -0
- package/templates/community/instagram-destination-costs/template.json +56 -0
- package/templates/community/instagram-diagram-reference/README.md +10 -0
- package/templates/community/instagram-diagram-reference/SKILL.md +53 -0
- package/templates/community/instagram-diagram-reference/source.json +9 -0
- package/templates/community/instagram-diagram-reference/template.json +52 -0
- package/templates/community/instagram-different-perspectives/README.md +15 -0
- package/templates/community/instagram-different-perspectives/SKILL.md +53 -0
- package/templates/community/instagram-different-perspectives/source.json +9 -0
- package/templates/community/instagram-different-perspectives/template.json +55 -0
- package/templates/community/instagram-document-reveal/README.md +8 -0
- package/templates/community/instagram-document-reveal/SKILL.md +53 -0
- package/templates/community/instagram-document-reveal/source.json +9 -0
- package/templates/community/instagram-document-reveal/template.json +46 -0
- package/templates/community/instagram-effect-breakdown/README.md +14 -0
- package/templates/community/instagram-effect-breakdown/SKILL.md +53 -0
- package/templates/community/instagram-effect-breakdown/source.json +9 -0
- package/templates/community/instagram-effect-breakdown/template.json +55 -0
- package/templates/community/instagram-effort-and-outcome/README.md +13 -0
- package/templates/community/instagram-effort-and-outcome/SKILL.md +52 -0
- package/templates/community/instagram-effort-and-outcome/source.json +9 -0
- package/templates/community/instagram-effort-and-outcome/template.json +54 -0
- package/templates/community/instagram-emotion-and-meaning/README.md +16 -0
- package/templates/community/instagram-emotion-and-meaning/SKILL.md +52 -0
- package/templates/community/instagram-emotion-and-meaning/source.json +9 -0
- package/templates/community/instagram-emotion-and-meaning/template.json +56 -0
- package/templates/community/instagram-everyday-interface-story/README.md +12 -0
- package/templates/community/instagram-everyday-interface-story/SKILL.md +53 -0
- package/templates/community/instagram-everyday-interface-story/source.json +9 -0
- package/templates/community/instagram-everyday-interface-story/template.json +51 -0
- package/templates/community/instagram-everyday-photo-diary/README.md +16 -0
- package/templates/community/instagram-everyday-photo-diary/SKILL.md +52 -0
- package/templates/community/instagram-everyday-photo-diary/source.json +9 -0
- package/templates/community/instagram-everyday-photo-diary/template.json +61 -0
- package/templates/community/instagram-evidence-to-method/README.md +13 -0
- package/templates/community/instagram-evidence-to-method/SKILL.md +53 -0
- package/templates/community/instagram-evidence-to-method/source.json +9 -0
- package/templates/community/instagram-evidence-to-method/template.json +56 -0
- package/templates/community/instagram-expectation-reality-review/README.md +18 -0
- package/templates/community/instagram-expectation-reality-review/SKILL.md +53 -0
- package/templates/community/instagram-expectation-reality-review/source.json +9 -0
- package/templates/community/instagram-expectation-reality-review/template.json +57 -0
- package/templates/community/instagram-experiment-story/README.md +20 -0
- package/templates/community/instagram-experiment-story/SKILL.md +54 -0
- package/templates/community/instagram-experiment-story/source.json +9 -0
- package/templates/community/instagram-experiment-story/template.json +58 -0
- package/templates/community/instagram-fill-in-speech/README.md +14 -0
- package/templates/community/instagram-fill-in-speech/SKILL.md +53 -0
- package/templates/community/instagram-fill-in-speech/source.json +9 -0
- package/templates/community/instagram-fill-in-speech/template.json +53 -0
- package/templates/community/instagram-fill-in-workbook/README.md +16 -0
- package/templates/community/instagram-fill-in-workbook/SKILL.md +53 -0
- package/templates/community/instagram-fill-in-workbook/source.json +9 -0
- package/templates/community/instagram-fill-in-workbook/template.json +57 -0
- package/templates/community/instagram-font-pairing/README.md +14 -0
- package/templates/community/instagram-font-pairing/SKILL.md +52 -0
- package/templates/community/instagram-font-pairing/source.json +9 -0
- package/templates/community/instagram-font-pairing/template.json +53 -0
- package/templates/community/instagram-goal-benchmarks/README.md +12 -0
- package/templates/community/instagram-goal-benchmarks/SKILL.md +53 -0
- package/templates/community/instagram-goal-benchmarks/source.json +9 -0
- package/templates/community/instagram-goal-benchmarks/template.json +51 -0
- package/templates/community/instagram-identity-match/README.md +19 -0
- package/templates/community/instagram-identity-match/SKILL.md +52 -0
- package/templates/community/instagram-identity-match/source.json +9 -0
- package/templates/community/instagram-identity-match/template.json +64 -0
- package/templates/community/instagram-illustrated-opinion/README.md +16 -0
- package/templates/community/instagram-illustrated-opinion/SKILL.md +52 -0
- package/templates/community/instagram-illustrated-opinion/source.json +9 -0
- package/templates/community/instagram-illustrated-opinion/template.json +56 -0
- package/templates/community/instagram-illustrated-story-explainer/README.md +14 -0
- package/templates/community/instagram-illustrated-story-explainer/SKILL.md +53 -0
- package/templates/community/instagram-illustrated-story-explainer/source.json +9 -0
- package/templates/community/instagram-illustrated-story-explainer/template.json +55 -0
- package/templates/community/instagram-image-to-palette/README.md +17 -0
- package/templates/community/instagram-image-to-palette/SKILL.md +53 -0
- package/templates/community/instagram-image-to-palette/source.json +9 -0
- package/templates/community/instagram-image-to-palette/template.json +58 -0
- package/templates/community/instagram-incremental-assembly/README.md +15 -0
- package/templates/community/instagram-incremental-assembly/SKILL.md +52 -0
- package/templates/community/instagram-incremental-assembly/source.json +9 -0
- package/templates/community/instagram-incremental-assembly/template.json +55 -0
- package/templates/community/instagram-interview-storyboard/README.md +25 -0
- package/templates/community/instagram-interview-storyboard/SKILL.md +53 -0
- package/templates/community/instagram-interview-storyboard/source.json +9 -0
- package/templates/community/instagram-interview-storyboard/template.json +65 -0
- package/templates/community/instagram-launch-news/README.md +9 -0
- package/templates/community/instagram-launch-news/SKILL.md +53 -0
- package/templates/community/instagram-launch-news/source.json +9 -0
- package/templates/community/instagram-launch-news/template.json +55 -0
- package/templates/community/instagram-layout-anatomy/README.md +12 -0
- package/templates/community/instagram-layout-anatomy/SKILL.md +53 -0
- package/templates/community/instagram-layout-anatomy/source.json +9 -0
- package/templates/community/instagram-layout-anatomy/template.json +54 -0
- package/templates/community/instagram-learning-path/README.md +14 -0
- package/templates/community/instagram-learning-path/SKILL.md +53 -0
- package/templates/community/instagram-learning-path/source.json +9 -0
- package/templates/community/instagram-learning-path/template.json +55 -0
- package/templates/community/instagram-local-picks/README.md +16 -0
- package/templates/community/instagram-local-picks/SKILL.md +52 -0
- package/templates/community/instagram-local-picks/source.json +9 -0
- package/templates/community/instagram-local-picks/template.json +55 -0
- package/templates/community/instagram-matched-test/README.md +10 -0
- package/templates/community/instagram-matched-test/SKILL.md +53 -0
- package/templates/community/instagram-matched-test/source.json +9 -0
- package/templates/community/instagram-matched-test/template.json +49 -0
- package/templates/community/instagram-metric-formulas/README.md +15 -0
- package/templates/community/instagram-metric-formulas/SKILL.md +53 -0
- package/templates/community/instagram-metric-formulas/source.json +9 -0
- package/templates/community/instagram-metric-formulas/template.json +55 -0
- package/templates/community/instagram-milestones-and-feelings/README.md +13 -0
- package/templates/community/instagram-milestones-and-feelings/SKILL.md +52 -0
- package/templates/community/instagram-milestones-and-feelings/source.json +9 -0
- package/templates/community/instagram-milestones-and-feelings/template.json +56 -0
- package/templates/community/instagram-mistakes-and-alternatives/README.md +12 -0
- package/templates/community/instagram-mistakes-and-alternatives/SKILL.md +52 -0
- package/templates/community/instagram-mistakes-and-alternatives/source.json +9 -0
- package/templates/community/instagram-mistakes-and-alternatives/template.json +53 -0
- package/templates/community/instagram-myth-and-fact/README.md +12 -0
- package/templates/community/instagram-myth-and-fact/SKILL.md +53 -0
- package/templates/community/instagram-myth-and-fact/source.json +9 -0
- package/templates/community/instagram-myth-and-fact/template.json +51 -0
- package/templates/community/instagram-news-digest/README.md +13 -0
- package/templates/community/instagram-news-digest/SKILL.md +53 -0
- package/templates/community/instagram-news-digest/source.json +9 -0
- package/templates/community/instagram-news-digest/template.json +52 -0
- package/templates/community/instagram-numbers-at-human-scale/README.md +12 -0
- package/templates/community/instagram-numbers-at-human-scale/SKILL.md +53 -0
- package/templates/community/instagram-numbers-at-human-scale/source.json +9 -0
- package/templates/community/instagram-numbers-at-human-scale/template.json +52 -0
- package/templates/community/instagram-object-led-activities/README.md +16 -0
- package/templates/community/instagram-object-led-activities/SKILL.md +53 -0
- package/templates/community/instagram-object-led-activities/source.json +9 -0
- package/templates/community/instagram-object-led-activities/template.json +56 -0
- package/templates/community/instagram-object-name-origins/README.md +11 -0
- package/templates/community/instagram-object-name-origins/SKILL.md +52 -0
- package/templates/community/instagram-object-name-origins/source.json +9 -0
- package/templates/community/instagram-object-name-origins/template.json +52 -0
- package/templates/community/instagram-one-input-many-results/README.md +14 -0
- package/templates/community/instagram-one-input-many-results/SKILL.md +53 -0
- package/templates/community/instagram-one-input-many-results/source.json +9 -0
- package/templates/community/instagram-one-input-many-results/template.json +52 -0
- package/templates/community/instagram-one-variable-comparison/README.md +11 -0
- package/templates/community/instagram-one-variable-comparison/SKILL.md +53 -0
- package/templates/community/instagram-one-variable-comparison/source.json +9 -0
- package/templates/community/instagram-one-variable-comparison/template.json +52 -0
- package/templates/community/instagram-opportunity-guide/README.md +18 -0
- package/templates/community/instagram-opportunity-guide/SKILL.md +53 -0
- package/templates/community/instagram-opportunity-guide/source.json +9 -0
- package/templates/community/instagram-opportunity-guide/template.json +57 -0
- package/templates/community/instagram-palette-application-board/README.md +11 -0
- package/templates/community/instagram-palette-application-board/SKILL.md +52 -0
- package/templates/community/instagram-palette-application-board/source.json +9 -0
- package/templates/community/instagram-palette-application-board/template.json +52 -0
- package/templates/community/instagram-personal-budget-case/README.md +14 -0
- package/templates/community/instagram-personal-budget-case/SKILL.md +53 -0
- package/templates/community/instagram-personal-budget-case/source.json +9 -0
- package/templates/community/instagram-personal-budget-case/template.json +53 -0
- package/templates/community/instagram-personal-experiment/README.md +11 -0
- package/templates/community/instagram-personal-experiment/SKILL.md +53 -0
- package/templates/community/instagram-personal-experiment/source.json +9 -0
- package/templates/community/instagram-personal-experiment/template.json +52 -0
- package/templates/community/instagram-photo-and-technical-sketch/README.md +10 -0
- package/templates/community/instagram-photo-and-technical-sketch/SKILL.md +53 -0
- package/templates/community/instagram-photo-and-technical-sketch/source.json +9 -0
- package/templates/community/instagram-photo-and-technical-sketch/template.json +49 -0
- package/templates/community/instagram-photo-moment-story/README.md +12 -0
- package/templates/community/instagram-photo-moment-story/SKILL.md +53 -0
- package/templates/community/instagram-photo-moment-story/source.json +9 -0
- package/templates/community/instagram-photo-moment-story/template.json +53 -0
- package/templates/community/instagram-product-change/README.md +9 -0
- package/templates/community/instagram-product-change/SKILL.md +53 -0
- package/templates/community/instagram-product-change/source.json +10 -0
- package/templates/community/instagram-product-change/template.json +53 -0
- package/templates/community/instagram-prompt-result-reference/README.md +26 -0
- package/templates/community/instagram-prompt-result-reference/SKILL.md +53 -0
- package/templates/community/instagram-prompt-result-reference/source.json +9 -0
- package/templates/community/instagram-prompt-result-reference/template.json +68 -0
- package/templates/community/instagram-public-follow-up/README.md +15 -0
- package/templates/community/instagram-public-follow-up/SKILL.md +53 -0
- package/templates/community/instagram-public-follow-up/source.json +9 -0
- package/templates/community/instagram-public-follow-up/template.json +54 -0
- package/templates/community/instagram-reader-question-answer/README.md +10 -0
- package/templates/community/instagram-reader-question-answer/SKILL.md +53 -0
- package/templates/community/instagram-reader-question-answer/source.json +9 -0
- package/templates/community/instagram-reader-question-answer/template.json +48 -0
- package/templates/community/instagram-remaining-capacity/README.md +11 -0
- package/templates/community/instagram-remaining-capacity/SKILL.md +52 -0
- package/templates/community/instagram-remaining-capacity/source.json +9 -0
- package/templates/community/instagram-remaining-capacity/template.json +52 -0
- package/templates/community/instagram-research-brief/README.md +16 -0
- package/templates/community/instagram-research-brief/SKILL.md +53 -0
- package/templates/community/instagram-research-brief/source.json +9 -0
- package/templates/community/instagram-research-brief/template.json +54 -0
- package/templates/community/instagram-result-and-recipe/README.md +17 -0
- package/templates/community/instagram-result-and-recipe/SKILL.md +53 -0
- package/templates/community/instagram-result-and-recipe/source.json +9 -0
- package/templates/community/instagram-result-and-recipe/template.json +56 -0
- package/templates/community/instagram-result-to-steps/README.md +13 -0
- package/templates/community/instagram-result-to-steps/SKILL.md +53 -0
- package/templates/community/instagram-result-to-steps/source.json +9 -0
- package/templates/community/instagram-result-to-steps/template.json +51 -0
- package/templates/community/instagram-reverse-instruction/README.md +15 -0
- package/templates/community/instagram-reverse-instruction/SKILL.md +53 -0
- package/templates/community/instagram-reverse-instruction/source.json +9 -0
- package/templates/community/instagram-reverse-instruction/template.json +54 -0
- package/templates/community/instagram-said-and-meant/README.md +9 -0
- package/templates/community/instagram-said-and-meant/SKILL.md +52 -0
- package/templates/community/instagram-said-and-meant/source.json +10 -0
- package/templates/community/instagram-said-and-meant/template.json +46 -0
- package/templates/community/instagram-same-budget-choices/README.md +12 -0
- package/templates/community/instagram-same-budget-choices/SKILL.md +53 -0
- package/templates/community/instagram-same-budget-choices/source.json +9 -0
- package/templates/community/instagram-same-budget-choices/template.json +52 -0
- package/templates/community/instagram-screenshot-walkthrough/README.md +12 -0
- package/templates/community/instagram-screenshot-walkthrough/SKILL.md +53 -0
- package/templates/community/instagram-screenshot-walkthrough/source.json +9 -0
- package/templates/community/instagram-screenshot-walkthrough/template.json +58 -0
- package/templates/community/instagram-searchable-asset-index/README.md +13 -0
- package/templates/community/instagram-searchable-asset-index/SKILL.md +52 -0
- package/templates/community/instagram-searchable-asset-index/source.json +9 -0
- package/templates/community/instagram-searchable-asset-index/template.json +53 -0
- package/templates/community/instagram-similar-concepts/README.md +15 -0
- package/templates/community/instagram-similar-concepts/SKILL.md +52 -0
- package/templates/community/instagram-similar-concepts/source.json +9 -0
- package/templates/community/instagram-similar-concepts/template.json +54 -0
- package/templates/community/instagram-single-event-news/README.md +14 -0
- package/templates/community/instagram-single-event-news/SKILL.md +53 -0
- package/templates/community/instagram-single-event-news/source.json +9 -0
- package/templates/community/instagram-single-event-news/template.json +56 -0
- package/templates/community/instagram-style-assembly/README.md +13 -0
- package/templates/community/instagram-style-assembly/SKILL.md +53 -0
- package/templates/community/instagram-style-assembly/source.json +9 -0
- package/templates/community/instagram-style-assembly/template.json +53 -0
- package/templates/community/instagram-style-choice/README.md +14 -0
- package/templates/community/instagram-style-choice/SKILL.md +53 -0
- package/templates/community/instagram-style-choice/source.json +9 -0
- package/templates/community/instagram-style-choice/template.json +58 -0
- package/templates/community/instagram-symbolism-in-artifact/README.md +9 -0
- package/templates/community/instagram-symbolism-in-artifact/SKILL.md +52 -0
- package/templates/community/instagram-symbolism-in-artifact/source.json +9 -0
- package/templates/community/instagram-symbolism-in-artifact/template.json +47 -0
- package/templates/community/instagram-taste-matched-recommendations/README.md +17 -0
- package/templates/community/instagram-taste-matched-recommendations/SKILL.md +52 -0
- package/templates/community/instagram-taste-matched-recommendations/source.json +9 -0
- package/templates/community/instagram-taste-matched-recommendations/template.json +56 -0
- package/templates/community/instagram-then-now-pairs/README.md +14 -0
- package/templates/community/instagram-then-now-pairs/SKILL.md +52 -0
- package/templates/community/instagram-then-now-pairs/source.json +9 -0
- package/templates/community/instagram-then-now-pairs/template.json +52 -0
- package/templates/community/instagram-timed-action-plan/README.md +15 -0
- package/templates/community/instagram-timed-action-plan/SKILL.md +53 -0
- package/templates/community/instagram-timed-action-plan/source.json +9 -0
- package/templates/community/instagram-timed-action-plan/template.json +60 -0
- package/templates/community/instagram-tools-by-task/README.md +13 -0
- package/templates/community/instagram-tools-by-task/SKILL.md +53 -0
- package/templates/community/instagram-tools-by-task/source.json +9 -0
- package/templates/community/instagram-tools-by-task/template.json +57 -0
- package/templates/community/instagram-two-perspectives/README.md +8 -0
- package/templates/community/instagram-two-perspectives/SKILL.md +52 -0
- package/templates/community/instagram-two-perspectives/source.json +9 -0
- package/templates/community/instagram-two-perspectives/template.json +47 -0
- package/templates/community/instagram-two-views-one-dataset/README.md +8 -0
- package/templates/community/instagram-two-views-one-dataset/SKILL.md +53 -0
- package/templates/community/instagram-two-views-one-dataset/source.json +9 -0
- package/templates/community/instagram-two-views-one-dataset/template.json +51 -0
- package/templates/community/instagram-version-change-audit/README.md +10 -0
- package/templates/community/instagram-version-change-audit/SKILL.md +53 -0
- package/templates/community/instagram-version-change-audit/source.json +9 -0
- package/templates/community/instagram-version-change-audit/template.json +51 -0
- package/templates/community/instagram-visual-analogy/README.md +13 -0
- package/templates/community/instagram-visual-analogy/SKILL.md +53 -0
- package/templates/community/instagram-visual-analogy/source.json +9 -0
- package/templates/community/instagram-visual-analogy/template.json +53 -0
- package/templates/community/instagram-visual-guess/README.md +15 -0
- package/templates/community/instagram-visual-guess/SKILL.md +53 -0
- package/templates/community/instagram-visual-guess/source.json +9 -0
- package/templates/community/instagram-visual-guess/template.json +54 -0
- package/templates/community/instagram-visual-technique-reference/README.md +18 -0
- package/templates/community/instagram-visual-technique-reference/SKILL.md +53 -0
- package/templates/community/instagram-visual-technique-reference/source.json +9 -0
- package/templates/community/instagram-visual-technique-reference/template.json +60 -0
- package/templates/community/instagram-worked-examples/README.md +13 -0
- package/templates/community/instagram-worked-examples/SKILL.md +52 -0
- package/templates/community/instagram-worked-examples/source.json +9 -0
- package/templates/community/instagram-worked-examples/template.json +57 -0
|
@@ -0,0 +1,1175 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Adapted from HyperFrames (https://github.com/heygen-com/hyperframes), registry/blocks/carousel-circle-5, commit a8332860c396e9224d42b7ea2a9cc8f42918c961.
|
|
4
|
+
Copyright 2026 HeyGen, Inc. Licensed under the Apache License, Version 2.0; the licence text is in the popost
|
|
5
|
+
Skill's THIRD_PARTY_NOTICES. Changed for the popost Skill (tools/video/port-hyperframes.mjs): its comments removed; picture variables (12) replaced by picture slots with a drawn stand-in; the root composition given the size of its data-width and data-height, as the HyperFrames runtime gives it; window.__timelines made before its scripts run, as the HyperFrames runtime does; GSAP loaded from the project (../lib/gsap.min.js) instead of a CDN; the 1920x1080 composition scaled into the scene's canvas (parameter "fit"); HyperFrames variables declared as parameters; its root-level clips laid out as HyperFrames lays them out; its clips shown and hidden from the scene's time; sound cues derived from its tweens.
|
|
6
|
+
-->
|
|
7
|
+
<html
|
|
8
|
+
lang="en"
|
|
9
|
+
data-composition-variables='[{"id":"image1","type":"image","role":"content","label":"Card image 1","description":"Image on card 1 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image2","type":"image","role":"content","label":"Card image 2","description":"Image on card 2 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image3","type":"image","role":"content","label":"Card image 3","description":"Image on card 3 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image4","type":"image","role":"content","label":"Card image 4","description":"Image on card 4 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image5","type":"image","role":"content","label":"Card image 5","description":"Image on card 5 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image6","type":"image","role":"content","label":"Card image 6","description":"Image on card 6 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image7","type":"image","role":"content","label":"Card image 7","description":"Image on card 7 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image8","type":"image","role":"content","label":"Card image 8","description":"Image on card 8 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image9","type":"image","role":"content","label":"Card image 9","description":"Image on card 9 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image10","type":"image","role":"content","label":"Card image 10","description":"Image on card 10 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image11","type":"image","role":"content","label":"Card image 11","description":"Image on card 11 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"image12","type":"image","role":"content","label":"Card image 12","description":"Image on card 12 of 12. Any aspect; it is fitted into the card box.","portrays":["subject_image"],"default":""},{"id":"speed","type":"number","role":"style","label":"Speed","description":"Time scale of the carousel motion. 1 = the designed pace.","default":1,"min":0.25,"max":3,"step":0.05},{"id":"background","type":"color","role":"style","label":"Background","description":"Composition ground.","default":"#EDEDEF"}]'
|
|
10
|
+
>
|
|
11
|
+
<head>
|
|
12
|
+
<script>window.__timelines = window.__timelines || {};</script>
|
|
13
|
+
<meta charset="UTF-8" />
|
|
14
|
+
<meta name="viewport" content="width=1920, height=1080" />
|
|
15
|
+
<title>Image Carousel · Circle 5</title>
|
|
16
|
+
<script src="../lib/gsap.min.js"></script>
|
|
17
|
+
<style>
|
|
18
|
+
body {
|
|
19
|
+
margin: 0;
|
|
20
|
+
background: #ededef;
|
|
21
|
+
}
|
|
22
|
+
#root {
|
|
23
|
+
position: relative;
|
|
24
|
+
width: 1920px;
|
|
25
|
+
height: 1080px;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
background: var(--background, #ededef);
|
|
28
|
+
}
|
|
29
|
+
.scaler {
|
|
30
|
+
position: absolute;
|
|
31
|
+
left: 0;
|
|
32
|
+
top: 0;
|
|
33
|
+
width: 3840px;
|
|
34
|
+
height: 2160px;
|
|
35
|
+
transform-origin: 0 0;
|
|
36
|
+
}
|
|
37
|
+
.clip {
|
|
38
|
+
position: absolute;
|
|
39
|
+
inset: 0;
|
|
40
|
+
}
|
|
41
|
+
.stage {
|
|
42
|
+
position: absolute;
|
|
43
|
+
inset: 0;
|
|
44
|
+
}
|
|
45
|
+
.stage.is-3d {
|
|
46
|
+
transform-style: preserve-3d;
|
|
47
|
+
}
|
|
48
|
+
.card {
|
|
49
|
+
position: absolute;
|
|
50
|
+
left: 0;
|
|
51
|
+
top: 0;
|
|
52
|
+
will-change: transform;
|
|
53
|
+
backface-visibility: visible;
|
|
54
|
+
}
|
|
55
|
+
.card-inner {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
border-radius: var(--card-radius);
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
box-shadow: var(--card-shadow);
|
|
61
|
+
background: #fff;
|
|
62
|
+
}
|
|
63
|
+
.card-inner img {
|
|
64
|
+
display: block;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
object-fit: cover;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.textline {
|
|
71
|
+
position: absolute;
|
|
72
|
+
inset: 0;
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
font-family: "Inter", system-ui, sans-serif;
|
|
77
|
+
font-weight: 700;
|
|
78
|
+
letter-spacing: -0.02em;
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
}
|
|
82
|
+
.textline.above.cards-over-right {
|
|
83
|
+
clip-path: inset(0 50% 0 0);
|
|
84
|
+
}
|
|
85
|
+
.textline.above.cards-over-left {
|
|
86
|
+
clip-path: inset(0 0 0 50%);
|
|
87
|
+
}
|
|
88
|
+
.textdrift {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
will-change: transform;
|
|
92
|
+
}
|
|
93
|
+
.word {
|
|
94
|
+
display: inline-block;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
padding: 0.06em 0;
|
|
97
|
+
}
|
|
98
|
+
.word + .word {
|
|
99
|
+
margin-left: 0.26em;
|
|
100
|
+
}
|
|
101
|
+
.word > span {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
}
|
|
104
|
+
</style>
|
|
105
|
+
<style id="popost-fit">
|
|
106
|
+
html, body { margin: 0 !important; width: 1280px; height: 720px; overflow: hidden !important; }
|
|
107
|
+
:where(html, body) { background: #000000; }
|
|
108
|
+
#popost-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
|
|
109
|
+
</style>
|
|
110
|
+
<script type="application/json" id="popost-params">
|
|
111
|
+
{
|
|
112
|
+
"about": "Image cards ride a circle with a size gradient by depth angle, sweeping in fast-slow-fast swings (Circle style 5); 12 image slots.",
|
|
113
|
+
"class": "motion",
|
|
114
|
+
"tags": [
|
|
115
|
+
"carousel",
|
|
116
|
+
"gallery",
|
|
117
|
+
"images",
|
|
118
|
+
"showcase",
|
|
119
|
+
"circle"
|
|
120
|
+
],
|
|
121
|
+
"placeholders": "12 picture variables as picture slots (image1, image2, image3 ...) with a drawn stand-in",
|
|
122
|
+
"seconds": 6,
|
|
123
|
+
"params": [
|
|
124
|
+
{
|
|
125
|
+
"name": "fit",
|
|
126
|
+
"type": "choice",
|
|
127
|
+
"default": "contain",
|
|
128
|
+
"options": [
|
|
129
|
+
"contain",
|
|
130
|
+
"cover"
|
|
131
|
+
],
|
|
132
|
+
"what": "how the 1920x1080 composition is fitted into the canvas: whole with bars, or filling it and cropped"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "speed",
|
|
136
|
+
"type": "number",
|
|
137
|
+
"default": 1,
|
|
138
|
+
"min": 0.25,
|
|
139
|
+
"max": 3,
|
|
140
|
+
"what": "Time scale of the carousel motion. 1 = the designed pace."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "background",
|
|
144
|
+
"type": "colour",
|
|
145
|
+
"default": "#EDEDEF",
|
|
146
|
+
"what": "Composition ground."
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"values": {}
|
|
150
|
+
}
|
|
151
|
+
</script>
|
|
152
|
+
<script>
|
|
153
|
+
/* popost: the scene's parameters stand in for HyperFrames variables; random numbers are seeded; the composition is
|
|
154
|
+
scaled into the canvas; clips are shown and hidden from the scene's time. */
|
|
155
|
+
(function () {
|
|
156
|
+
var block = document.getElementById('popost-params');
|
|
157
|
+
var values = block ? (JSON.parse(block.textContent).values || {}) : {};
|
|
158
|
+
var vars = {"image1":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233d5a80%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2398c1d9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EA%3C%2Ftext%3E%3C%2Fsvg%3E","image2":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%239c4f2e%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f2b880%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EB%3C%2Ftext%3E%3C%2Fsvg%3E","image3":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22500%22%20viewBox%3D%220%200%20640%20500%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%232f6b4f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23a8d8b9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22500%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22500%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22250%22%20r%3D%22146%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2219%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22306%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22167%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EC%3C%2Ftext%3E%3C%2Fsvg%3E","image4":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235b3f86%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c9b6e4%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3ED%3C%2Ftext%3E%3C%2Fsvg%3E","image5":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%238a2f4f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f0a6bf%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EE%3C%2Ftext%3E%3C%2Fsvg%3E","image6":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22495%22%20viewBox%3D%220%200%20640%20495%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%236b6224%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e6dc8c%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22495%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22495%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22247.5%22%20r%3D%22144%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2219%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22302.5%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22165%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EF%3C%2Ftext%3E%3C%2Fsvg%3E","image7":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233d5a80%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2398c1d9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EG%3C%2Ftext%3E%3C%2Fsvg%3E","image8":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%239c4f2e%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f2b880%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EH%3C%2Ftext%3E%3C%2Fsvg%3E","image9":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%232f6b4f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23a8d8b9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EI%3C%2Ftext%3E%3C%2Fsvg%3E","image10":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235b3f86%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c9b6e4%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EJ%3C%2Ftext%3E%3C%2Fsvg%3E","image11":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%238a2f4f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f0a6bf%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EK%3C%2Ftext%3E%3C%2Fsvg%3E","image12":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%236b6224%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e6dc8c%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EL%3C%2Ftext%3E%3C%2Fsvg%3E","speed":1,"background":"#EDEDEF"};
|
|
159
|
+
Object.keys(values).forEach(function (k) { if (k !== 'fit') vars[k] = values[k] === 'true' ? true : values[k] === 'false' ? false : values[k]; });
|
|
160
|
+
window.__hyperframes = { getVariables: function () { return vars; } };
|
|
161
|
+
var seed = 20240229;
|
|
162
|
+
window.__popostRandom = function () { seed = (seed + 0x6d2b79f5) >>> 0; var t = seed; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296; };
|
|
163
|
+
// HyperFrames variables as CSS custom properties (runtime/getVariables.ts, compositionLoader.ts). A mounted
|
|
164
|
+
// composition's host lists its variables (data-popost-variables, written by the port): before the composition's
|
|
165
|
+
// scripts run it gets those no rule gives it yet (an inherited value counts), and after them the rest; a value given
|
|
166
|
+
// by a parameter always wins.
|
|
167
|
+
var cssName = function (id) { return '--' + (String(id).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'node'); };
|
|
168
|
+
var givenId = function (n) { return Object.keys(values).filter(function (id) { return id !== 'fit' && cssName(id) === n; })[0]; };
|
|
169
|
+
var hostVars = function (h, early) {
|
|
170
|
+
(h.getAttribute('data-popost-variables') || '').split(';').forEach(function (d) {
|
|
171
|
+
var i = d.indexOf(':'), n = d.slice(0, i).trim(), k = givenId(n);
|
|
172
|
+
if (i < 0 || !n) return;
|
|
173
|
+
if (k !== undefined) h.style.setProperty(n, String(vars[k]));
|
|
174
|
+
else if (!(h.style.getPropertyValue(n) || (early ? getComputedStyle(h).getPropertyValue(n) : '')).trim()) h.style.setProperty(n, d.slice(i + 1).trim());
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
// Root-level clips laid out as HyperFrames lays them out (runtime/init.ts, applyCompositionSizing and applyClipLayout):
|
|
178
|
+
// its root composition (one marked data-root="true", else the first element with a data-composition-id, which is the
|
|
179
|
+
// page's <html> when that has one) gets its declared size, a position and overflow hidden; each child of it with a
|
|
180
|
+
// data-start is placed absolute unless it is absolute or fixed already, and given its declared size, or 100% where it
|
|
181
|
+
// measures 0. A composition box deeper in the page keeps the position its page gives it.
|
|
182
|
+
var layout = function () {
|
|
183
|
+
var hroot = document.querySelector('[data-composition-id][data-root="true"]') || document.querySelector('[data-composition-id]');
|
|
184
|
+
if (!hroot) return;
|
|
185
|
+
var px = function (v) { var n = parseFloat(v); return isFinite(n) && n > 0 ? n + 'px' : null; };
|
|
186
|
+
var rw = px(hroot.getAttribute('data-width')), rh = px(hroot.getAttribute('data-height'));
|
|
187
|
+
if (rw) { hroot.style.width = rw; hroot.style.setProperty('--comp-width', rw); }
|
|
188
|
+
if (rh) { hroot.style.height = rh; hroot.style.setProperty('--comp-height', rh); }
|
|
189
|
+
if (!hroot.style.position) hroot.style.position = 'relative';
|
|
190
|
+
hroot.style.overflow = 'hidden';
|
|
191
|
+
Array.prototype.forEach.call(hroot.children, function (el) {
|
|
192
|
+
if (/^(SCRIPT|STYLE|LINK|META)$/.test(el.tagName) || !el.hasAttribute('data-start')) return;
|
|
193
|
+
var none = el.style.getPropertyValue('display') === 'none', priority = el.style.getPropertyPriority('display');
|
|
194
|
+
if (none) el.style.removeProperty('display');
|
|
195
|
+
var cs = getComputedStyle(el);
|
|
196
|
+
if (cs.position !== 'absolute' && cs.position !== 'fixed') el.style.position = 'absolute';
|
|
197
|
+
if (el.tagName !== 'AUDIO') {
|
|
198
|
+
var byFile = /^(IMG|VIDEO)$/.test(el.tagName), fw = px(el.getAttribute('data-width')), fh = px(el.getAttribute('data-height'));
|
|
199
|
+
if (fw) { if (!el.style.width && (cs.width === '0px' || cs.width === 'auto')) el.style.width = fw; } else if (!byFile && !el.style.width && cs.width === '0px') el.style.width = '100%';
|
|
200
|
+
if (fh) { if (!el.style.height && (cs.height === '0px' || cs.height === 'auto')) el.style.height = fh; } else if (!byFile && !el.style.height && cs.height === '0px') el.style.height = '100%';
|
|
201
|
+
}
|
|
202
|
+
if (none) el.style.setProperty('display', 'none', priority);
|
|
203
|
+
});
|
|
204
|
+
};
|
|
205
|
+
// HyperFrames loads a mounted composition after it has laid out the page, so its scripts see the host placed: each
|
|
206
|
+
// script of a mounted composition calls this first (the port puts the call there).
|
|
207
|
+
window.__popostMount = function (script) {
|
|
208
|
+
var h = script && script.closest ? script.closest('[data-popost-host]') : null;
|
|
209
|
+
if (!h || h.__popostMounted) return;
|
|
210
|
+
h.__popostMounted = true;
|
|
211
|
+
layout();
|
|
212
|
+
hostVars(h, true);
|
|
213
|
+
};
|
|
214
|
+
window.__popostFit = function () {
|
|
215
|
+
// The canvas, from the size this file declares: a scene of a later shot loads in a layer that is not displayed, where the page measures 0.
|
|
216
|
+
var size = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
|
|
217
|
+
var W = 1920, H = 1080, s = document.getElementById('popost-stage'), cw = Number(size[1]), ch = Number(size[2]);
|
|
218
|
+
var k = (values.fit === 'cover' ? Math.max : Math.min)(cw / W, ch / H);
|
|
219
|
+
s.style.transform = 'translate(' + (cw - W * k) / 2 + 'px,' + (ch - H * k) / 2 + 'px) scale(' + k + ')';
|
|
220
|
+
// The page's own declared variables on its root element (runtime/getVariables.ts, injectCompositionCssVariables):
|
|
221
|
+
// each default where no rule defines its property, a value given by a parameter always.
|
|
222
|
+
var de = document.documentElement, declared = [];
|
|
223
|
+
try { declared = JSON.parse(de.getAttribute('data-composition-variables') || '[]'); } catch (e) {}
|
|
224
|
+
declared.forEach(function (d) {
|
|
225
|
+
var n = cssName(d.id), given = Object.prototype.hasOwnProperty.call(values, d.id), v = given ? vars[d.id] : d.default;
|
|
226
|
+
if (!((typeof v === 'string' && v !== '') || typeof v === 'number')) return;
|
|
227
|
+
if (!given && (de.style.getPropertyValue(n) || getComputedStyle(de).getPropertyValue(n)).trim()) return;
|
|
228
|
+
de.style.setProperty(n, String(v));
|
|
229
|
+
});
|
|
230
|
+
Array.prototype.forEach.call(document.querySelectorAll('[data-popost-host]'), function (h) { hostVars(h, false); });
|
|
231
|
+
layout();
|
|
232
|
+
// Timed elements as HyperFrames has them (runtime/clipTree.ts, clipWindow.ts): every element with a data-start but the
|
|
233
|
+
// root composition, from its start plus the starts of the compositions it sits in, for its data-duration (a
|
|
234
|
+
// composition without one: its timeline's length); one that runs to the end of the root keeps its last frame.
|
|
235
|
+
var root = s.querySelector('[data-composition-id]');
|
|
236
|
+
var clips = Array.prototype.slice.call(s.querySelectorAll('[data-start]')).filter(function (c) { return (root ? c !== root : c.parentNode !== s) && !/^(SCRIPT|STYLE|LINK|META|TEMPLATE|NOSCRIPT)$/.test(c.tagName) && isFinite(parseFloat(c.getAttribute('data-start'))); });
|
|
237
|
+
var windows = clips.map(function (c) {
|
|
238
|
+
var a = parseFloat(c.getAttribute('data-start')), d = parseFloat(c.getAttribute('data-duration')), id = c.getAttribute('data-composition-id');
|
|
239
|
+
for (var p = c.parentElement; p && p !== s; p = p.parentElement) if (p !== root && p.hasAttribute('data-composition-id') && isFinite(parseFloat(p.getAttribute('data-start')))) a += parseFloat(p.getAttribute('data-start'));
|
|
240
|
+
var tl = !(d > 0) && id && window.__timelines && window.__timelines[id];
|
|
241
|
+
return [a, d > 0 ? d : tl && tl.duration ? tl.duration() : Infinity];
|
|
242
|
+
});
|
|
243
|
+
var rootLength = parseFloat(root && root.getAttribute('data-duration'));
|
|
244
|
+
// A mounted composition that starts later in its host runs on its own time.
|
|
245
|
+
[].forEach(function (m) {
|
|
246
|
+
var tl = window.__timelines && window.__timelines[m.id];
|
|
247
|
+
if (tl) window.__timelines[m.id] = { pause: function () { tl.pause(); }, seek: function (t) { tl.seek(Math.max(0, t - m.start)); }, duration: function () { return tl.duration() + m.start; } };
|
|
248
|
+
});
|
|
249
|
+
var scene = (window.__popostScene = window.__popostScene || {}), before = scene.render;
|
|
250
|
+
scene.render = function (seconds, fps) {
|
|
251
|
+
var held = document.querySelectorAll('#popost-slots img[data-slot]');
|
|
252
|
+
for (var j = 0; j < held.length; j++) {
|
|
253
|
+
var first = vars[held[j].getAttribute('data-slot')], now = held[j].getAttribute('src');
|
|
254
|
+
if (!first || now === first) continue;
|
|
255
|
+
var shown = document.querySelectorAll('img');
|
|
256
|
+
for (var q = 0; q < shown.length; q++) if (shown[q] !== held[j] && shown[q].getAttribute('src') === first) shown[q].setAttribute('src', now);
|
|
257
|
+
}
|
|
258
|
+
if (before) before(seconds, fps);
|
|
259
|
+
for (var i = 0; i < clips.length; i++) {
|
|
260
|
+
var a = windows[i][0], end = a + windows[i][1];
|
|
261
|
+
clips[i].style.visibility = seconds >= a - 1e-6 && (seconds < end - 1e-6 || end >= rootLength - 1e-6) ? 'visible' : 'hidden';
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
})();
|
|
266
|
+
</script>
|
|
267
|
+
<script type="application/json" id="popost-cues">[{"at":0,"cue":"draw","gain":0.45}]</script>
|
|
268
|
+
</head>
|
|
269
|
+
<body>
|
|
270
|
+
<div id="popost-slots" hidden><img data-slot="image1" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233d5a80%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2398c1d9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EA%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image2" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%239c4f2e%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f2b880%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EB%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image3" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22500%22%20viewBox%3D%220%200%20640%20500%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%232f6b4f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23a8d8b9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22500%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22500%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22250%22%20r%3D%22146%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2219%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22306%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22167%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EC%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image4" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235b3f86%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c9b6e4%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3ED%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image5" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%238a2f4f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f0a6bf%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EE%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image6" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22495%22%20viewBox%3D%220%200%20640%20495%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%236b6224%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e6dc8c%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22495%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22495%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22247.5%22%20r%3D%22144%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2219%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22302.5%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22165%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EF%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image7" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233d5a80%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2398c1d9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EG%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image8" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%239c4f2e%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f2b880%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EH%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image9" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%232f6b4f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23a8d8b9%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EI%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image10" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235b3f86%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c9b6e4%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EJ%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image11" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%238a2f4f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f0a6bf%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EK%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""><img data-slot="image12" src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22640%22%20height%3D%22640%22%20viewBox%3D%220%200%20640%20640%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%236b6224%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e6dc8c%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22s%22%20width%3D%2296%22%20height%3D%2296%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%2845%29%22%3E%3Crect%20width%3D%2248%22%20height%3D%2296%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.14%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Crect%20width%3D%22640%22%20height%3D%22640%22%20fill%3D%22url%28%23s%29%22%2F%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22187%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%2225%22%2F%3E%3Ctext%20x%3D%22320%22%20y%3D%22391%22%20font-family%3D%22Arial%2C%20Helvetica%2C%20sans-serif%22%20font-size%3D%22213%22%20font-weight%3D%22700%22%20text-anchor%3D%22middle%22%20fill%3D%22%23fff%22%20fill-opacity%3D%22.9%22%3EL%3C%2Ftext%3E%3C%2Fsvg%3E" alt=""></div>
|
|
271
|
+
<div id="popost-stage">
|
|
272
|
+
<div
|
|
273
|
+
data-hf-id="hf-0m1b"
|
|
274
|
+
id="root"
|
|
275
|
+
data-composition-id="carousel-circle-5"
|
|
276
|
+
data-start="0"
|
|
277
|
+
data-width="1920"
|
|
278
|
+
data-height="1080"
|
|
279
|
+
data-duration="6"
|
|
280
|
+
data-fps="30"
|
|
281
|
+
data-layout-allow-overflow=""
|
|
282
|
+
style="width: 1920px; height: 1080px;">
|
|
283
|
+
<div id="carousel-circle-5-partA" class="clip" data-start="0" data-duration="6">
|
|
284
|
+
<div data-hf-id="hf-elyu" id="carousel-circle-5-scaler" class="scaler">
|
|
285
|
+
<div data-hf-id="hf-mi5e" id="carousel-circle-5-stage" class="stage"></div>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<script>
|
|
291
|
+
(function (global) {
|
|
292
|
+
"use strict";
|
|
293
|
+
|
|
294
|
+
const lerp = (a, b, t) => a + (b - a) * t;
|
|
295
|
+
const clamp01 = (t) => (t < 0 ? 0 : t > 1 ? 1 : t);
|
|
296
|
+
|
|
297
|
+
const aeLinear = (v, a, b, c, d) => (a === b ? c : lerp(c, d, clamp01((v - a) / (b - a))));
|
|
298
|
+
|
|
299
|
+
const aeEase = (v, a, b, c, d) => {
|
|
300
|
+
const t = clamp01((v - a) / (b - a));
|
|
301
|
+
const e = t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
|
|
302
|
+
return lerp(c, d, e);
|
|
303
|
+
};
|
|
304
|
+
const wrap01 = (x) => {
|
|
305
|
+
let p = x % 1;
|
|
306
|
+
if (p < 0) p += 1;
|
|
307
|
+
return p;
|
|
308
|
+
};
|
|
309
|
+
const DEG = 180 / Math.PI;
|
|
310
|
+
|
|
311
|
+
function buildPath(vertices, closed, samplesPerSeg, center) {
|
|
312
|
+
samplesPerSeg = samplesPerSeg || 64;
|
|
313
|
+
const n = vertices.length;
|
|
314
|
+
const segCount = closed ? n : n - 1;
|
|
315
|
+
const pts = [];
|
|
316
|
+
for (let s = 0; s < segCount; s++) {
|
|
317
|
+
const a = vertices[s],
|
|
318
|
+
b = vertices[(s + 1) % n];
|
|
319
|
+
const p0 = a.p,
|
|
320
|
+
p1 = [a.p[0] + a.out[0], a.p[1] + a.out[1]];
|
|
321
|
+
const p2 = [b.p[0] + b.in[0], b.p[1] + b.in[1]],
|
|
322
|
+
p3 = b.p;
|
|
323
|
+
const last = s === segCount - 1 ? samplesPerSeg : samplesPerSeg - 1;
|
|
324
|
+
for (let k = 0; k <= last; k++) {
|
|
325
|
+
const t = k / samplesPerSeg,
|
|
326
|
+
mt = 1 - t;
|
|
327
|
+
const x =
|
|
328
|
+
mt * mt * mt * p0[0] +
|
|
329
|
+
3 * mt * mt * t * p1[0] +
|
|
330
|
+
3 * mt * t * t * p2[0] +
|
|
331
|
+
t * t * t * p3[0];
|
|
332
|
+
const y =
|
|
333
|
+
mt * mt * mt * p0[1] +
|
|
334
|
+
3 * mt * mt * t * p1[1] +
|
|
335
|
+
3 * mt * t * t * p2[1] +
|
|
336
|
+
t * t * t * p3[1];
|
|
337
|
+
pts.push([x, y]);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
if (center) {
|
|
341
|
+
let x0 = Infinity,
|
|
342
|
+
x1 = -Infinity,
|
|
343
|
+
y0 = Infinity,
|
|
344
|
+
y1 = -Infinity;
|
|
345
|
+
for (const q of pts) {
|
|
346
|
+
x0 = Math.min(x0, q[0]);
|
|
347
|
+
x1 = Math.max(x1, q[0]);
|
|
348
|
+
y0 = Math.min(y0, q[1]);
|
|
349
|
+
y1 = Math.max(y1, q[1]);
|
|
350
|
+
}
|
|
351
|
+
const sx = center[0] - (x0 + x1) / 2,
|
|
352
|
+
sy = center[1] - (y0 + y1) / 2;
|
|
353
|
+
for (const q of pts) {
|
|
354
|
+
q[0] += sx;
|
|
355
|
+
q[1] += sy;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
const cum = [0];
|
|
359
|
+
for (let i = 1; i < pts.length; i++) {
|
|
360
|
+
const dx = pts[i][0] - pts[i - 1][0],
|
|
361
|
+
dy = pts[i][1] - pts[i - 1][1];
|
|
362
|
+
cum.push(cum[i - 1] + Math.hypot(dx, dy));
|
|
363
|
+
}
|
|
364
|
+
const total = cum[cum.length - 1];
|
|
365
|
+
function locate(pct) {
|
|
366
|
+
const target = pct * total;
|
|
367
|
+
let lo = 0,
|
|
368
|
+
hi = cum.length - 1;
|
|
369
|
+
while (hi - lo > 1) {
|
|
370
|
+
const mid = (lo + hi) >> 1;
|
|
371
|
+
if (cum[mid] <= target) lo = mid;
|
|
372
|
+
else hi = mid;
|
|
373
|
+
}
|
|
374
|
+
const segLen = cum[hi] - cum[lo] || 1;
|
|
375
|
+
return { i: lo, j: hi, f: (target - cum[lo]) / segLen };
|
|
376
|
+
}
|
|
377
|
+
return {
|
|
378
|
+
closed,
|
|
379
|
+
length: total,
|
|
380
|
+
pointOnPath(pct) {
|
|
381
|
+
pct = closed ? wrap01(pct) : clamp01(pct);
|
|
382
|
+
const { i, j, f } = locate(pct);
|
|
383
|
+
return [lerp(pts[i][0], pts[j][0], f), lerp(pts[i][1], pts[j][1], f)];
|
|
384
|
+
},
|
|
385
|
+
tangentOnPath(pct) {
|
|
386
|
+
pct = closed ? wrap01(pct) : clamp01(pct);
|
|
387
|
+
const { i, j } = locate(pct);
|
|
388
|
+
const dx = pts[j][0] - pts[i][0],
|
|
389
|
+
dy = pts[j][1] - pts[i][1];
|
|
390
|
+
const l = Math.hypot(dx, dy) || 1;
|
|
391
|
+
return [dx / l, dy / l];
|
|
392
|
+
},
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
function pathRig(path, ctl, comp, n, u) {
|
|
397
|
+
const spc = ctl.spacing / 100;
|
|
398
|
+
const phase = ctl.phaseOffset / 100;
|
|
399
|
+
const manual = ctl.moveCarousel / 100;
|
|
400
|
+
const dAng = (ctl.depthAngle || 0) / DEG;
|
|
401
|
+
const rotAmt = (ctl.rotationFollow || 0) / 100;
|
|
402
|
+
const cx = comp.width / 2,
|
|
403
|
+
cy = comp.height / 2;
|
|
404
|
+
const maxDist = Math.hypot(cx, cy);
|
|
405
|
+
const out = new Array(n);
|
|
406
|
+
for (let idx = 0; idx < n; idx++) {
|
|
407
|
+
const off = (idx / n) * spc + phase;
|
|
408
|
+
const pct = wrap01(u + off + manual);
|
|
409
|
+
const pos = path.pointOnPath(pct);
|
|
410
|
+
|
|
411
|
+
const dx = pos[0] - cx,
|
|
412
|
+
dy = pos[1] - cy;
|
|
413
|
+
const projected = dx * Math.sin(dAng) + dy * Math.cos(dAng);
|
|
414
|
+
const norm = (projected / maxDist + 1) / 2;
|
|
415
|
+
const depthScale = aeLinear(norm, 0, 1, ctl.scaleMin, 100);
|
|
416
|
+
const mixed = aeLinear(ctl.scaleDepth / 100, 0, 1, 100, depthScale);
|
|
417
|
+
const scale = (mixed * (ctl.globalScale / 100)) / 100;
|
|
418
|
+
|
|
419
|
+
const tang = path.tangentOnPath(pct);
|
|
420
|
+
const rotZ = Math.atan2(tang[1], tang[0]) * DEG * rotAmt;
|
|
421
|
+
|
|
422
|
+
let x = pos[0],
|
|
423
|
+
y = pos[1],
|
|
424
|
+
z = 0;
|
|
425
|
+
if (ctl.parent) {
|
|
426
|
+
const rx = (ctl.xSlider || 0) / DEG,
|
|
427
|
+
ry = (ctl.ySlider || 0) / DEG;
|
|
428
|
+
const a = ctl.parent.anchor,
|
|
429
|
+
P = ctl.parent.position;
|
|
430
|
+
|
|
431
|
+
let l = [pos[0] - a[0], pos[1] - a[1], 0];
|
|
432
|
+
l = [
|
|
433
|
+
l[0] * Math.cos(ry) + l[2] * Math.sin(ry),
|
|
434
|
+
l[1],
|
|
435
|
+
-l[0] * Math.sin(ry) + l[2] * Math.cos(ry),
|
|
436
|
+
];
|
|
437
|
+
l = [
|
|
438
|
+
l[0],
|
|
439
|
+
l[1] * Math.cos(rx) - l[2] * Math.sin(rx),
|
|
440
|
+
l[1] * Math.sin(rx) + l[2] * Math.cos(rx),
|
|
441
|
+
];
|
|
442
|
+
x = P[0] + l[0];
|
|
443
|
+
y = P[1] + l[1];
|
|
444
|
+
z = (P[2] || 0) + l[2];
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
let rotY = 0,
|
|
448
|
+
rotX = 0;
|
|
449
|
+
if (ctl.parent) {
|
|
450
|
+
const camZ = -(comp.cameraDistance || comp.cameraZoom || 5669);
|
|
451
|
+
const vx = cx - x,
|
|
452
|
+
vy = cy - y,
|
|
453
|
+
vz = camZ - z;
|
|
454
|
+
rotY = Math.atan2(vx, -vz) * DEG;
|
|
455
|
+
rotX = -Math.atan2(vy, Math.hypot(vx, vz)) * DEG;
|
|
456
|
+
}
|
|
457
|
+
if (ctl.yAngle3d) {
|
|
458
|
+
const dist = Math.abs(x - cx);
|
|
459
|
+
let r = aeEase(dist, 0, comp.width * (700 / 1920), 0, ctl.yAngle3d);
|
|
460
|
+
if (ctl.mirrorY !== false && x < cx) r = -r;
|
|
461
|
+
rotY += r;
|
|
462
|
+
}
|
|
463
|
+
out[idx] = { x, y, z, scale, rotZ, rotY, rotX, pct, depth: norm };
|
|
464
|
+
}
|
|
465
|
+
return out;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
function orbitRig(ctl, comp, n, u) {
|
|
469
|
+
const r = ctl.radius;
|
|
470
|
+
const rawCnt = Math.max(1, ctl.elementCount);
|
|
471
|
+
const cnt = Math.floor(rawCnt);
|
|
472
|
+
const off = ctl.offset;
|
|
473
|
+
|
|
474
|
+
const st = ctl.spinTurns || { x: 0, y: 1, z: 0 };
|
|
475
|
+
const rx = ((ctl.rotationX || 0) + u * 360 * (st.x || 0)) / DEG;
|
|
476
|
+
const ry = ((ctl.rotationY || 0) + u * 360 * (st.y || 0)) / DEG;
|
|
477
|
+
const rz = ((ctl.rotationZ || 0) + u * 360 * (st.z || 0)) / DEG;
|
|
478
|
+
const cx = comp.width / 2,
|
|
479
|
+
cy = comp.height / 2;
|
|
480
|
+
const camZ = -(comp.cameraDistance || comp.cameraZoom || 2000);
|
|
481
|
+
const cd = Math.abs(camZ);
|
|
482
|
+
const ga = Math.PI * (3 - Math.sqrt(5));
|
|
483
|
+
const getP = (index, c) => {
|
|
484
|
+
const i = (((index - 0.5 + off) % c) + c) % c;
|
|
485
|
+
const inc = Math.acos(Math.max(-1, Math.min(1, 1 - 2 * (i / c))));
|
|
486
|
+
const azi = ga * i;
|
|
487
|
+
return [
|
|
488
|
+
Math.sin(inc) * Math.cos(azi) * r,
|
|
489
|
+
Math.cos(inc) * r,
|
|
490
|
+
Math.sin(inc) * Math.sin(azi) * r,
|
|
491
|
+
];
|
|
492
|
+
};
|
|
493
|
+
const out = new Array(n);
|
|
494
|
+
for (let k = 0; k < n; k++) {
|
|
495
|
+
const index = k + 1;
|
|
496
|
+
const a = getP(index, cnt),
|
|
497
|
+
b = getP(index, cnt + 1),
|
|
498
|
+
f = rawCnt % 1;
|
|
499
|
+
let p = [lerp(a[0], b[0], f), lerp(a[1], b[1], f), lerp(a[2], b[2], f)];
|
|
500
|
+
|
|
501
|
+
p = [
|
|
502
|
+
p[0],
|
|
503
|
+
p[1] * Math.cos(rx) - p[2] * Math.sin(rx),
|
|
504
|
+
p[1] * Math.sin(rx) + p[2] * Math.cos(rx),
|
|
505
|
+
];
|
|
506
|
+
p = [
|
|
507
|
+
p[0] * Math.cos(ry) + p[2] * Math.sin(ry),
|
|
508
|
+
p[1],
|
|
509
|
+
-p[0] * Math.sin(ry) + p[2] * Math.cos(ry),
|
|
510
|
+
];
|
|
511
|
+
p = [
|
|
512
|
+
p[0] * Math.cos(rz) - p[1] * Math.sin(rz),
|
|
513
|
+
p[0] * Math.sin(rz) + p[1] * Math.cos(rz),
|
|
514
|
+
p[2],
|
|
515
|
+
];
|
|
516
|
+
const jitter = 1 + (index % 2) * 0.01;
|
|
517
|
+
const x = cx + p[0] * jitter,
|
|
518
|
+
y = cy + p[1] * jitter,
|
|
519
|
+
z = p[2] * jitter;
|
|
520
|
+
|
|
521
|
+
const d = Math.hypot(x - cx, y - cy, z - camZ);
|
|
522
|
+
const t = clamp01(aeLinear(d, cd - r, cd + r, 0, 1));
|
|
523
|
+
const s = aeLinear(t, 0, 1, ctl.scaleMax, ctl.scaleMin);
|
|
524
|
+
const finalS = aeLinear(ctl.perspectiveBoost, 0, 100, 100, s);
|
|
525
|
+
|
|
526
|
+
const behindCam = z <= camZ * 0.92;
|
|
527
|
+
|
|
528
|
+
const vx = cx - x,
|
|
529
|
+
vy = cy - y,
|
|
530
|
+
vz = camZ - z;
|
|
531
|
+
const yaw = Math.atan2(vx, -vz) * DEG;
|
|
532
|
+
const pitch = -Math.atan2(vy, Math.hypot(vx, vz)) * DEG;
|
|
533
|
+
out[k] = {
|
|
534
|
+
x,
|
|
535
|
+
y,
|
|
536
|
+
z,
|
|
537
|
+
scale: finalS / 100,
|
|
538
|
+
rotZ: 0,
|
|
539
|
+
rotY: yaw,
|
|
540
|
+
rotX: pitch,
|
|
541
|
+
visible: index <= cnt && !behindCam,
|
|
542
|
+
depth: 1 - t,
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
return out;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
function aeCurve(keys) {
|
|
549
|
+
const segs = [];
|
|
550
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
551
|
+
const a = keys[i],
|
|
552
|
+
b = keys[i + 1],
|
|
553
|
+
T = b.time - a.time;
|
|
554
|
+
const linear = !a.easeOut || !b.easeIn || (a.flags && a.flags.startsWith("0101"));
|
|
555
|
+
let P1, P2;
|
|
556
|
+
if (linear) {
|
|
557
|
+
P1 = [a.time + T / 3, a.value + (b.value - a.value) / 3];
|
|
558
|
+
P2 = [a.time + (2 * T) / 3, a.value + (2 * (b.value - a.value)) / 3];
|
|
559
|
+
} else {
|
|
560
|
+
const lo = a.easeOut.influence * T,
|
|
561
|
+
li = b.easeIn.influence * T;
|
|
562
|
+
P1 = [a.time + lo, a.value + a.easeOut.speed * lo];
|
|
563
|
+
P2 = [b.time - li, b.value - b.easeIn.speed * li];
|
|
564
|
+
}
|
|
565
|
+
segs.push({
|
|
566
|
+
t0: a.time,
|
|
567
|
+
t1: b.time,
|
|
568
|
+
P0: [a.time, a.value],
|
|
569
|
+
P1,
|
|
570
|
+
P2,
|
|
571
|
+
P3: [b.time, b.value],
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
const bez = (p0, p1, p2, p3, s) => {
|
|
575
|
+
const m = 1 - s;
|
|
576
|
+
return m * m * m * p0 + 3 * m * m * s * p1 + 3 * m * s * s * p2 + s * s * s * p3;
|
|
577
|
+
};
|
|
578
|
+
return {
|
|
579
|
+
first: keys[0].value,
|
|
580
|
+
last: keys[keys.length - 1].value,
|
|
581
|
+
duration: keys[keys.length - 1].time - keys[0].time,
|
|
582
|
+
at(t) {
|
|
583
|
+
if (t <= segs[0].t0) return keys[0].value;
|
|
584
|
+
const sg = segs.find((g) => t <= g.t1) || segs[segs.length - 1];
|
|
585
|
+
if (t >= sg.t1) return sg.P3[1];
|
|
586
|
+
|
|
587
|
+
let s = (t - sg.t0) / (sg.t1 - sg.t0);
|
|
588
|
+
for (let k = 0; k < 8; k++) {
|
|
589
|
+
const x = bez(sg.P0[0], sg.P1[0], sg.P2[0], sg.P3[0], s) - t;
|
|
590
|
+
const m = 1 - s;
|
|
591
|
+
const dx =
|
|
592
|
+
3 * m * m * (sg.P1[0] - sg.P0[0]) +
|
|
593
|
+
6 * m * s * (sg.P2[0] - sg.P1[0]) +
|
|
594
|
+
3 * s * s * (sg.P3[0] - sg.P2[0]);
|
|
595
|
+
if (Math.abs(dx) < 1e-9) break;
|
|
596
|
+
s -= x / dx;
|
|
597
|
+
s = s < 0 ? 0 : s > 1 ? 1 : s;
|
|
598
|
+
}
|
|
599
|
+
return bez(sg.P0[1], sg.P1[1], sg.P2[1], sg.P3[1], s);
|
|
600
|
+
},
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
function chainedDrive(keys, mode) {
|
|
605
|
+
const c = aeCurve(keys),
|
|
606
|
+
T = c.duration,
|
|
607
|
+
delta = c.last - c.first;
|
|
608
|
+
return {
|
|
609
|
+
cycle: T,
|
|
610
|
+
at(t) {
|
|
611
|
+
if (T <= 0) return c.first;
|
|
612
|
+
const k = Math.floor(t / T),
|
|
613
|
+
r = t - k * T;
|
|
614
|
+
if (mode === "pingpong")
|
|
615
|
+
return k % 2 === 0 ? c.at(keys[0].time + r) : c.at(keys[0].time + (T - r));
|
|
616
|
+
return c.at(keys[0].time + r) + k * delta;
|
|
617
|
+
},
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
function buildProgress(opts) {
|
|
622
|
+
const dur = opts.duration,
|
|
623
|
+
cruise = opts.cruise;
|
|
624
|
+
const sign = cruise < 0 ? -1 : 1;
|
|
625
|
+
const c = Math.abs(cruise);
|
|
626
|
+
const cap = opts.boostCap == null ? 0.5 : opts.boostCap;
|
|
627
|
+
const vIn = Math.max(
|
|
628
|
+
Math.min(c * (opts.arriveMul || 4), c + cap),
|
|
629
|
+
opts.arriveMin || 0.16,
|
|
630
|
+
);
|
|
631
|
+
const vOut = Math.max(Math.min(c * (opts.exitMul || 6), c + cap), opts.exitMin || 0.22);
|
|
632
|
+
const tA = opts.arrive || 1.6,
|
|
633
|
+
tX = opts.exit || 0.9;
|
|
634
|
+
const N = Math.max(600, Math.round(dur * 120));
|
|
635
|
+
const lut = new Float64Array(N + 1);
|
|
636
|
+
let acc = 0,
|
|
637
|
+
prevV = null;
|
|
638
|
+
for (let i = 0; i <= N; i++) {
|
|
639
|
+
const t = (i / N) * dur;
|
|
640
|
+
let v;
|
|
641
|
+
if (t < tA) {
|
|
642
|
+
const k = 1 - Math.pow(1 - t / tA, 4);
|
|
643
|
+
v = lerp(vIn, c, k);
|
|
644
|
+
} else if (t > dur - tX) {
|
|
645
|
+
const k = Math.pow((t - (dur - tX)) / tX, 3);
|
|
646
|
+
v = lerp(c, vOut, k);
|
|
647
|
+
} else v = c;
|
|
648
|
+
if (prevV !== null) acc += ((prevV + v) / 2) * (dur / N);
|
|
649
|
+
prevV = v;
|
|
650
|
+
lut[i] = acc * sign;
|
|
651
|
+
}
|
|
652
|
+
return {
|
|
653
|
+
duration: dur,
|
|
654
|
+
travel: lut[N],
|
|
655
|
+
at(t) {
|
|
656
|
+
const f = clamp01(t / dur) * N,
|
|
657
|
+
i = Math.floor(f),
|
|
658
|
+
g = f - i;
|
|
659
|
+
return i >= N ? lut[N] : lerp(lut[i], lut[i + 1], g);
|
|
660
|
+
},
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
global.CarouselRig = {
|
|
665
|
+
buildPath,
|
|
666
|
+
pathRig,
|
|
667
|
+
orbitRig,
|
|
668
|
+
buildProgress,
|
|
669
|
+
aeCurve,
|
|
670
|
+
chainedDrive,
|
|
671
|
+
aeLinear,
|
|
672
|
+
aeEase,
|
|
673
|
+
};
|
|
674
|
+
})(typeof window !== "undefined" ? window : globalThis);
|
|
675
|
+
</script>
|
|
676
|
+
<script>
|
|
677
|
+
const DATA = {
|
|
678
|
+
id: "carousel-circle-5",
|
|
679
|
+
family: "circle",
|
|
680
|
+
controls: {
|
|
681
|
+
speed: 30,
|
|
682
|
+
spacing: 100,
|
|
683
|
+
phaseOffset: 0,
|
|
684
|
+
globalScale: 89.3,
|
|
685
|
+
scaleDepth: 330,
|
|
686
|
+
scaleMin: 3.2,
|
|
687
|
+
depthAngle: 628,
|
|
688
|
+
moveCarousel: 36.61,
|
|
689
|
+
rotationFollow: 0,
|
|
690
|
+
},
|
|
691
|
+
comp: {
|
|
692
|
+
width: 3840,
|
|
693
|
+
height: 2160,
|
|
694
|
+
outWidth: 1920,
|
|
695
|
+
outHeight: 1080,
|
|
696
|
+
cameraZoom: 5669.29,
|
|
697
|
+
cameraDistance: 5669.29,
|
|
698
|
+
duration: 6,
|
|
699
|
+
fps: 30,
|
|
700
|
+
},
|
|
701
|
+
n: 12,
|
|
702
|
+
cards: [
|
|
703
|
+
{ file: "", width: 640, height: 640 },
|
|
704
|
+
{ file: "", width: 640, height: 640 },
|
|
705
|
+
{ file: "", width: 640, height: 500 },
|
|
706
|
+
{ file: "", width: 640, height: 640 },
|
|
707
|
+
{ file: "", width: 640, height: 640 },
|
|
708
|
+
{ file: "", width: 640, height: 495 },
|
|
709
|
+
{ file: "", width: 640, height: 640 },
|
|
710
|
+
{ file: "", width: 640, height: 640 },
|
|
711
|
+
{ file: "", width: 640, height: 640 },
|
|
712
|
+
{ file: "", width: 640, height: 640 },
|
|
713
|
+
{ file: "", width: 640, height: 640 },
|
|
714
|
+
{ file: "", width: 640, height: 640 },
|
|
715
|
+
],
|
|
716
|
+
path: {
|
|
717
|
+
vertices: [
|
|
718
|
+
{ p: [1920.0, 231.523], in: [-468.543, 0], out: [468.543, 0] },
|
|
719
|
+
{ p: [2768.379, 1080.0], in: [0, -468.597], out: [0, 468.597] },
|
|
720
|
+
{ p: [1920.0, 1928.478], in: [468.543, 0], out: [-468.543, 0] },
|
|
721
|
+
{ p: [1071.621, 1080.0], in: [0, 468.597], out: [0, -468.597] },
|
|
722
|
+
],
|
|
723
|
+
closed: true,
|
|
724
|
+
},
|
|
725
|
+
keys: {
|
|
726
|
+
"Move Carousel": [
|
|
727
|
+
{
|
|
728
|
+
time: 0,
|
|
729
|
+
value: 0,
|
|
730
|
+
flags: "02020000",
|
|
731
|
+
easeIn: { speed: 0, influence: 0.166667 },
|
|
732
|
+
easeOut: { speed: 238.51658, influence: 0.124734 },
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
time: 1.51667,
|
|
736
|
+
value: 75.5,
|
|
737
|
+
flags: "02020000",
|
|
738
|
+
easeIn: { speed: 563.152726, influence: 0.063927 },
|
|
739
|
+
easeOut: { speed: 0, influence: 0.166667 },
|
|
740
|
+
},
|
|
741
|
+
],
|
|
742
|
+
},
|
|
743
|
+
motion: {
|
|
744
|
+
arrive: 1.6,
|
|
745
|
+
arriveMul: 4,
|
|
746
|
+
arriveMin: 0.16,
|
|
747
|
+
exit: 0.9,
|
|
748
|
+
exitMul: 6,
|
|
749
|
+
exitMin: 0.22,
|
|
750
|
+
entryStaggerTotal: 0.45,
|
|
751
|
+
entryDuration: 0.55,
|
|
752
|
+
entryLead: 0.25,
|
|
753
|
+
orbitSpinDegPerSec: 24,
|
|
754
|
+
orbitSpinScale: 1,
|
|
755
|
+
boostCap: 0.5,
|
|
756
|
+
speedScale: 1,
|
|
757
|
+
},
|
|
758
|
+
look: {
|
|
759
|
+
background: "#EDEDEF",
|
|
760
|
+
cardRadius: 0,
|
|
761
|
+
cardShadow: "none",
|
|
762
|
+
imageHeight: null,
|
|
763
|
+
centerPath: false,
|
|
764
|
+
endFade: 0.06,
|
|
765
|
+
fitBox: 1500,
|
|
766
|
+
},
|
|
767
|
+
text: null,
|
|
768
|
+
ending: null,
|
|
769
|
+
outro: null,
|
|
770
|
+
ring: null,
|
|
771
|
+
registry: {
|
|
772
|
+
imageVars: [
|
|
773
|
+
"image1",
|
|
774
|
+
"image2",
|
|
775
|
+
"image3",
|
|
776
|
+
"image4",
|
|
777
|
+
"image5",
|
|
778
|
+
"image6",
|
|
779
|
+
"image7",
|
|
780
|
+
"image8",
|
|
781
|
+
"image9",
|
|
782
|
+
"image10",
|
|
783
|
+
"image11",
|
|
784
|
+
"image12",
|
|
785
|
+
],
|
|
786
|
+
textVars: null,
|
|
787
|
+
speedVar: "speed",
|
|
788
|
+
},
|
|
789
|
+
cutAt: null,
|
|
790
|
+
};
|
|
791
|
+
(async function () {
|
|
792
|
+
const R = window.CarouselRig;
|
|
793
|
+
|
|
794
|
+
const REG = DATA.registry || null;
|
|
795
|
+
const V =
|
|
796
|
+
REG && window.__hyperframes && window.__hyperframes.getVariables
|
|
797
|
+
? window.__hyperframes.getVariables() || {}
|
|
798
|
+
: {};
|
|
799
|
+
const varUrl = (v) => (v && typeof v === "object" ? v.url || v.src || "" : v || "");
|
|
800
|
+
if (REG) {
|
|
801
|
+
const srcs = REG.imageVars.map(
|
|
802
|
+
(id, i) =>
|
|
803
|
+
varUrl(V[id]) || "assets/carousel-images/" + DATA.cards[i % DATA.cards.length].file,
|
|
804
|
+
);
|
|
805
|
+
DATA.cards = await Promise.all(
|
|
806
|
+
srcs.map(async (src, i) => {
|
|
807
|
+
const img = new Image();
|
|
808
|
+
img.src = src;
|
|
809
|
+
try {
|
|
810
|
+
await img.decode();
|
|
811
|
+
} catch (e) {}
|
|
812
|
+
return {
|
|
813
|
+
file: src,
|
|
814
|
+
abs: true,
|
|
815
|
+
width: img.naturalWidth || DATA.cards[i % DATA.cards.length].width,
|
|
816
|
+
height: img.naturalHeight || DATA.cards[i % DATA.cards.length].height,
|
|
817
|
+
};
|
|
818
|
+
}),
|
|
819
|
+
);
|
|
820
|
+
if (DATA.text && REG.textVars && REG.textVars.line1 && V[REG.textVars.line1])
|
|
821
|
+
DATA.text.words = String(V[REG.textVars.line1]).trim().split(/\s+/);
|
|
822
|
+
if (DATA.outro && REG.textVars && REG.textVars.line2 && V[REG.textVars.line2])
|
|
823
|
+
DATA.outro.words = String(V[REG.textVars.line2]).trim().split(/\s+/);
|
|
824
|
+
if (REG.speedVar && V[REG.speedVar] != null && isFinite(+V[REG.speedVar]))
|
|
825
|
+
DATA.motion.speedScale = +V[REG.speedVar];
|
|
826
|
+
}
|
|
827
|
+
const { family, controls: ctl, comp, n, cards, motion, look } = DATA;
|
|
828
|
+
const root = document.getElementById("root");
|
|
829
|
+
const stage = document.getElementById(DATA.id + "-stage");
|
|
830
|
+
root.style.setProperty("--card-radius", look.cardRadius + "px");
|
|
831
|
+
root.style.setProperty("--card-shadow", look.cardShadow);
|
|
832
|
+
|
|
833
|
+
document.getElementById(DATA.id + "-scaler").style.transform =
|
|
834
|
+
"scale(" + comp.outWidth / comp.width + ")";
|
|
835
|
+
|
|
836
|
+
const is3d = family === "orbit" || family === "vision";
|
|
837
|
+
if (is3d) {
|
|
838
|
+
stage.style.perspective = comp.cameraZoom + "px";
|
|
839
|
+
stage.style.perspectiveOrigin = "50% 50%";
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
const camShift = (comp.cameraDistance || comp.cameraZoom) - comp.cameraZoom;
|
|
843
|
+
const group = document.createElement("div");
|
|
844
|
+
group.className = "stage" + (is3d ? " is-3d" : "");
|
|
845
|
+
group.id = DATA.id + "-group";
|
|
846
|
+
const gx = [];
|
|
847
|
+
if (look.zoom && look.zoom !== 1) gx.push("scale(" + look.zoom + ")");
|
|
848
|
+
if (camShift) gx.push("translateZ(" + -camShift + "px)");
|
|
849
|
+
if (gx.length) group.style.transform = gx.join(" ");
|
|
850
|
+
|
|
851
|
+
const squeeze = document.createElement("div");
|
|
852
|
+
squeeze.className = "stage" + (is3d ? " is-3d" : "");
|
|
853
|
+
squeeze.id = DATA.id + "-squeeze";
|
|
854
|
+
group.appendChild(squeeze);
|
|
855
|
+
|
|
856
|
+
const TXT = DATA.text || null;
|
|
857
|
+
const textLayers = [];
|
|
858
|
+
if (TXT) {
|
|
859
|
+
for (const cls of ["below", "above"]) {
|
|
860
|
+
const line = document.createElement("div");
|
|
861
|
+
line.className = "textline " + cls + " cards-over-" + (TXT.cardsOverOn || "right");
|
|
862
|
+
line.id = DATA.id + "-text-" + cls;
|
|
863
|
+
line.style.fontSize = TXT.fontSize + "px";
|
|
864
|
+
line.style.color = TXT.color || "#111";
|
|
865
|
+
const drift = document.createElement("div");
|
|
866
|
+
drift.className = "textdrift";
|
|
867
|
+
drift.id = DATA.id + "-drift-" + cls;
|
|
868
|
+
TXT.words.forEach((w, k) => {
|
|
869
|
+
const box = document.createElement("span");
|
|
870
|
+
box.className = "word";
|
|
871
|
+
const inner = document.createElement("span");
|
|
872
|
+
inner.textContent = w;
|
|
873
|
+
inner.id = DATA.id + "-w" + k + "-" + cls;
|
|
874
|
+
box.appendChild(inner);
|
|
875
|
+
drift.appendChild(box);
|
|
876
|
+
});
|
|
877
|
+
line.appendChild(drift);
|
|
878
|
+
textLayers.push(line);
|
|
879
|
+
}
|
|
880
|
+
stage.appendChild(textLayers[0]);
|
|
881
|
+
}
|
|
882
|
+
stage.appendChild(group);
|
|
883
|
+
if (TXT) stage.appendChild(textLayers[1]);
|
|
884
|
+
|
|
885
|
+
const els = [],
|
|
886
|
+
inners = [];
|
|
887
|
+
for (let i = 0; i < n; i++) {
|
|
888
|
+
const c = cards[i];
|
|
889
|
+
let w = c.width,
|
|
890
|
+
h = c.height;
|
|
891
|
+
if (look.imageHeight) {
|
|
892
|
+
w = c.width * (look.imageHeight / c.height);
|
|
893
|
+
h = look.imageHeight;
|
|
894
|
+
} else if (look.fitBox) {
|
|
895
|
+
const k = look.fitBox / Math.max(c.width, c.height);
|
|
896
|
+
w = c.width * k;
|
|
897
|
+
h = c.height * k;
|
|
898
|
+
}
|
|
899
|
+
const el = document.createElement("div");
|
|
900
|
+
el.className = "card";
|
|
901
|
+
el.id = DATA.id + "-card-" + i;
|
|
902
|
+
el.style.width = w + "px";
|
|
903
|
+
el.style.height = h + "px";
|
|
904
|
+
el.style.marginLeft = -w / 2 + "px";
|
|
905
|
+
el.style.marginTop = -h / 2 + "px";
|
|
906
|
+
const inner = document.createElement("div");
|
|
907
|
+
inner.className = "card-inner";
|
|
908
|
+
inner.id = el.id + "-inner";
|
|
909
|
+
const img = document.createElement("img");
|
|
910
|
+
img.src = c.abs ? c.file : "assets/carousel-images/" + c.file;
|
|
911
|
+
img.alt = "";
|
|
912
|
+
|
|
913
|
+
if (!is3d) el.style.zIndex = String(n - i);
|
|
914
|
+
inner.appendChild(img);
|
|
915
|
+
el.appendChild(inner);
|
|
916
|
+
squeeze.appendChild(el);
|
|
917
|
+
els.push(el);
|
|
918
|
+
inners.push(inner);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
const path = DATA.path
|
|
922
|
+
? R.buildPath(
|
|
923
|
+
DATA.path.vertices,
|
|
924
|
+
DATA.path.closed,
|
|
925
|
+
64,
|
|
926
|
+
look.centerPath ? [comp.width / 2, comp.height / 2] : null,
|
|
927
|
+
)
|
|
928
|
+
: null;
|
|
929
|
+
|
|
930
|
+
const K = DATA.keys || {};
|
|
931
|
+
const drives = {};
|
|
932
|
+
for (const name in K) {
|
|
933
|
+
const cumulative =
|
|
934
|
+
/^(Move Carousel|Rotation [XYZ])$/.test(name) &&
|
|
935
|
+
Math.abs(K[name][K[name].length - 1].value - K[name][0].value) > 1e-6;
|
|
936
|
+
drives[name] = R.chainedDrive(K[name], cumulative ? "accumulate" : "pingpong");
|
|
937
|
+
}
|
|
938
|
+
const speedScale = motion.speedScale == null ? 1 : motion.speedScale;
|
|
939
|
+
const tt = (t) => t * speedScale;
|
|
940
|
+
const baseSpeed = (ctl.speed || 0) / 1000;
|
|
941
|
+
|
|
942
|
+
const fallbackCruise =
|
|
943
|
+
family === "orbit" ? (motion.orbitSpinDegPerSec || 24) / 360 : baseSpeed;
|
|
944
|
+
const prog = R.buildProgress(
|
|
945
|
+
Object.assign({ duration: comp.duration, cruise: fallbackCruise }, motion),
|
|
946
|
+
);
|
|
947
|
+
const hasMove = !!drives["Move Carousel"],
|
|
948
|
+
hasSpin = !!(drives["Rotation X"] || drives["Rotation Y"] || drives["Rotation Z"]);
|
|
949
|
+
function controlsAt(t) {
|
|
950
|
+
const c = Object.assign({}, ctl);
|
|
951
|
+
for (const name in drives) {
|
|
952
|
+
const v = drives[name].at(tt(t));
|
|
953
|
+
if (name === "Move Carousel") c.moveCarousel = v;
|
|
954
|
+
else if (name === "Depth Angle") c.depthAngle = v;
|
|
955
|
+
else if (name === "Rotation Follow") c.rotationFollow = v;
|
|
956
|
+
else if (name === "Rotation X") c.rotationX = v;
|
|
957
|
+
else if (name === "Rotation Y") c.rotationY = v;
|
|
958
|
+
else if (name === "Rotation Z") c.rotationZ = v;
|
|
959
|
+
}
|
|
960
|
+
if (family === "orbit") c.spinTurns = { x: 0, y: 0, z: 0 };
|
|
961
|
+
return c;
|
|
962
|
+
}
|
|
963
|
+
function uAt(t) {
|
|
964
|
+
if (family === "orbit") return hasSpin ? 0 : prog.at(t);
|
|
965
|
+
return hasMove ? baseSpeed * tt(t) : prog.at(t);
|
|
966
|
+
}
|
|
967
|
+
const endFade = path && !path.closed ? (look.endFade ?? 0.06) : 0;
|
|
968
|
+
|
|
969
|
+
const RING = DATA.ring || null;
|
|
970
|
+
const converge = RING && RING.entry === "converge";
|
|
971
|
+
const cvE = converge ? gsap.parseEase(RING.ease || "power3.out") : null;
|
|
972
|
+
let ringStartRef = 0;
|
|
973
|
+
function convergeFactor(i, t) {
|
|
974
|
+
const per = (RING.stagger || 0.5) / n,
|
|
975
|
+
s0 = ringStartRef + i * per,
|
|
976
|
+
d = RING.duration || 0.8;
|
|
977
|
+
const e = t <= s0 ? 0 : t >= s0 + d ? 1 : cvE((t - s0) / d);
|
|
978
|
+
return 1 + ((RING.from || 3) - 1) * (1 - e);
|
|
979
|
+
}
|
|
980
|
+
function render(t) {
|
|
981
|
+
const u = uAt(t),
|
|
982
|
+
c = controlsAt(t);
|
|
983
|
+
const poses =
|
|
984
|
+
family === "orbit" ? R.orbitRig(c, comp, n, u) : R.pathRig(path, c, comp, n, u);
|
|
985
|
+
const cx = comp.width / 2,
|
|
986
|
+
cy = comp.height / 2;
|
|
987
|
+
for (let i = 0; i < n; i++) {
|
|
988
|
+
const p = poses[i],
|
|
989
|
+
el = els[i];
|
|
990
|
+
if (converge) {
|
|
991
|
+
const f = convergeFactor(i, t);
|
|
992
|
+
p.x = cx + (p.x - cx) * f;
|
|
993
|
+
p.y = cy + (p.y - cy) * f;
|
|
994
|
+
}
|
|
995
|
+
let alpha = p.visible === false ? 0 : 1;
|
|
996
|
+
if (endFade) {
|
|
997
|
+
const e = Math.min(p.pct, 1 - p.pct) / endFade;
|
|
998
|
+
alpha *= e < 1 ? e : 1;
|
|
999
|
+
}
|
|
1000
|
+
el.style.opacity = alpha;
|
|
1001
|
+
el.style.transform =
|
|
1002
|
+
"translate3d(" +
|
|
1003
|
+
p.x.toFixed(2) +
|
|
1004
|
+
"px," +
|
|
1005
|
+
p.y.toFixed(2) +
|
|
1006
|
+
"px," +
|
|
1007
|
+
(-p.z).toFixed(2) +
|
|
1008
|
+
"px)" +
|
|
1009
|
+
(p.rotY ? " rotateY(" + p.rotY.toFixed(3) + "deg)" : "") +
|
|
1010
|
+
(p.rotX ? " rotateX(" + p.rotX.toFixed(3) + "deg)" : "") +
|
|
1011
|
+
(p.rotZ ? " rotateZ(" + p.rotZ.toFixed(3) + "deg)" : "") +
|
|
1012
|
+
" scale(" +
|
|
1013
|
+
p.scale.toFixed(5) +
|
|
1014
|
+
")";
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
const clock = { t: 0 };
|
|
1019
|
+
const tl = gsap.timeline({ paused: true });
|
|
1020
|
+
tl.fromTo(
|
|
1021
|
+
clock,
|
|
1022
|
+
{ t: 0 },
|
|
1023
|
+
{
|
|
1024
|
+
t: comp.duration,
|
|
1025
|
+
duration: comp.duration,
|
|
1026
|
+
ease: "none",
|
|
1027
|
+
onUpdate: () => render(clock.t),
|
|
1028
|
+
},
|
|
1029
|
+
0,
|
|
1030
|
+
);
|
|
1031
|
+
|
|
1032
|
+
let ringStart = 0;
|
|
1033
|
+
if (TXT) {
|
|
1034
|
+
const wd = TXT.wordDuration,
|
|
1035
|
+
ws = TXT.wordStagger;
|
|
1036
|
+
TXT.words.forEach((w, k) => {
|
|
1037
|
+
const targets = textLayers.map((L) => L.firstChild.children[k].firstChild);
|
|
1038
|
+
tl.fromTo(
|
|
1039
|
+
targets,
|
|
1040
|
+
{ xPercent: 110 },
|
|
1041
|
+
{ xPercent: 0, duration: wd, ease: "power3.out", immediateRender: true },
|
|
1042
|
+
k * ws,
|
|
1043
|
+
);
|
|
1044
|
+
});
|
|
1045
|
+
ringStart = (TXT.words.length - 1) * ws;
|
|
1046
|
+
|
|
1047
|
+
if (TXT.driftPx) {
|
|
1048
|
+
const d0 = wd * (TXT.driftOverlapAt == null ? 0.61 : TXT.driftOverlapAt);
|
|
1049
|
+
const px = TXT.driftPx * (comp.width / comp.outWidth);
|
|
1050
|
+
|
|
1051
|
+
const DE = TXT.driftEase || { power: 1, linear: 1 };
|
|
1052
|
+
const k = DE.linear == null ? 0.35 : DE.linear,
|
|
1053
|
+
pw = DE.power || 3;
|
|
1054
|
+
const driftEase = (x) => (1 - k) * (1 - Math.pow(1 - x, pw)) + k * x;
|
|
1055
|
+
|
|
1056
|
+
const xFrom = TXT.driftEndsCentered ? px : 0,
|
|
1057
|
+
xTo = TXT.driftEndsCentered ? 0 : -px;
|
|
1058
|
+
tl.fromTo(
|
|
1059
|
+
textLayers.map((L) => L.firstChild),
|
|
1060
|
+
{ x: xFrom },
|
|
1061
|
+
{
|
|
1062
|
+
x: xTo,
|
|
1063
|
+
duration: (DATA.cutAt || comp.duration) - d0,
|
|
1064
|
+
ease: driftEase,
|
|
1065
|
+
immediateRender: true,
|
|
1066
|
+
},
|
|
1067
|
+
d0,
|
|
1068
|
+
);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
ringStartRef = ringStart;
|
|
1072
|
+
const each = motion.entryStaggerTotal / n,
|
|
1073
|
+
lead = TXT ? 0 : motion.entryLead || 0,
|
|
1074
|
+
eDur = motion.entryDuration;
|
|
1075
|
+
const E = gsap.parseEase("power3.out");
|
|
1076
|
+
for (let i = 0; i < n; i++) {
|
|
1077
|
+
if (converge) break;
|
|
1078
|
+
const start = ringStart + i * each - lead;
|
|
1079
|
+
if (start >= 0) {
|
|
1080
|
+
tl.fromTo(
|
|
1081
|
+
inners[i],
|
|
1082
|
+
{ autoAlpha: 0, scale: 0.72 },
|
|
1083
|
+
{ autoAlpha: 1, scale: 1, duration: eDur, ease: "power3.out", immediateRender: true },
|
|
1084
|
+
start,
|
|
1085
|
+
);
|
|
1086
|
+
continue;
|
|
1087
|
+
}
|
|
1088
|
+
if (start + eDur <= 0) continue;
|
|
1089
|
+
|
|
1090
|
+
const p0 = -start / eDur,
|
|
1091
|
+
e0 = E(p0);
|
|
1092
|
+
const tail = (x) => (E(p0 + x * (1 - p0)) - e0) / (1 - e0);
|
|
1093
|
+
tl.fromTo(
|
|
1094
|
+
inners[i],
|
|
1095
|
+
{ autoAlpha: e0, scale: 0.72 + 0.28 * e0 },
|
|
1096
|
+
{ autoAlpha: 1, scale: 1, duration: eDur - -start, ease: tail, immediateRender: true },
|
|
1097
|
+
0,
|
|
1098
|
+
);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
const END = DATA.ending || null;
|
|
1102
|
+
const cutAt = DATA.cutAt || comp.duration;
|
|
1103
|
+
if (END) {
|
|
1104
|
+
const tA = END.textScaleAt,
|
|
1105
|
+
tB = tA + (END.imagesDelay == null ? 0.2 : END.imagesDelay);
|
|
1106
|
+
if (TXT && END.textScaleTo != null)
|
|
1107
|
+
tl.fromTo(
|
|
1108
|
+
textLayers,
|
|
1109
|
+
{ scale: 1 },
|
|
1110
|
+
{
|
|
1111
|
+
scale: END.textScaleTo,
|
|
1112
|
+
duration: cutAt - tA,
|
|
1113
|
+
ease: END.ease || "power2.in",
|
|
1114
|
+
immediateRender: true,
|
|
1115
|
+
},
|
|
1116
|
+
tA,
|
|
1117
|
+
);
|
|
1118
|
+
if (END.imagesTo != null)
|
|
1119
|
+
tl.fromTo(
|
|
1120
|
+
squeeze,
|
|
1121
|
+
{ scale: 1 },
|
|
1122
|
+
{
|
|
1123
|
+
scale: END.imagesTo,
|
|
1124
|
+
duration: cutAt - tB,
|
|
1125
|
+
ease: END.ease || "power2.in",
|
|
1126
|
+
immediateRender: true,
|
|
1127
|
+
},
|
|
1128
|
+
tB,
|
|
1129
|
+
);
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
const OUT = DATA.outro || null;
|
|
1133
|
+
if (OUT) {
|
|
1134
|
+
const line = document.getElementById(DATA.id + "-outro-line");
|
|
1135
|
+
const driftEl = document.getElementById(DATA.id + "-outro-drift");
|
|
1136
|
+
line.style.fontSize = (OUT.fontSize || (TXT && TXT.fontSize) || 190) + "px";
|
|
1137
|
+
line.style.color = OUT.color || (TXT && TXT.color) || "#111";
|
|
1138
|
+
OUT.words.forEach((w) => {
|
|
1139
|
+
const s = document.createElement("span");
|
|
1140
|
+
s.className = "word";
|
|
1141
|
+
s.textContent = w;
|
|
1142
|
+
driftEl.appendChild(s);
|
|
1143
|
+
});
|
|
1144
|
+
const sd = OUT.scaleDuration || 0.8,
|
|
1145
|
+
outEnd = comp.duration;
|
|
1146
|
+
tl.fromTo(
|
|
1147
|
+
line,
|
|
1148
|
+
{ scale: OUT.scaleFrom == null ? 1.4 : OUT.scaleFrom },
|
|
1149
|
+
{
|
|
1150
|
+
scale: OUT.scaleTo == null ? 1 : OUT.scaleTo,
|
|
1151
|
+
duration: sd,
|
|
1152
|
+
ease: OUT.ease || "power2.out",
|
|
1153
|
+
immediateRender: true,
|
|
1154
|
+
},
|
|
1155
|
+
cutAt,
|
|
1156
|
+
);
|
|
1157
|
+
if (OUT.driftPx) {
|
|
1158
|
+
const d0 = cutAt + sd * (OUT.driftOverlapAt == null ? 0.61 : OUT.driftOverlapAt);
|
|
1159
|
+
const px = OUT.driftPx * (comp.width / comp.outWidth);
|
|
1160
|
+
tl.fromTo(
|
|
1161
|
+
driftEl,
|
|
1162
|
+
{ x: 0 },
|
|
1163
|
+
{ x: -px, duration: outEnd - d0, ease: "none", immediateRender: true },
|
|
1164
|
+
d0,
|
|
1165
|
+
);
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
render(0);
|
|
1169
|
+
window.__timelines[DATA.id] = tl;
|
|
1170
|
+
})();
|
|
1171
|
+
</script>
|
|
1172
|
+
</div>
|
|
1173
|
+
<script>window.__popostFit();</script>
|
|
1174
|
+
</body>
|
|
1175
|
+
</html>
|