Hi
1. Create the five layers. 😉
2. Create a null and rename it to “control”.
3. Create a expression control slider on the null.
4. Rename the slider to “Turnus”.
5. Insert this code in the Opacity property in all the five layers:
var totalLayers = 5;
var layerIndex = 0;
var visible = thisComp.layer("control").effect("Turnus")("Slider")>100/totalLayers*layerIndex;
opacity = visible?100:0;
6. Layer index on the first layer is 0. Next layer is 1, etc..
Drag/animate the slider from 0 to 100.
Hope it helps.
– Jakob Wagner