20 lines
1.2 KiB
HTML
20 lines
1.2 KiB
HTML
<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>
|