change vector effects to requestAnimationFrame