59 lines
3.1 KiB
HTML
59 lines
3.1 KiB
HTML
|
|
<!doctype html>
|
||
|
|
<html><head><meta charset="UTF-8"/>
|
||
|
|
<title>Starting a Garden-Inspired Boutique</title>
|
||
|
|
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
|
||
|
|
<style>
|
||
|
|
body{margin:0;background:#f5f5dc;color:#333;font-family:Georgia,serif}
|
||
|
|
#root{position:relative;width:1920px;height:1080px;overflow:hidden}
|
||
|
|
.clip{position:absolute;inset:0;display:grid;place-items:center}
|
||
|
|
.clip img{width:100%;height:100%;object-fit:cover}
|
||
|
|
.clip h1{font-size:3rem;background:rgba(255,255,255,0.7);padding:1rem;border-radius:5px}
|
||
|
|
.clip p{font-size:1.5rem;background:rgba(255,255,255,0.7);padding:1rem;border-radius:5px}
|
||
|
|
</style></head>
|
||
|
|
<body>
|
||
|
|
<div id="root" data-composition-id="main" data-start="0" data-width="1920" data-height="1080" data-duration="60">
|
||
|
|
<audio id="bgm" src="audio/music.mp3" data-start="0" data-volume="0.15"></audio>
|
||
|
|
<audio id="voice-s1" src="audio/s1.wav" data-start="0"></audio>
|
||
|
|
<audio id="voice-s2" src="audio/s2.wav" data-start="15"></audio>
|
||
|
|
<audio id="voice-s3" src="audio/s3.wav" data-start="30"></audio>
|
||
|
|
<audio id="voice-s4" src="audio/s4.wav" data-start="45"></audio>
|
||
|
|
|
||
|
|
<section id="s1" class="clip" data-start="0" data-duration="15" data-track-index="1">
|
||
|
|
<img src="garden.jpg" alt="Garden scene">
|
||
|
|
<h1 id="s1-title">Planning Your Boutique</h1>
|
||
|
|
<p id="s1-text">Start with a clear vision and a list of products you want to create.</p>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
<section id="s2" class="clip" data-start="15" data-duration="15" data-track-index="1">
|
||
|
|
<img src="materials.jpg" alt="Materials for boutique">
|
||
|
|
<h1 id="s2-title">Sourcing Materials</h1>
|
||
|
|
<p id="s2-text">Find local suppliers for sustainable and unique materials.</p>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
<section id="s3" class="clip" data-start="30" data-duration="15" data-track-index="1">
|
||
|
|
<img src="workspace.jpg" alt="Workspace setup">
|
||
|
|
<h1 id="s3-title">Setting Up Your Workspace</h1>
|
||
|
|
<p id="s3-text">Create a functional and inspiring workspace at home.</p>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
<section id="s4" class="clip" data-start="45" data-duration="15" data-track-index="1">
|
||
|
|
<img src="products.jpg" alt="Finished products">
|
||
|
|
<h1 id="s4-title">Designing Your Products</h1>
|
||
|
|
<p id="s4-text">Focus on quality and creativity to make your products stand out.</p>
|
||
|
|
</section>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
window.__timelines = window.__timelines || {};
|
||
|
|
const tl = gsap.timeline({ paused: true });
|
||
|
|
tl.to("#s1-title", { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 0.2);
|
||
|
|
tl.to("#s1-text", { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 0.5);
|
||
|
|
tl.to("#s2-title", { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 15.2);
|
||
|
|
tl.to("#s2-text", { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 15.5);
|
||
|
|
tl.to("#s3-title", { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 30.2);
|
||
|
|
tl.to("#s3-text", { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 30.5);
|
||
|
|
tl.to("#s4-title", { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 45.2);
|
||
|
|
tl.to("#s4-text", { opacity: 1, y: 0, duration: 0.6, ease: "power3.out" }, 45.5);
|
||
|
|
window.__timelines["main"] = tl;
|
||
|
|
</script>
|
||
|
|
</body></html>
|