GTK supports determining the slide, cover, and uncover transitions to automatically determine which way they go based on their order in the parent stack. This way advancing forward would animate it one way, and advancing backwards would animate the other way.