kute.js/src/interface/allTo.js

10 lines
366 B
JavaScript
Raw Normal View History

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);
}