semi-working curtain page transition with animation