meaning of as if by magic

as if by magic meaning in General Dictionary

in a magical way