This example uses regular layering, and "foo" cross-fades with "fop" by having one layer transition from opacity 100%-0, and the other 0-100%.
The identical parts of each layer, "fo", shouldn't change in a 'proper' cross-fade, but they do here.
This is because, with regular compositing, opacity 50% on top of opacity 50% is 75% opacity.