siphon test fix
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user