wip experimenting with values

This commit is contained in:
Mashy 2019-11-28 16:54:37 +10:00
parent e78a502a40
commit 63028fe297
4 changed files with 6 additions and 7 deletions

View File

@ -40,7 +40,7 @@
.combat-text {
left: 15%;
top: 0%;
top: 20%;
}
}
@ -219,7 +219,7 @@
}
&.ko-transition {
animation: target-ko 1.1s ease-in-out 0s 1;
animation: target-ko 1.3s ease-in-out 0s 1;
}
&.ko {

View File

@ -19,7 +19,7 @@ const addState = connect(
);
class ConstructAvatar extends Component {
constructor(props) {
constructor() {
super();
// The animation ids are a check to ensure that animations are not repeated
// When a new construct animation is communicated with state it will have a corresponding Id

View File

@ -26,10 +26,9 @@ class combatText extends preact.Component {
anime({
targets: '.combat-text',
top: '40%',
duration: TIMES.POST_SKILL_DURATION_MS,
duration: TIMES.POST_SKILL_DURATION_MS - 500,
easing: 'easeOutQuad',
});
console.log('grep');
}
}

View File

@ -3,7 +3,7 @@ const preact = require('preact');
const SOURCE_DURATION_MS = 1000; // Time for SOURCE ONLY
const TARGET_DELAY_MS = 500; // Used for Source + Target
const TARGET_DURATION_MS = 1500; // Time for TARGET ONLY
const POST_SKILL_DURATION_MS = 1100; // Time for all POST
const POST_SKILL_DURATION_MS = 1300; // Time for all POST
const SOURCE_AND_TARGET_TOTAL_DURATION = TARGET_DELAY_MS + TARGET_DURATION_MS; // SOURCE + TARGET time
module.exports = {