eGrid() {

    if (animation) animation.pause();

    nextIndex = anime.random(0, numberOfElements);

    anime.set('.cursor', {
      translateX: anime.stagger('-1rem', {grid: [16, 16], from: index, axis: 'x'}),
      translateY: anime.stagger('-1rem', {grid: [16, 16], from: index, axis: 'y'})
    });

    animation = anime.timeline({
      easing: 'easeInOutQuad',
      complete: animateGrid
    })
    .add({
      targets: '.cursor',
      keyframes: [
        { scale: .625 }, 
        { scale: 1.125 },
