933d61de19
* added ESLint and updated all code base * updated SVGPathCommander, CubicBezier, shorter-js, minifill * updated polyfills * minor CSS fixes
9 lines
331 B
JavaScript
9 lines
331 B
JavaScript
import selector from '../util/selector.js';
|
|
import connect from '../objects/connect.js';
|
|
|
|
export default function fromTo(element, startObject, endObject, optionsObj) {
|
|
const options = optionsObj || {};
|
|
const TweenConstructor = connect.tween;
|
|
return new TweenConstructor(selector(element), startObject, endObject, options);
|
|
}
|