31 lines
2.2 KiB
HTML
31 lines
2.2 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; }
|
|
#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>
|