Portfolio BLog: C5log

実践サンプル(修正パターン)

再生・逆再生を使った
ハンバーガーメニュー

Lottieアニメーションの読み込みが完了したら、再生フレーム範囲を指定する

const animation = lottie.loadAnimation({
  // 省略
});

// 追加ここから
animation.addEventListener("data_ready", ()=> {
  animation.playSegments([15, 56], true);
  animation.stop();
});
// 追加ここまで