本文へスキップ

TOP / MOTION LAB / その他

その他 読了目安 3分

楕円軌道

概要

複数のアイコンが楕円の軌道上を周回し、2D版と奥行き表現付きの3D版を上下で見比べられる、技術スタックやサービス群を象徴的に見せる演出。

使用技術

実装ポイント

コアスニペット

this.tl = gsap.timeline({
  repeat: -1, yoyo: true, paused: true,
  onUpdate: () => this.update(),
});
// ...
update() {
  const fx = this.val.baseFreqX + this.val.mouseFreqX;
  const fy = this.val.baseFreqY + this.val.mouseFreqY;
  const s = this.val.baseScale + this.val.mouseScale;
  this.turb.setAttribute("baseFrequency", `${fx} ${fy}`);
  this.disp.setAttribute("scale", s);
}