feat: 3D 소개 릴스(intro3d) — test-design/weather 디오라마(Three.js 섬·구름·아이콘)를 HyperFrames로, 브랜드 색 하늘 돔, 글 오버레이 6장면; 폰 베젤 띠 제거

This commit is contained in:
minaChoi committed 2026-10-24 20:04:31 +09:00
1 parent 1e4426f133
commit 615dd27404
63 files changed
+562 -2

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<template>
<style>
@font-face { font-family: 'Jua'; src: url('assets/fonts/Jua-Regular.ttf'); }
#root { position: absolute; inset: 0; overflow: hidden; }
#o1-title { position: absolute; left: 90px; top: 300px; width: 900px; margin: 0; font: 400 120px/1.18 'Jua', sans-serif; letter-spacing: -2px; color: #28304a; text-shadow: 0 0 22px rgba(255, 255, 255, 0.9), 0 4px 14px rgba(255, 255, 255, 0.7); word-break: keep-all; }
#o1-title .w { display: inline-block; margin-right: 0.22em; }
</style>
<div id="root" data-composition-id="o1" data-width="1080" data-height="1920">
<div id="o1-world" class="clip" data-start="0" data-duration="3">
<h1 id="o1-title"><span class="w">오늘</span><span class="w">뭐</span><span class="w">하기</span><br /><span class="w">좋은</span><span class="w">날이지?</span></h1>
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
tl.fromTo("#o1-title .w", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.13, ease: "power4.out", stagger: 0.07 }, 0.05);
tl.to("#o1-title", { y: -120, opacity: 0, filter: "blur(10px)", duration: 0.25, ease: "power3.in" }, 2.7);
window.__timelines["o1"] = tl;
</script>
</template>
+30
View File
@@ -0,0 +1,30 @@
<template>
<style>
@font-face { font-family: 'Jua'; src: url('assets/fonts/Jua-Regular.ttf'); }
@font-face { font-family: 'Pretendard'; src: url('assets/fonts/PretendardVariable.woff2'); font-weight: 100 900; }
#root { position: absolute; inset: 0; overflow: hidden; }
#o2-shade { position: absolute; left: 0; top: 0; width: 1080px; height: 980px; background: linear-gradient(180deg, rgba(20, 26, 50, 0.5) 0%, rgba(20, 26, 50, 0.25) 55%, rgba(20, 26, 50, 0) 100%); }
.o2-chip { position: absolute; padding: 18px 40px; border-radius: 28px; background: #fff; color: #28304a; font: 800 60px/1 'Pretendard', sans-serif; letter-spacing: -1px; box-shadow: 0 10px 30px rgba(40, 48, 74, 0.25); white-space: nowrap; }
#o2-c1 { left: 90px; top: 380px; }
#o2-c2 { left: 330px; top: 520px; }
#o2-c3 { left: 150px; top: 660px; }
#o2-ask { position: absolute; left: 90px; top: 960px; width: 900px; margin: 0; font: 400 112px/1.18 'Jua', sans-serif; letter-spacing: -2px; color: #fff; text-shadow: 0 6px 22px rgba(20, 26, 50, 0.6); word-break: keep-all; }
#o2-ask .w { display: inline-block; margin-right: 0.22em; }
</style>
<div id="root" data-composition-id="o2" data-width="1080" data-height="1920">
<div id="o2-shade" aria-hidden="true" data-layout-ignore></div>
<div id="o2-world" class="clip" data-start="0" data-duration="3">
<div id="o2-c1" class="o2-chip">흐림</div>
<div id="o2-c2" class="o2-chip">19°</div>
<div id="o2-c3" class="o2-chip">습도 70%</div>
<h1 id="o2-ask"><span class="w">…그래서</span><br /><span class="w">오늘</span><span class="w">뭐</span><span class="w">하죠?</span></h1>
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
tl.fromTo(["#o2-c1", "#o2-c2", "#o2-c3"], { y: -220, scale: 0.6, opacity: 0 }, { y: 0, scale: 1, opacity: 1, duration: 0.45, ease: "back.out(1.6)", stagger: 0.1 }, 0.2);
tl.fromTo("#o2-ask .w", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.13, ease: "power4.out", stagger: 0.07 }, 1.1);
tl.to(["#o2-c1", "#o2-c2", "#o2-c3", "#o2-ask"], { opacity: 0, filter: "blur(8px)", duration: 0.25, ease: "power3.in" }, 2.7);
window.__timelines["o2"] = tl;
</script>
</template>
+29
View File
@@ -0,0 +1,29 @@
<template>
<style>
@font-face { font-family: 'Jua'; src: url('assets/fonts/Jua-Regular.ttf'); }
@font-face { font-family: 'Pretendard'; src: url('assets/fonts/PretendardVariable.woff2'); font-weight: 100 900; }
#root { position: absolute; inset: 0; overflow: hidden; }
#o3-shade { position: absolute; left: 0; top: 0; width: 1080px; height: 980px; background: linear-gradient(180deg, rgba(20, 26, 50, 0.5) 0%, rgba(20, 26, 50, 0.25) 55%, rgba(20, 26, 50, 0) 100%); }
#o3-icon { position: absolute; left: 400px; top: 420px; width: 280px; height: 280px; border-radius: 64px; box-shadow: 0 24px 60px rgba(20, 26, 50, 0.35); transform-origin: 50% 50%; }
#o3-name { position: absolute; left: 0; top: 760px; width: 1080px; margin: 0; text-align: center; font: 400 150px/1 'Jua', sans-serif; letter-spacing: -3px; color: #fff; text-shadow: 0 8px 28px rgba(20, 26, 50, 0.55); }
#o3-name .l { display: inline-block; }
#o3-sub { position: absolute; left: 90px; top: 950px; width: 900px; margin: 0; text-align: center; font: 700 56px/1.3 'Pretendard', sans-serif; letter-spacing: -1px; color: #fff; text-shadow: 0 4px 18px rgba(20, 26, 50, 0.6); word-break: keep-all; }
#o3-sub b { color: #ffb48a; font-weight: 800; }
</style>
<div id="root" data-composition-id="o3" data-width="1080" data-height="1920">
<div id="o3-shade" aria-hidden="true" data-layout-ignore></div>
<div id="o3-world" class="clip" data-start="0" data-duration="2.5">
<img id="o3-icon" src="assets/img/app-icon.png" alt="" />
<h1 id="o3-name"><span class="l">날</span><span class="l">씨</span><span class="l">각</span></h1>
<p id="o3-sub">날씨를 <b>할 일</b>로 바꿔요</p>
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
tl.fromTo("#o3-icon", { scale: 0.2, opacity: 0 }, { scale: 1, opacity: 1, duration: 0.5, ease: "back.out(1.7)" }, 0.1);
tl.fromTo("#o3-name .l", { opacity: 0, filter: "blur(6px)", y: 14 }, { opacity: 1, filter: "blur(0px)", y: 0, duration: 0.2, ease: "power4.out", stagger: 0.1 }, 0.4);
tl.fromTo("#o3-sub", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 0.55);
tl.to(["#o3-icon", "#o3-name", "#o3-sub"], { opacity: 0, y: -60, filter: "blur(8px)", duration: 0.25, ease: "power3.in" }, 2.3);
window.__timelines["o3"] = tl;
</script>
</template>
+43
View File
@@ -0,0 +1,43 @@
<template>
<style>
@font-face { font-family: 'Jua'; src: url('assets/fonts/Jua-Regular.ttf'); }
@font-face { font-family: 'Pretendard'; src: url('assets/fonts/PretendardVariable.woff2'); font-weight: 100 900; }
#root { position: absolute; inset: 0; overflow: hidden; }
#o4-shade { position: absolute; left: 0; top: 0; width: 1080px; height: 980px; background: linear-gradient(180deg, rgba(20, 26, 50, 0.5) 0%, rgba(20, 26, 50, 0.25) 55%, rgba(20, 26, 50, 0) 100%); }
.o4-chip { position: absolute; left: 90px; top: 300px; display: flex; align-items: center; gap: 22px; padding: 22px 40px 22px 24px; border-radius: 32px; background: #fff; color: #28304a; box-shadow: 0 12px 34px rgba(20, 26, 50, 0.3); transform-origin: 0% 50%; }
.o4-chip img { width: 110px; height: 110px; }
.o4-chip .n { font: 800 54px/1 'Pretendard', sans-serif; letter-spacing: -1px; white-space: nowrap; }
.o4-chip .v { font: 800 92px/1 'Pretendard', sans-serif; color: #d4552a; letter-spacing: -2px; min-width: 120px; text-align: right; }
.o4-line { position: absolute; left: 90px; top: 500px; width: 900px; margin: 0; font: 400 76px/1.2 'Jua', sans-serif; letter-spacing: -1px; color: #fff; text-shadow: 0 6px 22px rgba(20, 26, 50, 0.6); word-break: keep-all; }
#o4-head { position: absolute; left: 90px; top: 210px; margin: 0; font: 700 44px/1 'Pretendard', sans-serif; color: #fff; text-shadow: 0 3px 12px rgba(20, 26, 50, 0.6); }
</style>
<div id="root" data-composition-id="o4" data-width="1080" data-height="1920">
<div id="o4-shade" aria-hidden="true" data-layout-ignore></div>
<div id="o4-world" class="clip" data-start="0" data-duration="6">
<p id="o4-head">오늘 서울 · 실제 점수</p>
<div id="o4-c1" class="o4-chip"><img src="assets/icons/walk.png" alt="" /><span class="n">산책각</span><span class="v" id="o4-v1">0</span></div>
<p id="o4-l1" class="o4-line">숲길 산책 딱 좋은 날</p>
<div id="o4-c2" class="o4-chip"><img src="assets/icons/camping.png" alt="" /><span class="n">캠핑각</span><span class="v" id="o4-v2">0</span></div>
<p id="o4-l2" class="o4-line">텐트 치고 모닥불 딱</p>
<div id="o4-c3" class="o4-chip"><img src="assets/icons/hangang.png" alt="" /><span class="n">한강각</span><span class="v" id="o4-v3">0</span></div>
<p id="o4-l3" class="o4-line">노을 보며 돗자리 딱</p>
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
const beat = (chip, line, vid, value, t0) => {
tl.fromTo(chip, { scale: 0.5, x: -80, opacity: 0 }, { scale: 1, x: 0, opacity: 1, duration: 0.45, ease: "back.out(1.6)" }, t0);
const s = { v: 0 };
tl.to(s, { v: value, duration: 0.6, ease: "power2.out", onUpdate: () => { document.getElementById(vid).textContent = Math.round(s.v); } }, t0 + 0.1);
tl.fromTo(line, { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, t0 + 0.25);
tl.to([chip, line], { opacity: 0, y: -40, filter: "blur(8px)", duration: 0.2, ease: "power3.in" }, t0 + 1.78);
};
tl.fromTo("#o4-head", { opacity: 0 }, { opacity: 1, duration: 0.2 }, 0.1);
// 2026-10-24 서울 중구 API 점수
beat("#o4-c1", "#o4-l1", "o4-v1", 79, 0.3);
beat("#o4-c2", "#o4-l2", "o4-v2", 75, 2.3);
beat("#o4-c3", "#o4-l3", "o4-v3", 84, 4.3);
tl.to("#o4-head", { opacity: 0, duration: 0.2 }, 5.75);
window.__timelines["o4"] = tl;
</script>
</template>
+31
View File
@@ -0,0 +1,31 @@
<template>
<style>
@font-face { font-family: 'Jua'; src: url('assets/fonts/Jua-Regular.ttf'); }
@font-face { font-family: 'Pretendard'; src: url('assets/fonts/PretendardVariable.woff2'); font-weight: 100 900; }
#root { position: absolute; inset: 0; overflow: hidden; }
#o5-title { position: absolute; left: 90px; top: 230px; width: 900px; margin: 0; font: 400 112px/1.18 'Jua', sans-serif; letter-spacing: -2px; color: #fff; text-shadow: 0 6px 22px rgba(20, 26, 50, 0.6); word-break: keep-all; }
#o5-title .w { display: inline-block; margin-right: 0.22em; }
#o5-note { position: absolute; left: 90px; top: 500px; margin: 0; font: 600 36px/1 'Pretendard', sans-serif; color: #dfe6ff; }
#o5-phone { position: absolute; left: 180px; top: 560px; width: 720px; height: 1500px; box-sizing: border-box; border: 12px solid #28304a; border-radius: 88px; background: #28304a; box-shadow: 0 30px 70px rgba(10, 14, 40, 0.5); overflow: hidden; }
#o5-phone img { display: block; width: 696px; height: auto; max-width: none; border-radius: 76px; }
#o5-chip { position: absolute; left: 560px; top: 480px; padding: 18px 36px; border-radius: 28px; background: #d4552a; color: #fff; font: 800 56px/1 'Pretendard', sans-serif; letter-spacing: -1px; box-shadow: 0 12px 34px rgba(212, 85, 42, 0.35); white-space: nowrap; transform-origin: 50% 50%; z-index: 2; }
</style>
<div id="root" data-composition-id="o5" data-width="1080" data-height="1920">
<div id="o5-world" class="clip" data-start="0" data-duration="3" data-layout-allow-overlap>
<h1 id="o5-title"><span class="w">지금</span><span class="w">내</span><span class="w">동네</span><br /><span class="w">1위는?</span></h1>
<p id="o5-note">실제 화면 · 10.24 마포구</p>
<div id="o5-phone"><img src="assets/img/shot-home.webp" alt="날씨각 홈 화면" /></div>
<div id="o5-chip">68가지 각</div>
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
tl.fromTo("#o5-phone", { y: 1400 }, { y: 0, duration: 0.7, ease: "power4.out" }, 0.05);
tl.fromTo("#o5-title .w", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.13, ease: "power4.out", stagger: 0.07 }, 0.4);
tl.fromTo("#o5-note", { opacity: 0 }, { opacity: 1, duration: 0.2 }, 0.6);
tl.fromTo("#o5-chip", { scale: 0.4, opacity: 0, rotate: -8 }, { scale: 1, opacity: 1, rotate: -6, duration: 0.45, ease: "back.out(1.6)" }, 1.2);
tl.to("#o5-phone", { y: 1500, duration: 0.3, ease: "power3.in" }, 2.7);
tl.to(["#o5-title", "#o5-chip", "#o5-note"], { opacity: 0, filter: "blur(8px)", duration: 0.2, ease: "power3.in" }, 2.75);
window.__timelines["o5"] = tl;
</script>
</template>
+37
View File
@@ -0,0 +1,37 @@
<template>
<style>
@font-face { font-family: 'Jua'; src: url('assets/fonts/Jua-Regular.ttf'); }
@font-face { font-family: 'Pretendard'; src: url('assets/fonts/PretendardVariable.woff2'); font-weight: 100 900; }
#root { position: absolute; inset: 0; overflow: hidden; }
#o6-icon { position: absolute; left: 410px; top: 520px; width: 260px; height: 260px; border-radius: 60px; box-shadow: 0 24px 60px rgba(10, 14, 40, 0.5); transform-origin: 50% 50%; }
#o6-name { position: absolute; left: 0; top: 830px; width: 1080px; margin: 0; text-align: center; font: 400 140px/1 'Jua', sans-serif; letter-spacing: -3px; color: #fff; text-shadow: 0 8px 28px rgba(10, 14, 40, 0.6); }
#o6-claim { position: absolute; left: 90px; top: 1010px; width: 900px; margin: 0; text-align: center; font: 800 64px/1.2 'Pretendard', sans-serif; letter-spacing: -1px; color: #fff; text-shadow: 0 4px 18px rgba(10, 14, 40, 0.6); word-break: keep-all; }
#o6-claim b { color: #ffb48a; }
#o6-url { position: absolute; left: 90px; top: 1125px; width: 900px; margin: 0; text-align: center; font: 700 58px/1.2 'Pretendard', sans-serif; letter-spacing: -1px; color: #9ecbff; text-shadow: 0 4px 18px rgba(10, 14, 40, 0.6); }
#o6-toss { position: absolute; left: 90px; top: 1215px; width: 900px; margin: 0; text-align: center; font: 600 50px/1.2 'Pretendard', sans-serif; letter-spacing: -1px; color: #dfe6ff; text-shadow: 0 4px 18px rgba(10, 14, 40, 0.6); word-break: keep-all; }
#o6-rabbit { position: absolute; left: 90px; top: 1520px; width: 260px; }
#o6-bear { position: absolute; left: 730px; top: 1540px; width: 260px; }
</style>
<div id="root" data-composition-id="o6" data-width="1080" data-height="1920">
<div id="o6-world" class="clip" data-start="0" data-duration="3.5">
<img id="o6-icon" src="assets/img/app-icon.png" alt="" />
<h1 id="o6-name">날씨각</h1>
<p id="o6-claim">설치 없이 바로, <b>무료</b></p>
<p id="o6-url">weather.o2o.kr</p>
<p id="o6-toss">토스 앱에서 '날씨각' 검색해도 열려요</p>
<img id="o6-rabbit" src="assets/icons/rabbit.png" alt="" />
<img id="o6-bear" src="assets/icons/bear.png" alt="" />
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
tl.fromTo("#o6-icon", { scale: 0.2, opacity: 0 }, { scale: 1, opacity: 1, duration: 0.5, ease: "back.out(1.7)" }, 0.1);
tl.fromTo("#o6-name", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 0.4);
tl.fromTo("#o6-claim", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 0.7);
tl.fromTo("#o6-url", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 1.0);
tl.fromTo("#o6-toss", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 1.3);
tl.fromTo(["#o6-rabbit", "#o6-bear"], { y: 240 }, { y: 0, duration: 0.6, ease: "expo.out", stagger: 0.08 }, 0.3);
tl.to({}, { duration: 0.2 }, 3.3);
window.__timelines["o6"] = tl;
</script>
</template>