avery-sherman-site/films/spacex-tesla/index.html
2026-08-18 11:32:31 +00:00

29 lines
1.4 KiB
HTML

<!doctype html>
<html><head><meta charset="UTF-8"/>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
<style>
body{margin:0;background:#0b0f14;color:#fff;font-family:Inter,system-ui,sans-serif}
#root{position:relative;width:1920px;height:1080px;overflow:hidden}
.clip{position:absolute;inset:0;display:grid;place-items:center}
</style></head>
<body>
<div id="root" data-composition-id="main" data-start="0" data-width="1920" data-height="1080" data-duration="60">
<section id="s1" class="clip" data-start="0" data-duration="20" data-track-index="1">
<h1 id="s1-title">SpaceX Falcon Heavy</h1>
</section>
<section id="s2" class="clip" data-start="20" data-duration="20" data-track-index="1">
<h1 id="s2-title">Tesla Roadster Flying Car</h1>
</section>
<section id="s3" class="clip" data-start="40" data-duration="20" data-track-index="1">
<h1 id="s3-title">Future of Transportation</h1>
</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.from("#s2-title", { scale: 1.06, duration: 4, ease: "power1.out" }, 20.5);
tl.from("#s3-title", { scale: 1.06, duration: 4, ease: "power1.out" }, 40.5);
window.__timelines["main"] = tl;
</script>
</body></html>