At its core, Hero is similar to Keynote’s Magic Move. It checks the heroID property on all source and destinations views. Every matched view pairs are then automatically transitioned from it’s old state to it’s new state.

Source: lkzhao/Hero: Supercharged transition engine for iOS.