src/index.js
function setTargetsValue(targets, properties) {
  const animatables = getAnimatables(targets);
  animatables.forEach(animatable => {
    for (let property in properties) {
      const value = getFunctionValue(properties[property], animatable);
      const target = animatable.target;
      const valueUnit = getUnit(value);
      const originalValue = getOriginalTargetValue(target, property, valueUnit, animatable);
      const unit = valueUnit || getUnit(originalValue);
      const to = getRelativeValue(validateValue(value, unit), originalValue);
      const animType = getAnimationType(target, property);
      setProgressValue[animType](target, property, to, animatable.transforms, true);
    }
  });
}
function setTargetsValue(targets, properties) {
  const animatables = getAnimatables(targets);
  animatables.forEach(animatable => {
    for (let property in properties) {
      const value = getFunctionValue(properties[property], animatable);
      const target = animatable.target;
      const valueUnit = getUnit(value);
      const originalValue = getOriginalTargetValue(target, property, valueUnit, animatable);
      const unit = valueUnit || getUnit(originalValue);
      const to = getRelativeValue(validateValue(value, unit), originalValue);
      const animType = getAnimationType(target, property);
      setProgressValue[animType](target, property, to, animatable.transforms, true);
    }
  });
}
function setTargetsValue ( targets , properties ) { const animatables = getAnimatables ( targets ) ; animatables . forEach ( animatable => { for ( let property in properties ) { const value = getFunctionValue ( properties [ property ] , animatable ) ; const target = animatable . target ; const valueUnit = getUnit ( value ) ; const originalValue = getOriginalTargetValue ( target , property , valueUnit , animatable ) ; const unit = valueUnit || getUnit ( originalValue ) ; const to = getRelativeValue ( validateValue ( value , unit ) , originalValue ) ; const animType = getAnimationType ( target , property ) ; setProgressValue [ animType ] ( target , property , to , animatable . transforms , true ) ; } } ) ; }
Set Value helper
Set Value helper