Assuming you have a “selected” class for the selected page and a “page” class for each page, try something on these lines:
.page { position:absolute; left:100%; -moz-transition:1s left; -o-transition:1s left; -webkit-transition:1s left; transition:1s left; } .page.selected { left: 0; }
This will work on Webkit, Firefox 4 and Opera (I don’t remember the version) and will gracefully degrade on impracticable browsers (they will go from beginning to end in one step).
source share