diff --git a/packages/producer/tests/sub-comp-t0/output/compiled.html b/packages/producer/tests/sub-comp-t0/output/compiled.html index 7de435e34..7fe867899 100644 --- a/packages/producer/tests/sub-comp-t0/output/compiled.html +++ b/packages/producer/tests/sub-comp-t0/output/compiled.html @@ -81,14 +81,14 @@ width: 1920px; height: 1080px; overflow: hidden; - background: #07110d; + background: #0f172a; } #root { position: relative; width: 1920px; height: 1080px; overflow: hidden; - background: #07110d; + background: #0f172a; } .scene { position: absolute; @@ -105,24 +105,34 @@ width: 1920px; height: 1080px; overflow: hidden; - background: #07110d; - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; - gap: 20px; + background: #ef4444; + } + [data-composition-id="hook"] [data-hf-authored-id="hook"] .hook-bg { + position: absolute; + inset: 0; + background: #ef4444; } [data-composition-id="hook"] [data-hf-authored-id="hook"] .hook-title { + position: absolute; + top: 250px; + left: 0; + width: 1920px; + text-align: center; font-family: Impact, system-ui, sans-serif; - font-size: 200px; + font-size: 280px; font-weight: 900; - color: #ff3b30; + color: #ffffff; opacity: 0; } [data-composition-id="hook"] [data-hf-authored-id="hook"] .hook-subtitle { + position: absolute; + top: 600px; + left: 0; + width: 1920px; + text-align: center; font-family: Arial, system-ui, sans-serif; - font-size: 60px; - color: #f7f3e8; + font-size: 80px; + color: #ffffff; opacity: 0; } @@ -133,16 +143,23 @@ width: 1920px; height: 1080px; overflow: hidden; - background: #0e2c1e; - display: flex; - align-items: center; - justify-content: center; + background: #3b82f6; + } + [data-composition-id="later"] [data-hf-authored-id="later"] .later-bg { + position: absolute; + inset: 0; + background: #3b82f6; } [data-composition-id="later"] [data-hf-authored-id="later"] .later-heading { + position: absolute; + top: 380px; + left: 0; + width: 1920px; + text-align: center; font-family: Arial, system-ui, sans-serif; - font-size: 120px; + font-size: 160px; font-weight: 700; - color: #f7f3e8; + color: #ffffff; opacity: 0; } @@ -150,6 +167,7 @@
+
BREAKING
Transfer confirmed
@@ -161,6 +179,7 @@
+
Second Scene
@@ -462,7 +481,6 @@ var tl = gsap.timeline({ paused: true }); var scope = "#hook"; - // Title slams in at 0.1s tl.fromTo( scope + " .hook-title", { scale: 3.5, opacity: 0 }, @@ -470,7 +488,6 @@ 0.1, ); - // Subtitle fades in at 0.5s tl.fromTo( scope + " .hook-subtitle", { y: 30, opacity: 0 }, diff --git a/packages/producer/tests/sub-comp-t0/output/output.mp4 b/packages/producer/tests/sub-comp-t0/output/output.mp4 index 75fd20b88..30149f2e1 100644 --- a/packages/producer/tests/sub-comp-t0/output/output.mp4 +++ b/packages/producer/tests/sub-comp-t0/output/output.mp4 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3ac5c0ef3b7e6e31a49d361a62ba2ca8ac1532544eca9f6f60e0ede52836693c -size 20587 +oid sha256:0c1a5e11656b9c8a6dbdc491557f29d32cdf4df6681e4f2ca13d60dfc74f65da +size 23640 diff --git a/packages/producer/tests/sub-comp-t0/src/compositions/hook.html b/packages/producer/tests/sub-comp-t0/src/compositions/hook.html index a2c1f1947..98f0a3a5d 100644 --- a/packages/producer/tests/sub-comp-t0/src/compositions/hook.html +++ b/packages/producer/tests/sub-comp-t0/src/compositions/hook.html @@ -1,5 +1,6 @@