format as

    animate([
      {first-frame},
      {second-frame},
    ], {
      duration: 1000,
      iterations: Infinity,
    })