We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26e243e commit 3e5aeddCopy full SHA for 3e5aedd
1 file changed
src/Basic.js
@@ -1,5 +1,3 @@
1
-import { Transform } from 'stream';
2
-
3
/**
4
* Base class for creating other animations.
5
* Each custom animation must extends from this class.
@@ -16,17 +14,15 @@ import { Transform } from 'stream';
16
14
* }
17
15
* };
18
*/
19
-export default class Basic extends Transform {
20
- _options = {};
21
+export default class Basic {
22
23
* Initializes animation.
24
* Make sure that animation is disabled when instantiating.
25
*
26
* @constructor
27
28
- constructor() {
29
- super();
+ constructor(options) {
+ this._options = options;
30
31
this.disable();
32
}
0 commit comments