kute.js/src/interface/allTo.js
thednp 933d61de19 Changes:
* added ESLint and updated all code base 
* updated SVGPathCommander, CubicBezier, shorter-js, minifill
* updated polyfills
* minor CSS fixes
2021-03-30 09:23:29 +00:00

10 lines
366 B
JavaScript

import selector from '../util/selector.js';
import TweenCollection from '../tween/tweenCollection.js';
// multiple elements tween objects
export default function allTo(elements, endObject, optionsObj) {
const options = optionsObj || {};
optionsObj.resetStart = endObject;
return new TweenCollection(selector(elements, true), endObject, endObject, options);
}