better transition animation on doc loading