reflow = element => {
    element.offsetHeight; // eslint-disable-line no-unused-expressions
  }
Trick to restart an element's animation

@param {HTMLElement} element
@return void

@see https://www.harrytheo.com/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation