change z-index with timeout
use requestAnimationFrame