various fixes
This commit is contained in:
@@ -3,8 +3,10 @@ const anime = require('animejs').default;
|
||||
function wiggle(id, idle) {
|
||||
const duration = 300;
|
||||
const target = document.getElementById(id);
|
||||
const x = (window.screen.width / anime.random(-100, 100)) * 0.1;
|
||||
const y = (window.screen.height / anime.random(-20, 100)) * 0.1;
|
||||
const x = window.screen.width * 0.01 * (Math.round(Math.random()) ? Math.random() : -Math.random());
|
||||
const y = window.screen.height * 0.01 * (Math.round(Math.random()) ? Math.random() : -Math.random());
|
||||
|
||||
console.log(x, y);
|
||||
return anime({
|
||||
targets: target,
|
||||
rotate: 0,
|
||||
|
||||
Reference in New Issue
Block a user