Merge branch 'develop' of ssh://git.mnml.gg:40022/~/mnml into develop
This commit is contained in:
commit
e98235f6f9
@ -1,11 +1,12 @@
|
||||
const anime = require('animejs').default;
|
||||
|
||||
function wiggle(id, idle) {
|
||||
if (!idle) return true;
|
||||
const duration = 300;
|
||||
const target = document.getElementById(id);
|
||||
const x = window.innerWidth * 0.01 * (Math.round(Math.random()) ? Math.random() : -Math.random());
|
||||
const y = window.innerHeight * 0.01 * (Math.round(Math.random()) ? Math.random() : -Math.random());
|
||||
|
||||
|
||||
const originalX = parseFloat(idle.animations[0].currentValue);
|
||||
const originalY = parseFloat(idle.animations[1].currentValue);
|
||||
// console.log(x, y);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user