siphon test fix

This commit is contained in:
ntr
2019-05-02 11:51:56 +10:00
parent f93aba866f
commit 4758ae1987
2 changed files with 9 additions and 9 deletions
+3 -2
View File
@@ -20,13 +20,14 @@ function registerEvents(store) {
// cryp animations
function crypAnimations() {
anime({
const cryps = document.querySelectorAll('img');
if (!cryps.length) return window.requestAnimationFrame(crypAnimations);
return anime({
targets: 'img',
translateX: () => anime.random(-20, 20),
translateY: () => anime.random(-20, 20),
rotate: () => anime.random(-90, 90),
duration: () => anime.random(5000, 6000),
delay: () => anime.random(0, 1000),
direction: 'alternate',
easing: 'linear',
loop: true,