The three layers in magic cake are created through the differential densities of the batter components. The key to creating these distinct layers is in the proper mixing and folding of the batter components. It's important to mix the ingredients together thoroughly, but also to gently fold in the beaten egg whites to create the top layer without deflating the mixture. When baked at the right temperature and for the right amount of time, the batter will transform into a beautiful, multi-layered cake that's both delicious and visually stunning.