This commit is contained in:
ntr
2019-07-01 14:53:27 +10:00
parent ed0eb2038c
commit beb40da7fe
3 changed files with 11 additions and 4 deletions
+7 -4
View File
@@ -2,7 +2,10 @@ const preact = require('preact');
const { Component } = require('preact');
const anime = require('animejs').default;
const { TIMES } = require('../../constants');
const {
TIMES,
COLOURS,
} = require('../../constants');
class Curse extends Component {
constructor() {
@@ -38,10 +41,10 @@ class Curse extends Component {
this.animations.push(anime({
targets: ['#curse'],
scale: [0.5, 0.8],
strokeWidth: 0,
strokeWidth: [8, 0],
easing: 'easeInOutSine',
direction: 'alternate',
duration: TIMES.START_SKILL,
// delay: TIMES.TARGET_DELAY_MS,
duration: TIMES.TARGET_DURATION_MS,
}));
}
+2
View File
@@ -37,6 +37,8 @@ class Haste extends Component {
);
}
// transform: ['translate(0 0)', 'translate(0 -100)']
componentDidMount() {
this.animations.push(anime({
targets: ['#haste'],