You were beginning to enter sleep paralysis and experiencing some major hypnogogia, I think. If you had done it right, you would have gotten an easy lucid dream out of it. For more info on sleep paralysis and hypnogogia, click the links.
Sorry for the offsite link: there’s no LD4All article on Hypnogogia so rather than link to a topic somewhere that might have mixed info, I linked to Wikipedia.