I would like to know how the slide effect between pages is done on that webpage. I would like to do the same between two pages but horizontally. I guess it probably uses jQuery, but if someone could give some clues, that’d be great
[Update] slideUp / slideDown
I’ve tried JKirchartz’ method but it doesn’t work like I would. slideUp() and slideDown() jQuery functions only hide and show elements with a vertical slide effects. I would like a technique which can switch pages with both vertical and horizontal slide effects.
Thank you
UPDATE
You can use the jQuery Cycle plugin to emulate this effect: http://jsfiddle.net/JKirchartz/zLekb/
basically the same css, but the jQuery is instead this:
and the prev & next buttons are a little different:
the css isn’t perfect, but close enough…
Original Answer
Here’s a quick & dirty example of the technique: http://jsfiddle.net/JKirchartz/LChKh/
In most browsers hitting
Ctrl+uwill allow you to view source, from there you can see that the portfolio and about me pages are both already there, he’s just animating between the pages and hiding some of them based on the view.the JS is really short to get the basic effect:
and the markup is this
the basics of the CSS are
There are extra slide effects in jQueryUI, with that you can
but you’d have to tweak the CSS