本文へスキップ

TOP / MOTION LAB / オープニング

オープニング 読了目安 3分

オープニング(カーテン)

概要

明るいパネルが縦12枚に分かれ、タイトル表示のあとランダムな時間差で上へ消えていき、背後のモノクロ背景ヒーローが立ち上がる、シネマティックなオープニング。

使用技術

実装ポイント

コアスニペット

// 初期は下端基準で全高、退場時は上端基準で0へ縮める
tl.set(".curtain-panel", { scaleY: 1, transformOrigin: "bottom center" });
// …タイトル退場のあと
tl.to(".curtain-panel", {
  duration: 1.2,
  scaleY: 0,
  transformOrigin: "top center",      // 上に向かって縮む
  stagger: { amount: 0.4, from: "random" },  // ランダムにバラバラと
  ease: "expo.inOut",
}, "-=0.2")
  .add(playHeroAnimation, "-=0.8");   // 上がりきる少し前からFV先行開始