From f23dd4b541ce7022755a8a6cdf69b40c07c4f542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Sun, 17 May 2026 19:27:07 -0400 Subject: [PATCH] fix(registry): slow down matrix-decode scramble and extend hold times --- .../caption-matrix-decode.html | 28 +++++++++---------- .../caption-matrix-decode/demo.html | 28 +++++++++---------- .../caption-matrix-decode/registry-item.json | 2 +- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/registry/components/caption-matrix-decode/caption-matrix-decode.html b/registry/components/caption-matrix-decode/caption-matrix-decode.html index 3d91fb7c1..11ac39f60 100644 --- a/registry/components/caption-matrix-decode/caption-matrix-decode.html +++ b/registry/components/caption-matrix-decode/caption-matrix-decode.html @@ -181,16 +181,16 @@ ]; var GROUPS = [ - { wordStart: 0, wordEnd: 3, start: 0.0, end: 1.05 }, - { wordStart: 4, wordEnd: 7, start: 1.1, end: 2.05 }, - { wordStart: 8, wordEnd: 8, start: 2.1, end: 2.6 }, - { wordStart: 9, wordEnd: 12, start: 2.65, end: 3.5 }, - { wordStart: 13, wordEnd: 15, start: 3.55, end: 4.4 }, - { wordStart: 16, wordEnd: 16, start: 3.95, end: 4.75 }, - { wordStart: 17, wordEnd: 19, start: 4.9, end: 5.4 }, - { wordStart: 20, wordEnd: 22, start: 5.65, end: 6.2 }, - { wordStart: 23, wordEnd: 24, start: 6.35, end: 6.75 }, - { wordStart: 25, wordEnd: 27, start: 6.8, end: 7.8 }, + { wordStart: 0, wordEnd: 3, start: 0.0, end: 1.35 }, + { wordStart: 4, wordEnd: 7, start: 1.1, end: 2.35 }, + { wordStart: 8, wordEnd: 8, start: 2.1, end: 2.9 }, + { wordStart: 9, wordEnd: 12, start: 2.65, end: 3.8 }, + { wordStart: 13, wordEnd: 15, start: 3.55, end: 4.7 }, + { wordStart: 16, wordEnd: 16, start: 3.95, end: 5.0 }, + { wordStart: 17, wordEnd: 19, start: 4.9, end: 5.7 }, + { wordStart: 20, wordEnd: 22, start: 5.65, end: 6.5 }, + { wordStart: 23, wordEnd: 24, start: 6.35, end: 7.05 }, + { wordStart: 25, wordEnd: 27, start: 6.8, end: 7.9 }, ]; var container = document.getElementById("sc-container"); @@ -248,10 +248,10 @@ var scr1El = document.getElementById("sc-scr1-" + wi); tl.set(scr0El, { display: "inline" }, w.start); - tl.set(scr1El, { display: "inline" }, w.start + 0.05); - tl.set(scr0El, { display: "none" }, w.start + 0.05); - tl.set(realEl, { display: "inline" }, w.start + 0.1); - tl.set(scr1El, { display: "none" }, w.start + 0.1); + tl.set(scr1El, { display: "inline" }, w.start + 0.1); + tl.set(scr0El, { display: "none" }, w.start + 0.1); + tl.set(realEl, { display: "inline" }, w.start + 0.2); + tl.set(scr1El, { display: "none" }, w.start + 0.2); }); tl.to(grp, { opacity: 0, duration: 0.12 }, g.end - 0.12); diff --git a/registry/components/caption-matrix-decode/demo.html b/registry/components/caption-matrix-decode/demo.html index 3d91fb7c1..11ac39f60 100644 --- a/registry/components/caption-matrix-decode/demo.html +++ b/registry/components/caption-matrix-decode/demo.html @@ -181,16 +181,16 @@ ]; var GROUPS = [ - { wordStart: 0, wordEnd: 3, start: 0.0, end: 1.05 }, - { wordStart: 4, wordEnd: 7, start: 1.1, end: 2.05 }, - { wordStart: 8, wordEnd: 8, start: 2.1, end: 2.6 }, - { wordStart: 9, wordEnd: 12, start: 2.65, end: 3.5 }, - { wordStart: 13, wordEnd: 15, start: 3.55, end: 4.4 }, - { wordStart: 16, wordEnd: 16, start: 3.95, end: 4.75 }, - { wordStart: 17, wordEnd: 19, start: 4.9, end: 5.4 }, - { wordStart: 20, wordEnd: 22, start: 5.65, end: 6.2 }, - { wordStart: 23, wordEnd: 24, start: 6.35, end: 6.75 }, - { wordStart: 25, wordEnd: 27, start: 6.8, end: 7.8 }, + { wordStart: 0, wordEnd: 3, start: 0.0, end: 1.35 }, + { wordStart: 4, wordEnd: 7, start: 1.1, end: 2.35 }, + { wordStart: 8, wordEnd: 8, start: 2.1, end: 2.9 }, + { wordStart: 9, wordEnd: 12, start: 2.65, end: 3.8 }, + { wordStart: 13, wordEnd: 15, start: 3.55, end: 4.7 }, + { wordStart: 16, wordEnd: 16, start: 3.95, end: 5.0 }, + { wordStart: 17, wordEnd: 19, start: 4.9, end: 5.7 }, + { wordStart: 20, wordEnd: 22, start: 5.65, end: 6.5 }, + { wordStart: 23, wordEnd: 24, start: 6.35, end: 7.05 }, + { wordStart: 25, wordEnd: 27, start: 6.8, end: 7.9 }, ]; var container = document.getElementById("sc-container"); @@ -248,10 +248,10 @@ var scr1El = document.getElementById("sc-scr1-" + wi); tl.set(scr0El, { display: "inline" }, w.start); - tl.set(scr1El, { display: "inline" }, w.start + 0.05); - tl.set(scr0El, { display: "none" }, w.start + 0.05); - tl.set(realEl, { display: "inline" }, w.start + 0.1); - tl.set(scr1El, { display: "none" }, w.start + 0.1); + tl.set(scr1El, { display: "inline" }, w.start + 0.1); + tl.set(scr0El, { display: "none" }, w.start + 0.1); + tl.set(realEl, { display: "inline" }, w.start + 0.2); + tl.set(scr1El, { display: "none" }, w.start + 0.2); }); tl.to(grp, { opacity: 0, duration: 0.12 }, g.end - 0.12); diff --git a/registry/components/caption-matrix-decode/registry-item.json b/registry/components/caption-matrix-decode/registry-item.json index a4fd0015a..b3d2cad2f 100644 --- a/registry/components/caption-matrix-decode/registry-item.json +++ b/registry/components/caption-matrix-decode/registry-item.json @@ -12,5 +12,5 @@ "type": "hyperframes:snippet" } ], - "preview": "https://static.heygen.ai/hyperframes-oss/registry/components/caption-matrix-decode/preview.mp4?v=1779051416" + "preview": "https://static.heygen.ai/hyperframes-oss/registry/components/caption-matrix-decode/preview.mp4?v=1779060427" }