update transition delay in js