I always thought it was referencing beauty and the beast. Cause the same things happen in beauty and the beast. In Aladdin it's not a spell. It's just a genie with magic. In beauty and the beast it's actually a spell on the castle.
It might not be as easy as you think! Tell us if you could guess all the Disney movies based on the shots from the opening scenes! Beauty and the Beast Aladdin The Lion King The Little Mermaid Finding Nemo