2018-11-14 17:32:35 +01:00
|
|
|
import EventEmitter from '../events/EventEmitter';
|
2018-10-31 17:00:31 +01:00
|
|
|
|
|
|
|
class Animate extends EventEmitter {
|
|
|
|
//--------------------------
|
|
|
|
// constructor
|
|
|
|
//--------------------------
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
//--------------------------
|
|
|
|
// methods
|
|
|
|
//--------------------------
|
|
|
|
object(properties) {
|
|
|
|
var animation = anime(
|
|
|
|
properties
|
|
|
|
);
|
|
|
|
//animation.start(properties);
|
|
|
|
}
|
|
|
|
//--------------------------
|
|
|
|
// event handlers
|
|
|
|
//--------------------------
|
|
|
|
}
|
|
|
|
export default Animate
|