src/ease-animate-dom.js
function startDomAnimate(selector, animationProps, interval, onDone){
  let numberIndex = 0
  const numbersLength = animationProps[0].numbers.length
  this.isDomRunning = true
  const tick = setInterval(() => {
    animationProps.forEach(prop => {
      setStyle(selector, prop.attr, prop.numbers[numberIndex], prop.unit)
    })
    numberIndex ++
    if(numberIndex >= numbersLength) {
      clearInterval(tick)
      this.isDomRunning = false
      if (onDone) onDone()
    }
  }, interval)
}
function startDomAnimate(selector, animationProps, interval, onDone){
  let numberIndex = 0
  const numbersLength = animationProps[0].numbers.length
  this.isDomRunning = true
  const tick = setInterval(() => {
    animationProps.forEach(prop => {
      setStyle(selector, prop.attr, prop.numbers[numberIndex], prop.unit)
    })
    numberIndex ++
    if(numberIndex >= numbersLength) {
      clearInterval(tick)
      this.isDomRunning = false
      if (onDone) onDone()
    }
  }, interval)
}
function startDomAnimate ( selector , animationProps , interval , onDone ) { let numberIndex = 0 const numbersLength = animationProps [ 0 ] . numbers . length this . isDomRunning = true const tick = setInterval ( ( ) => { animationProps . forEach ( prop => { setStyle ( selector , prop . attr , prop . numbers [ numberIndex ] , prop . unit ) } ) numberIndex ++ if ( numberIndex >= numbersLength ) { clearInterval ( tick ) this . isDomRunning = false if ( onDone ) onDone ( ) } } , interval ) }
let dom animate
let dom animate