| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8" /> |
| 5 | <meta name="viewport" content="width=1920, height=1080" /> |
| 6 | <title>Product Promo</title> |
| 7 | <script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script> |
| 8 | <link |
| 9 | href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=block" |
| 10 | rel="stylesheet" |
| 11 | /> |
| 12 | <style> |
| 13 | * { |
| 14 | margin: 0; |
| 15 | padding: 0; |
| 16 | box-sizing: border-box; |
| 17 | } |
| 18 | html, |
| 19 | body { |
| 20 | margin: 0; |
| 21 | width: 1920px; |
| 22 | height: 1080px; |
| 23 | overflow: hidden; |
| 24 | background: #0a0a0f; |
| 25 | font-family: "Inter", sans-serif; |
| 26 | } |
| 27 | .scene { |
| 28 | position: absolute; |
| 29 | top: 0; |
| 30 | left: 0; |
| 31 | width: 100%; |
| 32 | height: 100%; |
| 33 | } |
| 34 | .caption-text-wrapper { |
| 35 | position: absolute; |
| 36 | bottom: 150px; |
| 37 | left: 0; |
| 38 | right: 0; |
| 39 | display: flex; |
| 40 | justify-content: center; |
| 41 | pointer-events: none; |
| 42 | overflow: hidden; |
| 43 | padding: 10px 0; |
| 44 | } |
| 45 | .caption-line { |
| 46 | color: white; |
| 47 | font-size: 48px; |
| 48 | font-weight: 600; |
| 49 | letter-spacing: -0.02em; |
| 50 | text-align: center; |
| 51 | text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); |
| 52 | transform: translateY(100%); |
| 53 | opacity: 0; |
| 54 | } |
| 55 | </style> |
| 56 | </head> |
| 57 | <body> |
| 58 | <div |
| 59 | id="root" |
| 60 | data-composition-id="main" |
| 61 | data-start="0" |
| 62 | data-duration="20" |
| 63 | data-width="1920" |
| 64 | data-height="1080" |
| 65 | > |
| 66 | <!-- Scene 1: Logo Intro --> |
| 67 | <div |
| 68 | id="scene-1" |
| 69 | class="scene" |
| 70 | data-composition-id="scene1-logo-intro" |
| 71 | data-composition-src="compositions/scene1-logo-intro.html" |
| 72 | data-start="0" |
| 73 | data-duration="1.5" |
| 74 | data-track-index="1" |
| 75 | data-width="1920" |
| 76 | data-height="1080" |
| 77 | ></div> |
| 78 | |
| 79 | <!-- Scene 2-4: Continuous Canvas --> |
| 80 | <div |
| 81 | id="scene-2-4" |
| 82 | class="scene" |
| 83 | data-composition-id="scene2-4-canvas" |
| 84 | data-composition-src="compositions/scene2-4-canvas.html" |
| 85 | data-start="1.5" |
| 86 | data-duration="12.5" |
| 87 | data-track-index="1" |
| 88 | data-width="1920" |
| 89 | data-height="1080" |
| 90 | ></div> |
| 91 | |
| 92 | <!-- Scene 5: Logo Outro --> |
| 93 | <div |
| 94 | id="scene-5" |
| 95 | class="scene" |
| 96 | data-composition-id="scene5-logo-outro" |
| 97 | data-composition-src="compositions/scene5-logo-outro.html" |
| 98 | data-start="14" |
| 99 | data-duration="6" |
| 100 | data-track-index="1" |
| 101 | data-width="1920" |
| 102 | data-height="1080" |
| 103 | ></div> |
| 104 | |
| 105 | <!-- Captions --> |
| 106 | <div |
| 107 | id="captions-comp" |
| 108 | data-composition-id="captions" |
| 109 | data-start="1.5" |
| 110 | data-duration="12.5" |
| 111 | data-track-index="2" |
| 112 | data-width="1920" |
| 113 | data-height="1080" |
| 114 | > |
| 115 | <div class="caption-text-wrapper"> |
| 116 | <div id="caption-text" class="caption-line">Starting with a blank canvas.</div> |
| 117 | </div> |
| 118 | |
| 119 | <script> |
| 120 | (function () { |
| 121 | const tl = gsap.timeline({ paused: true }); |
| 122 | const text = document.querySelector("#caption-text"); |
| 123 | |
| 124 | tl.to(text, { opacity: 1, y: 0, duration: 0.8, ease: "power3.out" }, 0); |
| 125 | tl.to(text, { opacity: 0, y: -20, duration: 0.3, ease: "power3.in" }, 3.2); |
| 126 | tl.set(text, { innerText: "Three cursors. One file. Zero meetings.", y: 40 }, 3.5); |
| 127 | tl.to(text, { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 3.5); |
| 128 | tl.to(text, { opacity: 0, y: -20, duration: 0.3, ease: "power3.in" }, 7.7); |
| 129 | tl.set( |
| 130 | text, |
| 131 | { innerText: "Components in. Feedback resolved. No one waited.", y: 40 }, |
| 132 | 8.0, |
| 133 | ); |
| 134 | tl.to(text, { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 8.0); |
| 135 | tl.to(text, { opacity: 0, y: -20, duration: 0.4, ease: "power3.in" }, 12.1); |
| 136 | |
| 137 | window.__timelines = window.__timelines || {}; |
| 138 | window.__timelines["captions"] = tl; |
| 139 | })(); |
| 140 | </script> |
| 141 | </div> |
| 142 | </div> |
| 143 | |
| 144 | <script> |
| 145 | window.__timelines = window.__timelines || {}; |
| 146 | const mainTl = gsap.timeline({ paused: true }); |
| 147 | |
| 148 | mainTl.set("#scene-2-4", { scale: 1, filter: "blur(0px)" }, 1.5); |
| 149 | mainTl.to( |
| 150 | "#scene-2-4", |
| 151 | { duration: 0.25, scale: 0.94, filter: "blur(6px)", opacity: 0, ease: "power2.in" }, |
| 152 | 13.75, |
| 153 | ); |
| 154 | |
| 155 | window.__timelines["main"] = mainTl; |
| 156 | </script> |
| 157 | </body> |
| 158 | </html> |
| 159 |