What does as if by magic mean?

as if by magic meaning in General Dictionary

in a magical way