45 lines
3.4 KiB
HTML
45 lines
3.4 KiB
HTML
<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; background: #f7b27a; color: #fff; }
|
|
#s6-world { position: absolute; inset: 0; }
|
|
#s6-cam { position: absolute; inset: 0; transform-origin: 50% 50%; }
|
|
#s6-bg { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; object-fit: cover; }
|
|
#s6-hangang { position: absolute; left: 560px; top: 1080px; width: 340px; }
|
|
#s6-picnic { position: absolute; left: 110px; top: 1300px; width: 220px; }
|
|
#s6-chip { position: absolute; left: 90px; top: 560px; 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(40, 48, 74, 0.28); transform-origin: 0% 50%; }
|
|
#s6-chip img { width: 110px; height: 110px; }
|
|
#s6-chip .n { font: 800 54px/1 'Pretendard', sans-serif; letter-spacing: -1px; white-space: nowrap; }
|
|
#s6-chip .v { font: 800 92px/1 'Pretendard', sans-serif; color: #d4552a; letter-spacing: -2px; min-width: 120px; text-align: right; }
|
|
#s6-line { position: absolute; left: 90px; top: 760px; width: 900px; font: 400 76px/1.2 'Jua', sans-serif; letter-spacing: -1px; color: #28304a; text-shadow: 0 0 22px rgba(255, 255, 255, 0.85), 0 4px 14px rgba(255, 255, 255, 0.6); word-break: keep-all; }
|
|
#s6-flood { position: absolute; inset: 0; background: #e3efff; }
|
|
</style>
|
|
<div id="root" data-composition-id="s6" data-width="1080" data-height="1920">
|
|
<div id="s6-world" class="clip" data-start="0" data-duration="2">
|
|
<div id="s6-cam">
|
|
<img id="s6-bg" src="assets/bg/hangang-sunset.webp" alt="" />
|
|
<img id="s6-hangang" src="assets/icons/hangang.png" alt="" />
|
|
<img id="s6-picnic" src="assets/icons/picnic.png" alt="" />
|
|
<div id="s6-chip"><img src="assets/icons/hangang.png" alt="" /><span class="n">한강각</span><span class="v" id="s6-score">0</span></div>
|
|
<p id="s6-line">노을 보며 돗자리 딱</p>
|
|
</div>
|
|
<div id="s6-flood"></div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
const tl = gsap.timeline({ paused: true });
|
|
tl.fromTo("#s6-cam", { y: 420, filter: "blur(16px)", scale: 1.12 }, { y: 0, filter: "blur(0px)", duration: 0.25, ease: "expo.out" }, 0);
|
|
tl.to("#s6-cam", { scale: 1.06, duration: 1.5, ease: "power2.inOut" }, 0.25);
|
|
tl.fromTo("#s6-hangang", { x: 20, y: 6 }, { x: -30, y: -10, duration: 2, ease: "none" }, 0);
|
|
tl.fromTo("#s6-picnic", { x: -20 }, { x: 30, duration: 2, ease: "none" }, 0);
|
|
tl.fromTo("#s6-chip", { scale: 0.5, x: -80, opacity: 0 }, { scale: 1, x: 0, opacity: 1, duration: 0.45, ease: "back.out(1.6)" }, 0.2);
|
|
const score = { v: 0 };
|
|
tl.to(score, { v: 85, duration: 0.6, ease: "power2.out", onUpdate: () => { document.getElementById("s6-score").textContent = Math.round(score.v); } }, 0.3);
|
|
tl.fromTo("#s6-line", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 0.28);
|
|
// 브랜드 땅으로 플러드 (폰이 올라올 자리)
|
|
tl.fromTo("#s6-flood", { clipPath: "circle(0% at 50% 100%)" }, { clipPath: "circle(140% at 50% 100%)", duration: 0.3, ease: "power2.inOut" }, 1.74);
|
|
window.__timelines["s6"] = tl;
|
|
</script>
|
|
</template>
|