some tweaks on shadow transitions