Files
o2o-weather/admin/reels/intro/compositions/s8.html
T

40 lines
3.0 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: #e3efff; color: #28304a; }
#s8-world { position: absolute; inset: 0; }
#s8-icon { position: absolute; left: 410px; top: 520px; width: 260px; height: 260px; border-radius: 60px; box-shadow: 0 24px 60px rgba(40, 48, 74, 0.28); transform-origin: 50% 50%; }
#s8-name { position: absolute; left: 0; top: 830px; width: 1080px; text-align: center; font: 400 140px/1 'Jua', sans-serif; letter-spacing: -3px; }
#s8-claim { position: absolute; left: 90px; top: 1010px; width: 900px; text-align: center; font: 800 64px/1.2 'Pretendard', sans-serif; letter-spacing: -1px; word-break: keep-all; }
#s8-claim b { color: #d4552a; }
#s8-url { position: absolute; left: 90px; top: 1125px; width: 900px; text-align: center; font: 700 58px/1.2 'Pretendard', sans-serif; letter-spacing: -1px; color: #2b6cb8; }
#s8-toss { position: absolute; left: 90px; top: 1215px; width: 900px; text-align: center; font: 600 50px/1.2 'Pretendard', sans-serif; letter-spacing: -1px; color: #546078; word-break: keep-all; }
#s8-rabbit { position: absolute; left: 90px; top: 1520px; width: 260px; }
#s8-bear { position: absolute; left: 730px; top: 1540px; width: 260px; }
</style>
<div id="root" data-composition-id="s8" data-width="1080" data-height="1920">
<div id="s8-world" class="clip" data-start="0" data-duration="3.5">
<img id="s8-icon" src="assets/img/app-icon.png" alt="" />
<h1 id="s8-name">날씨각</h1>
<p id="s8-claim">설치 없이 바로, <b>무료</b></p>
<p id="s8-url">weather.o2o.kr</p>
<p id="s8-toss">토스 앱에서 '날씨각' 검색해도 열려요</p>
<img id="s8-rabbit" src="assets/icons/rabbit.png" alt="" />
<img id="s8-bear" src="assets/icons/bear.png" alt="" />
</div>
</div>
<script>
const tl = gsap.timeline({ paused: true });
tl.fromTo("#s8-icon", { scale: 0.2, opacity: 0 }, { scale: 1, opacity: 1, duration: 0.5, ease: "back.out(1.7)" }, 0.1);
tl.fromTo("#s8-name", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 0.4);
tl.fromTo("#s8-claim", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 0.7);
tl.fromTo("#s8-url", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 1.0);
tl.fromTo("#s8-toss", { opacity: 0, filter: "blur(8px)" }, { opacity: 1, filter: "blur(0px)", duration: 0.2, ease: "power4.out" }, 1.3);
tl.fromTo(["#s8-rabbit", "#s8-bear"], { y: 240 }, { y: 0, duration: 0.6, ease: "expo.out", stagger: 0.08 }, 0.3);
// 마지막 0.6초는 정지 (마지막 프레임 유지)
tl.to({}, { duration: 0.2 }, 3.3);
window.__timelines["s8"] = tl;
</script>
</template>