if (options.reverse) {
    elem.style.opacity = max - vanish
  } else {
    elem.style.opacity = min + vanish
  }