[Alert] use requestAnimationFrame