Shadow as mask for opacity

Hello! I Would like to make and use material which is transparent, does not cast shadows(it’s easy), but apears where it receives shadow from other objects.