catch null idle case
This commit is contained in:
parent
a8fb019a4e
commit
6f5d7338d0
@ -1,6 +1,7 @@
|
||||
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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user