2021-03-30 11:23:29 +02:00
|
|
|
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);
|
|
|
|
}
|