diff --git a/registry/components/caption-clip-wipe/caption-clip-wipe.html b/registry/components/caption-clip-wipe/caption-clip-wipe.html index a793d6763..63a7aa1ec 100644 --- a/registry/components/caption-clip-wipe/caption-clip-wipe.html +++ b/registry/components/caption-clip-wipe/caption-clip-wipe.html @@ -6,42 +6,75 @@ Clip Wipe - + @@ -149,49 +154,108 @@ // Generic transcript words var W = [ - {text:"Every", start:0.0, end:0.3}, - {text:"great", start:0.3, end:0.55}, - {text:"video", start:0.55, end:0.85}, - {text:"starts", start:0.85, end:1.1}, - {text:"with", start:1.1, end:1.25}, - {text:"a", start:1.25, end:1.35}, - {text:"single", start:1.35, end:1.65}, - {text:"frame.", start:1.65, end:2.0}, - {text:"HyperFrames", start:2.1, end:2.65}, - {text:"lets", start:2.65, end:2.85}, - {text:"you", start:2.85, end:2.95}, - {text:"write", start:2.95, end:3.15}, - {text:"HTML", start:3.15, end:3.55}, - {text:"and", start:3.55, end:3.65}, - {text:"render", start:3.65, end:3.95}, - {text:"professional",start:3.95, end:4.45}, - {text:"video.", start:4.45, end:4.8}, - {text:"No", start:4.9, end:5.05}, - {text:"timeline.", start:5.05, end:5.45}, - {text:"No", start:5.5, end:5.65}, - {text:"drag", start:5.65, end:5.85}, - {text:"and", start:5.85, end:5.95}, - {text:"drop.", start:5.95, end:6.25}, - {text:"Just", start:6.35, end:6.55}, - {text:"code", start:6.55, end:6.8}, - {text:"that", start:6.8, end:6.95}, - {text:"becomes", start:6.95, end:7.3}, - {text:"cinema.", start:7.3, end:7.7} + { text: "Every", start: 0.0, end: 0.3 }, + { text: "great", start: 0.3, end: 0.55 }, + { text: "video", start: 0.55, end: 0.85 }, + { text: "starts", start: 0.85, end: 1.1 }, + { text: "with", start: 1.1, end: 1.25 }, + { text: "a", start: 1.25, end: 1.35 }, + { text: "single", start: 1.35, end: 1.65 }, + { text: "frame.", start: 1.65, end: 2.0 }, + { text: "HyperFrames", start: 2.1, end: 2.65 }, + { text: "lets", start: 2.65, end: 2.85 }, + { text: "you", start: 2.85, end: 2.95 }, + { text: "write", start: 2.95, end: 3.15 }, + { text: "HTML", start: 3.15, end: 3.55 }, + { text: "and", start: 3.55, end: 3.65 }, + { text: "render", start: 3.65, end: 3.95 }, + { text: "professional", start: 3.95, end: 4.45 }, + { text: "video.", start: 4.45, end: 4.8 }, + { text: "No", start: 4.9, end: 5.05 }, + { text: "timeline.", start: 5.05, end: 5.45 }, + { text: "No", start: 5.5, end: 5.65 }, + { text: "drag", start: 5.65, end: 5.85 }, + { text: "and", start: 5.85, end: 5.95 }, + { text: "drop.", start: 5.95, end: 6.25 }, + { text: "Just", start: 6.35, end: 6.55 }, + { text: "code", start: 6.55, end: 6.8 }, + { text: "that", start: 6.8, end: 6.95 }, + { text: "becomes", start: 6.95, end: 7.3 }, + { text: "cinema.", start: 7.3, end: 7.7 }, ]; // Block layout: [wordIndex, type] — n=normal, i=italic, e=emphasis(large) // Emphasis words: HyperFrames(8), HTML(12), professional(15), code(24), cinema.(27) var BLOCKS = [ - { line1: [[0,"n"],[1,"n"],[2,"n"]], line2: [[3,"n"],[4,"n"]] }, - { line1: [[5,"n"],[6,"n"]], line2: [[7,"e"]] }, - { line1: [[8,"e"]], line2: null }, - { line1: [[9,"n"],[10,"n"],[11,"n"]], line2: [[12,"e"]] }, - { line1: [[13,"n"],[14,"n"]], line2: [[15,"e"]] }, - { line1: [[16,"n"],[17,"n"]], line2: null }, - { line1: [[18,"n"]], line2: [[19,"n"],[20,"n"]] }, - { line1: [[21,"n"],[22,"n"]], line2: null }, - { line1: [[23,"i"],[24,"e"]], line2: null }, - { line1: [[25,"n"],[26,"n"]], line2: [[27,"e"]] }, + { + line1: [ + [0, "n"], + [1, "n"], + [2, "n"], + ], + line2: [ + [3, "n"], + [4, "n"], + ], + }, + { + line1: [ + [5, "n"], + [6, "n"], + ], + line2: [[7, "e"]], + }, + { line1: [[8, "e"]], line2: null }, + { + line1: [ + [9, "n"], + [10, "n"], + [11, "n"], + ], + line2: [[12, "e"]], + }, + { + line1: [ + [13, "n"], + [14, "n"], + ], + line2: [[15, "e"]], + }, + { + line1: [ + [16, "n"], + [17, "n"], + ], + line2: null, + }, + { + line1: [[18, "n"]], + line2: [ + [19, "n"], + [20, "n"], + ], + }, + { + line1: [ + [21, "n"], + [22, "n"], + ], + line2: null, + }, + { + line1: [ + [23, "i"], + [24, "e"], + ], + line2: null, + }, + { + line1: [ + [25, "n"], + [26, "n"], + ], + line2: [[27, "e"]], + }, ]; var CLASS_MAP = { n: "word word--normal", i: "word word--italic", e: "word word--emphasis" }; @@ -243,7 +307,9 @@ el.style.position = "relative"; var lines = el.querySelectorAll(".caption-line"); var maxW = 0; - lines.forEach(function (line) { if (line.scrollWidth > maxW) maxW = line.scrollWidth; }); + lines.forEach(function (line) { + if (line.scrollWidth > maxW) maxW = line.scrollWidth; + }); if (maxW > SAFE_WIDTH) { var s = SAFE_WIDTH / maxW; el.style.transform = "scale(" + s + ")"; @@ -256,27 +322,39 @@ window.__timelines = window.__timelines || {}; var tl = gsap.timeline({ paused: true }); - var allEls = BLOCKS.map(function (_, i) { return document.getElementById("b" + i); }); + var allEls = BLOCKS.map(function (_, i) { + return document.getElementById("b" + i); + }); - function blockStart(bi) { return W[BLOCKS[bi].line1[0][0]].start; } + function blockStart(bi) { + return W[BLOCKS[bi].line1[0][0]].start; + } BLOCKS.forEach(function (block, bi) { var el = allEls[bi]; var start = blockStart(bi); var nextStart = bi < BLOCKS.length - 1 ? blockStart(bi + 1) : DURATION; - allEls.forEach(function (other, oi) { if (oi !== bi) tl.set(other, { opacity: 0 }, start); }); + allEls.forEach(function (other, oi) { + if (oi !== bi) tl.set(other, { opacity: 0 }, start); + }); tl.set(el, { opacity: 1 }, start); block.line1.forEach(function (pair, wi) { var wordEl = document.getElementById("b" + bi + "L1w" + wi); var wordStart = W[pair[0]].start; tl.set(wordEl, { opacity: 0, scale: 1.12, transformOrigin: "0% 100%" }, start); - tl.to(wordEl, { opacity: 1, scale: 1, duration: ENTRY_DUR, ease: "power2.out" }, wordStart); + tl.to( + wordEl, + { opacity: 1, scale: 1, duration: ENTRY_DUR, ease: "power2.out" }, + wordStart, + ); }); if (block.line2) { - var hasEmphasis = block.line2.some(function (p) { return p[1] === "e"; }); + var hasEmphasis = block.line2.some(function (p) { + return p[1] === "e"; + }); var l2El = document.getElementById("b" + bi + "L2"); if (hasEmphasis) { var l2Start = W[block.line2[0][0]].start; @@ -288,7 +366,11 @@ var wordEl = document.getElementById("b" + bi + "L2w" + wi); var wordStart = W[pair[0]].start; tl.set(wordEl, { opacity: 0, scale: 1.12, transformOrigin: "0% 100%" }, start); - tl.to(wordEl, { opacity: 1, scale: 1, duration: ENTRY_DUR, ease: "power2.out" }, wordStart); + tl.to( + wordEl, + { opacity: 1, scale: 1, duration: ENTRY_DUR, ease: "power2.out" }, + wordStart, + ); }); } } diff --git a/registry/components/caption-editorial-emphasis/demo.html b/registry/components/caption-editorial-emphasis/demo.html index a9c2e2eb6..999a01e09 100644 --- a/registry/components/caption-editorial-emphasis/demo.html +++ b/registry/components/caption-editorial-emphasis/demo.html @@ -6,7 +6,10 @@ Editorial Emphasis - + @@ -149,49 +154,108 @@ // Generic transcript words var W = [ - {text:"Every", start:0.0, end:0.3}, - {text:"great", start:0.3, end:0.55}, - {text:"video", start:0.55, end:0.85}, - {text:"starts", start:0.85, end:1.1}, - {text:"with", start:1.1, end:1.25}, - {text:"a", start:1.25, end:1.35}, - {text:"single", start:1.35, end:1.65}, - {text:"frame.", start:1.65, end:2.0}, - {text:"HyperFrames", start:2.1, end:2.65}, - {text:"lets", start:2.65, end:2.85}, - {text:"you", start:2.85, end:2.95}, - {text:"write", start:2.95, end:3.15}, - {text:"HTML", start:3.15, end:3.55}, - {text:"and", start:3.55, end:3.65}, - {text:"render", start:3.65, end:3.95}, - {text:"professional",start:3.95, end:4.45}, - {text:"video.", start:4.45, end:4.8}, - {text:"No", start:4.9, end:5.05}, - {text:"timeline.", start:5.05, end:5.45}, - {text:"No", start:5.5, end:5.65}, - {text:"drag", start:5.65, end:5.85}, - {text:"and", start:5.85, end:5.95}, - {text:"drop.", start:5.95, end:6.25}, - {text:"Just", start:6.35, end:6.55}, - {text:"code", start:6.55, end:6.8}, - {text:"that", start:6.8, end:6.95}, - {text:"becomes", start:6.95, end:7.3}, - {text:"cinema.", start:7.3, end:7.7} + { text: "Every", start: 0.0, end: 0.3 }, + { text: "great", start: 0.3, end: 0.55 }, + { text: "video", start: 0.55, end: 0.85 }, + { text: "starts", start: 0.85, end: 1.1 }, + { text: "with", start: 1.1, end: 1.25 }, + { text: "a", start: 1.25, end: 1.35 }, + { text: "single", start: 1.35, end: 1.65 }, + { text: "frame.", start: 1.65, end: 2.0 }, + { text: "HyperFrames", start: 2.1, end: 2.65 }, + { text: "lets", start: 2.65, end: 2.85 }, + { text: "you", start: 2.85, end: 2.95 }, + { text: "write", start: 2.95, end: 3.15 }, + { text: "HTML", start: 3.15, end: 3.55 }, + { text: "and", start: 3.55, end: 3.65 }, + { text: "render", start: 3.65, end: 3.95 }, + { text: "professional", start: 3.95, end: 4.45 }, + { text: "video.", start: 4.45, end: 4.8 }, + { text: "No", start: 4.9, end: 5.05 }, + { text: "timeline.", start: 5.05, end: 5.45 }, + { text: "No", start: 5.5, end: 5.65 }, + { text: "drag", start: 5.65, end: 5.85 }, + { text: "and", start: 5.85, end: 5.95 }, + { text: "drop.", start: 5.95, end: 6.25 }, + { text: "Just", start: 6.35, end: 6.55 }, + { text: "code", start: 6.55, end: 6.8 }, + { text: "that", start: 6.8, end: 6.95 }, + { text: "becomes", start: 6.95, end: 7.3 }, + { text: "cinema.", start: 7.3, end: 7.7 }, ]; // Block layout: [wordIndex, type] — n=normal, i=italic, e=emphasis(large) // Emphasis words: HyperFrames(8), HTML(12), professional(15), code(24), cinema.(27) var BLOCKS = [ - { line1: [[0,"n"],[1,"n"],[2,"n"]], line2: [[3,"n"],[4,"n"]] }, - { line1: [[5,"n"],[6,"n"]], line2: [[7,"e"]] }, - { line1: [[8,"e"]], line2: null }, - { line1: [[9,"n"],[10,"n"],[11,"n"]], line2: [[12,"e"]] }, - { line1: [[13,"n"],[14,"n"]], line2: [[15,"e"]] }, - { line1: [[16,"n"],[17,"n"]], line2: null }, - { line1: [[18,"n"]], line2: [[19,"n"],[20,"n"]] }, - { line1: [[21,"n"],[22,"n"]], line2: null }, - { line1: [[23,"i"],[24,"e"]], line2: null }, - { line1: [[25,"n"],[26,"n"]], line2: [[27,"e"]] }, + { + line1: [ + [0, "n"], + [1, "n"], + [2, "n"], + ], + line2: [ + [3, "n"], + [4, "n"], + ], + }, + { + line1: [ + [5, "n"], + [6, "n"], + ], + line2: [[7, "e"]], + }, + { line1: [[8, "e"]], line2: null }, + { + line1: [ + [9, "n"], + [10, "n"], + [11, "n"], + ], + line2: [[12, "e"]], + }, + { + line1: [ + [13, "n"], + [14, "n"], + ], + line2: [[15, "e"]], + }, + { + line1: [ + [16, "n"], + [17, "n"], + ], + line2: null, + }, + { + line1: [[18, "n"]], + line2: [ + [19, "n"], + [20, "n"], + ], + }, + { + line1: [ + [21, "n"], + [22, "n"], + ], + line2: null, + }, + { + line1: [ + [23, "i"], + [24, "e"], + ], + line2: null, + }, + { + line1: [ + [25, "n"], + [26, "n"], + ], + line2: [[27, "e"]], + }, ]; var CLASS_MAP = { n: "word word--normal", i: "word word--italic", e: "word word--emphasis" }; @@ -243,7 +307,9 @@ el.style.position = "relative"; var lines = el.querySelectorAll(".caption-line"); var maxW = 0; - lines.forEach(function (line) { if (line.scrollWidth > maxW) maxW = line.scrollWidth; }); + lines.forEach(function (line) { + if (line.scrollWidth > maxW) maxW = line.scrollWidth; + }); if (maxW > SAFE_WIDTH) { var s = SAFE_WIDTH / maxW; el.style.transform = "scale(" + s + ")"; @@ -256,27 +322,39 @@ window.__timelines = window.__timelines || {}; var tl = gsap.timeline({ paused: true }); - var allEls = BLOCKS.map(function (_, i) { return document.getElementById("b" + i); }); + var allEls = BLOCKS.map(function (_, i) { + return document.getElementById("b" + i); + }); - function blockStart(bi) { return W[BLOCKS[bi].line1[0][0]].start; } + function blockStart(bi) { + return W[BLOCKS[bi].line1[0][0]].start; + } BLOCKS.forEach(function (block, bi) { var el = allEls[bi]; var start = blockStart(bi); var nextStart = bi < BLOCKS.length - 1 ? blockStart(bi + 1) : DURATION; - allEls.forEach(function (other, oi) { if (oi !== bi) tl.set(other, { opacity: 0 }, start); }); + allEls.forEach(function (other, oi) { + if (oi !== bi) tl.set(other, { opacity: 0 }, start); + }); tl.set(el, { opacity: 1 }, start); block.line1.forEach(function (pair, wi) { var wordEl = document.getElementById("b" + bi + "L1w" + wi); var wordStart = W[pair[0]].start; tl.set(wordEl, { opacity: 0, scale: 1.12, transformOrigin: "0% 100%" }, start); - tl.to(wordEl, { opacity: 1, scale: 1, duration: ENTRY_DUR, ease: "power2.out" }, wordStart); + tl.to( + wordEl, + { opacity: 1, scale: 1, duration: ENTRY_DUR, ease: "power2.out" }, + wordStart, + ); }); if (block.line2) { - var hasEmphasis = block.line2.some(function (p) { return p[1] === "e"; }); + var hasEmphasis = block.line2.some(function (p) { + return p[1] === "e"; + }); var l2El = document.getElementById("b" + bi + "L2"); if (hasEmphasis) { var l2Start = W[block.line2[0][0]].start; @@ -288,7 +366,11 @@ var wordEl = document.getElementById("b" + bi + "L2w" + wi); var wordStart = W[pair[0]].start; tl.set(wordEl, { opacity: 0, scale: 1.12, transformOrigin: "0% 100%" }, start); - tl.to(wordEl, { opacity: 1, scale: 1, duration: ENTRY_DUR, ease: "power2.out" }, wordStart); + tl.to( + wordEl, + { opacity: 1, scale: 1, duration: ENTRY_DUR, ease: "power2.out" }, + wordStart, + ); }); } } diff --git a/registry/components/caption-emoji-pop/caption-emoji-pop.html b/registry/components/caption-emoji-pop/caption-emoji-pop.html index 10f4b9573..7f017d19c 100644 --- a/registry/components/caption-emoji-pop/caption-emoji-pop.html +++ b/registry/components/caption-emoji-pop/caption-emoji-pop.html @@ -6,7 +6,10 @@ Emoji Pop - + @@ -64,124 +103,190 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-glitch-rgb/demo.html b/registry/components/caption-glitch-rgb/demo.html index 8b6758751..307113d4c 100644 --- a/registry/components/caption-glitch-rgb/demo.html +++ b/registry/components/caption-glitch-rgb/demo.html @@ -6,50 +6,89 @@ Glitch RGB - + @@ -64,124 +103,190 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-gradient-fill/caption-gradient-fill.html b/registry/components/caption-gradient-fill/caption-gradient-fill.html index cd34918b4..92bb8f3da 100644 --- a/registry/components/caption-gradient-fill/caption-gradient-fill.html +++ b/registry/components/caption-gradient-fill/caption-gradient-fill.html @@ -6,40 +6,74 @@ Gradient Fill - + @@ -51,107 +77,119 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-kinetic-slam/demo.html b/registry/components/caption-kinetic-slam/demo.html index 11a70bc3d..6a7c826fc 100644 --- a/registry/components/caption-kinetic-slam/demo.html +++ b/registry/components/caption-kinetic-slam/demo.html @@ -9,35 +9,61 @@ @@ -51,107 +77,119 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-matrix-decode/caption-matrix-decode.html b/registry/components/caption-matrix-decode/caption-matrix-decode.html index ac5176793..41e20e81c 100644 --- a/registry/components/caption-matrix-decode/caption-matrix-decode.html +++ b/registry/components/caption-matrix-decode/caption-matrix-decode.html @@ -6,45 +6,86 @@ Matrix Decode - + @@ -57,141 +98,149 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-matrix-decode/demo.html b/registry/components/caption-matrix-decode/demo.html index ac5176793..41e20e81c 100644 --- a/registry/components/caption-matrix-decode/demo.html +++ b/registry/components/caption-matrix-decode/demo.html @@ -6,45 +6,86 @@ Matrix Decode - + @@ -57,141 +98,149 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-neon-accent/caption-neon-accent.html b/registry/components/caption-neon-accent/caption-neon-accent.html index ff4e9c9e5..cf879ad34 100644 --- a/registry/components/caption-neon-accent/caption-neon-accent.html +++ b/registry/components/caption-neon-accent/caption-neon-accent.html @@ -6,7 +6,10 @@ Neon Accent - + @@ -55,107 +89,124 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-neon-glow/demo.html b/registry/components/caption-neon-glow/demo.html index 39000033e..675d948e4 100644 --- a/registry/components/caption-neon-glow/demo.html +++ b/registry/components/caption-neon-glow/demo.html @@ -6,42 +6,76 @@ Neon Glow - + @@ -55,107 +89,124 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-parallax-layers/caption-parallax-layers.html b/registry/components/caption-parallax-layers/caption-parallax-layers.html index f94731714..95bbafb5f 100644 --- a/registry/components/caption-parallax-layers/caption-parallax-layers.html +++ b/registry/components/caption-parallax-layers/caption-parallax-layers.html @@ -6,7 +6,10 @@ Parallax Layers - + @@ -175,48 +182,48 @@ var SLIDE_DUR = 0.2; var W = [ - {text:"Every", start:0.0, end:0.3}, - {text:"great", start:0.3, end:0.55}, - {text:"video", start:0.55, end:0.85}, - {text:"starts", start:0.85, end:1.1}, - {text:"with", start:1.1, end:1.25}, - {text:"a", start:1.25, end:1.35}, - {text:"single", start:1.35, end:1.65}, - {text:"frame.", start:1.65, end:2.0}, - {text:"HyperFrames", start:2.1, end:2.65}, - {text:"lets", start:2.65, end:2.85}, - {text:"you", start:2.85, end:2.95}, - {text:"write", start:2.95, end:3.15}, - {text:"HTML", start:3.15, end:3.55}, - {text:"and", start:3.55, end:3.65}, - {text:"render", start:3.65, end:3.95}, - {text:"professional",start:3.95, end:4.45}, - {text:"video.", start:4.45, end:4.8}, - {text:"No", start:4.9, end:5.05}, - {text:"timeline.", start:5.05, end:5.45}, - {text:"No", start:5.5, end:5.65}, - {text:"drag", start:5.65, end:5.85}, - {text:"and", start:5.85, end:5.95}, - {text:"drop.", start:5.95, end:6.25}, - {text:"Just", start:6.35, end:6.55}, - {text:"code", start:6.55, end:6.8}, - {text:"that", start:6.8, end:6.95}, - {text:"becomes", start:6.95, end:7.3}, - {text:"cinema.", start:7.3, end:7.7} + { text: "Every", start: 0.0, end: 0.3 }, + { text: "great", start: 0.3, end: 0.55 }, + { text: "video", start: 0.55, end: 0.85 }, + { text: "starts", start: 0.85, end: 1.1 }, + { text: "with", start: 1.1, end: 1.25 }, + { text: "a", start: 1.25, end: 1.35 }, + { text: "single", start: 1.35, end: 1.65 }, + { text: "frame.", start: 1.65, end: 2.0 }, + { text: "HyperFrames", start: 2.1, end: 2.65 }, + { text: "lets", start: 2.65, end: 2.85 }, + { text: "you", start: 2.85, end: 2.95 }, + { text: "write", start: 2.95, end: 3.15 }, + { text: "HTML", start: 3.15, end: 3.55 }, + { text: "and", start: 3.55, end: 3.65 }, + { text: "render", start: 3.65, end: 3.95 }, + { text: "professional", start: 3.95, end: 4.45 }, + { text: "video.", start: 4.45, end: 4.8 }, + { text: "No", start: 4.9, end: 5.05 }, + { text: "timeline.", start: 5.05, end: 5.45 }, + { text: "No", start: 5.5, end: 5.65 }, + { text: "drag", start: 5.65, end: 5.85 }, + { text: "and", start: 5.85, end: 5.95 }, + { text: "drop.", start: 5.95, end: 6.25 }, + { text: "Just", start: 6.35, end: 6.55 }, + { text: "code", start: 6.55, end: 6.8 }, + { text: "that", start: 6.8, end: 6.95 }, + { text: "becomes", start: 6.95, end: 7.3 }, + { text: "cinema.", start: 7.3, end: 7.7 }, ]; // behind=red 3D emphasis words, front=normal white words var BLOCKS = [ - { behind: null, front: [[0],[1],[2]] }, - { behind: [[3]], front: [[4],[5]] }, - { behind: [[6]], front: [[7]] }, - { behind: [[8]], front: [[9],[10],[11]] }, - { behind: [[12]], front: [[13],[14]] }, - { behind: [[15]], front: [[16]] }, - { behind: null, front: [[17],[18]] }, - { behind: null, front: [[19],[20],[21],[22]] }, - { behind: [[24]], front: [[23],[25],[26]] }, - { behind: [[27]], front: null }, + { behind: null, front: [[0], [1], [2]] }, + { behind: [[3]], front: [[4], [5]] }, + { behind: [[6]], front: [[7]] }, + { behind: [[8]], front: [[9], [10], [11]] }, + { behind: [[12]], front: [[13], [14]] }, + { behind: [[15]], front: [[16]] }, + { behind: null, front: [[17], [18]] }, + { behind: null, front: [[19], [20], [21], [22]] }, + { behind: [[24]], front: [[23], [25], [26]] }, + { behind: [[27]], front: null }, ]; var behindStage = document.getElementById("behind-stage"); @@ -259,8 +266,12 @@ frontStage.appendChild(fEl); }); - var allBehind = BLOCKS.map(function (_, i) { return document.getElementById("bb" + i); }); - var allFront = BLOCKS.map(function (_, i) { return document.getElementById("fb" + i); }); + var allBehind = BLOCKS.map(function (_, i) { + return document.getElementById("bb" + i); + }); + var allFront = BLOCKS.map(function (_, i) { + return document.getElementById("fb" + i); + }); function applyBehindScales() { BLOCKS.forEach(function (block, bi) { @@ -293,8 +304,12 @@ var bEl = allBehind[bi]; var fEl = allFront[bi]; - allBehind.forEach(function (other, oi) { if (oi !== bi) tl.set(other, { opacity: 0 }, start); }); - allFront.forEach(function (other, oi) { if (oi !== bi) tl.set(other, { opacity: 0 }, start); }); + allBehind.forEach(function (other, oi) { + if (oi !== bi) tl.set(other, { opacity: 0 }, start); + }); + allFront.forEach(function (other, oi) { + if (oi !== bi) tl.set(other, { opacity: 0 }, start); + }); if (block.behind) { tl.set(bEl, { opacity: 1 }, start); @@ -323,7 +338,9 @@ tl.to({}, { duration: DURATION }, 0); window.__timelines["parallax-layers"] = tl; - document.fonts.ready.then(function () { applyBehindScales(); }); + document.fonts.ready.then(function () { + applyBehindScales(); + }); diff --git a/registry/components/caption-parallax-layers/demo.html b/registry/components/caption-parallax-layers/demo.html index f94731714..95bbafb5f 100644 --- a/registry/components/caption-parallax-layers/demo.html +++ b/registry/components/caption-parallax-layers/demo.html @@ -6,7 +6,10 @@ Parallax Layers - + @@ -175,48 +182,48 @@ var SLIDE_DUR = 0.2; var W = [ - {text:"Every", start:0.0, end:0.3}, - {text:"great", start:0.3, end:0.55}, - {text:"video", start:0.55, end:0.85}, - {text:"starts", start:0.85, end:1.1}, - {text:"with", start:1.1, end:1.25}, - {text:"a", start:1.25, end:1.35}, - {text:"single", start:1.35, end:1.65}, - {text:"frame.", start:1.65, end:2.0}, - {text:"HyperFrames", start:2.1, end:2.65}, - {text:"lets", start:2.65, end:2.85}, - {text:"you", start:2.85, end:2.95}, - {text:"write", start:2.95, end:3.15}, - {text:"HTML", start:3.15, end:3.55}, - {text:"and", start:3.55, end:3.65}, - {text:"render", start:3.65, end:3.95}, - {text:"professional",start:3.95, end:4.45}, - {text:"video.", start:4.45, end:4.8}, - {text:"No", start:4.9, end:5.05}, - {text:"timeline.", start:5.05, end:5.45}, - {text:"No", start:5.5, end:5.65}, - {text:"drag", start:5.65, end:5.85}, - {text:"and", start:5.85, end:5.95}, - {text:"drop.", start:5.95, end:6.25}, - {text:"Just", start:6.35, end:6.55}, - {text:"code", start:6.55, end:6.8}, - {text:"that", start:6.8, end:6.95}, - {text:"becomes", start:6.95, end:7.3}, - {text:"cinema.", start:7.3, end:7.7} + { text: "Every", start: 0.0, end: 0.3 }, + { text: "great", start: 0.3, end: 0.55 }, + { text: "video", start: 0.55, end: 0.85 }, + { text: "starts", start: 0.85, end: 1.1 }, + { text: "with", start: 1.1, end: 1.25 }, + { text: "a", start: 1.25, end: 1.35 }, + { text: "single", start: 1.35, end: 1.65 }, + { text: "frame.", start: 1.65, end: 2.0 }, + { text: "HyperFrames", start: 2.1, end: 2.65 }, + { text: "lets", start: 2.65, end: 2.85 }, + { text: "you", start: 2.85, end: 2.95 }, + { text: "write", start: 2.95, end: 3.15 }, + { text: "HTML", start: 3.15, end: 3.55 }, + { text: "and", start: 3.55, end: 3.65 }, + { text: "render", start: 3.65, end: 3.95 }, + { text: "professional", start: 3.95, end: 4.45 }, + { text: "video.", start: 4.45, end: 4.8 }, + { text: "No", start: 4.9, end: 5.05 }, + { text: "timeline.", start: 5.05, end: 5.45 }, + { text: "No", start: 5.5, end: 5.65 }, + { text: "drag", start: 5.65, end: 5.85 }, + { text: "and", start: 5.85, end: 5.95 }, + { text: "drop.", start: 5.95, end: 6.25 }, + { text: "Just", start: 6.35, end: 6.55 }, + { text: "code", start: 6.55, end: 6.8 }, + { text: "that", start: 6.8, end: 6.95 }, + { text: "becomes", start: 6.95, end: 7.3 }, + { text: "cinema.", start: 7.3, end: 7.7 }, ]; // behind=red 3D emphasis words, front=normal white words var BLOCKS = [ - { behind: null, front: [[0],[1],[2]] }, - { behind: [[3]], front: [[4],[5]] }, - { behind: [[6]], front: [[7]] }, - { behind: [[8]], front: [[9],[10],[11]] }, - { behind: [[12]], front: [[13],[14]] }, - { behind: [[15]], front: [[16]] }, - { behind: null, front: [[17],[18]] }, - { behind: null, front: [[19],[20],[21],[22]] }, - { behind: [[24]], front: [[23],[25],[26]] }, - { behind: [[27]], front: null }, + { behind: null, front: [[0], [1], [2]] }, + { behind: [[3]], front: [[4], [5]] }, + { behind: [[6]], front: [[7]] }, + { behind: [[8]], front: [[9], [10], [11]] }, + { behind: [[12]], front: [[13], [14]] }, + { behind: [[15]], front: [[16]] }, + { behind: null, front: [[17], [18]] }, + { behind: null, front: [[19], [20], [21], [22]] }, + { behind: [[24]], front: [[23], [25], [26]] }, + { behind: [[27]], front: null }, ]; var behindStage = document.getElementById("behind-stage"); @@ -259,8 +266,12 @@ frontStage.appendChild(fEl); }); - var allBehind = BLOCKS.map(function (_, i) { return document.getElementById("bb" + i); }); - var allFront = BLOCKS.map(function (_, i) { return document.getElementById("fb" + i); }); + var allBehind = BLOCKS.map(function (_, i) { + return document.getElementById("bb" + i); + }); + var allFront = BLOCKS.map(function (_, i) { + return document.getElementById("fb" + i); + }); function applyBehindScales() { BLOCKS.forEach(function (block, bi) { @@ -293,8 +304,12 @@ var bEl = allBehind[bi]; var fEl = allFront[bi]; - allBehind.forEach(function (other, oi) { if (oi !== bi) tl.set(other, { opacity: 0 }, start); }); - allFront.forEach(function (other, oi) { if (oi !== bi) tl.set(other, { opacity: 0 }, start); }); + allBehind.forEach(function (other, oi) { + if (oi !== bi) tl.set(other, { opacity: 0 }, start); + }); + allFront.forEach(function (other, oi) { + if (oi !== bi) tl.set(other, { opacity: 0 }, start); + }); if (block.behind) { tl.set(bEl, { opacity: 1 }, start); @@ -323,7 +338,9 @@ tl.to({}, { duration: DURATION }, 0); window.__timelines["parallax-layers"] = tl; - document.fonts.ready.then(function () { applyBehindScales(); }); + document.fonts.ready.then(function () { + applyBehindScales(); + }); diff --git a/registry/components/caption-particle-burst/caption-particle-burst.html b/registry/components/caption-particle-burst/caption-particle-burst.html index cd06ba584..6664f4178 100644 --- a/registry/components/caption-particle-burst/caption-particle-burst.html +++ b/registry/components/caption-particle-burst/caption-particle-burst.html @@ -6,47 +6,87 @@ Particle Burst - + @@ -60,153 +100,193 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-particle-burst/demo.html b/registry/components/caption-particle-burst/demo.html index cd06ba584..6664f4178 100644 --- a/registry/components/caption-particle-burst/demo.html +++ b/registry/components/caption-particle-burst/demo.html @@ -6,47 +6,87 @@ Particle Burst - + @@ -60,153 +100,193 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-pill-karaoke/caption-pill-karaoke.html b/registry/components/caption-pill-karaoke/caption-pill-karaoke.html index 1e439742a..5cca10c90 100644 --- a/registry/components/caption-pill-karaoke/caption-pill-karaoke.html +++ b/registry/components/caption-pill-karaoke/caption-pill-karaoke.html @@ -6,7 +6,10 @@ Pill Karaoke - + @@ -84,89 +109,101 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-texture-lava/demo.html b/registry/components/caption-texture-lava/demo.html index 212240d2c..26d79304d 100644 --- a/registry/components/caption-texture-lava/demo.html +++ b/registry/components/caption-texture-lava/demo.html @@ -25,25 +25,46 @@ mask-image: url("/assets/texture-mask-text/masks/lava.png"); } - *, *::before, *::after { box-sizing: border-box; } - html, body { - width: 1920px; height: 1080px; margin: 0; - overflow: hidden; background: #0a0805; + *, + *::before, + *::after { + box-sizing: border-box; + } + html, + body { + width: 1920px; + height: 1080px; + margin: 0; + overflow: hidden; + background: #0a0805; } #texture-lava { - position: relative; width: 1920px; height: 1080px; - overflow: hidden; background: #0a0805; + position: relative; + width: 1920px; + height: 1080px; + overflow: hidden; + background: #0a0805; } #lv-video { - position: absolute; inset: 0; z-index: 0; - width: 100%; height: 100%; object-fit: cover; + position: absolute; + inset: 0; + z-index: 0; + width: 100%; + height: 100%; + object-fit: cover; } .lv-overlay { - position: absolute; inset: 0; - background: rgba(0,0,0,0.55); z-index: 1; pointer-events: none; + position: absolute; + inset: 0; + background: rgba(0, 0, 0, 0.55); + z-index: 1; + pointer-events: none; } #lv-container { - position: absolute; inset: 0; z-index: 10; pointer-events: none; + position: absolute; + inset: 0; + z-index: 10; + pointer-events: none; } /* Lava-specific overrides for texture mask */ @@ -59,18 +80,22 @@ .lv-shadow { position: absolute; - left: 0; width: 100%; text-align: center; + left: 0; + width: 100%; + text-align: center; top: 50%; - filter: drop-shadow(0 4px 24px rgba(255,100,20,0.55)); - opacity: 0; visibility: hidden; + filter: drop-shadow(0 4px 24px rgba(255, 100, 20, 0.55)); + opacity: 0; + visibility: hidden; } .lv-word { - font-family: 'Anton', sans-serif; + font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; - color: #FFD0A0; + color: #ffd0a0; display: inline-block; - letter-spacing: 0.04em; line-height: 1; + letter-spacing: 0.04em; + line-height: 1; } @@ -84,89 +109,101 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-typewriter/caption-typewriter.html b/registry/components/caption-typewriter/caption-typewriter.html index 5df7d240a..e1f63bef2 100644 --- a/registry/components/caption-typewriter/caption-typewriter.html +++ b/registry/components/caption-typewriter/caption-typewriter.html @@ -6,49 +6,87 @@ Typewriter - + @@ -63,119 +101,126 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-typewriter/demo.html b/registry/components/caption-typewriter/demo.html index 5df7d240a..e1f63bef2 100644 --- a/registry/components/caption-typewriter/demo.html +++ b/registry/components/caption-typewriter/demo.html @@ -6,49 +6,87 @@ Typewriter - + @@ -63,119 +101,126 @@ data-width="1920" data-height="1080" > - +
diff --git a/registry/components/caption-weight-shift/caption-weight-shift.html b/registry/components/caption-weight-shift/caption-weight-shift.html index 48a574fdc..020a13bec 100644 --- a/registry/components/caption-weight-shift/caption-weight-shift.html +++ b/registry/components/caption-weight-shift/caption-weight-shift.html @@ -6,7 +6,10 @@ Weight Shift - +