Definitions of as if by magic:

  • adverb:   in a magical manner