Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7555633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:39:33+00:00 2026-05-30T11:39:33+00:00

I would like to know how the slide effect between pages is done on

  • 0

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

http://evancoleman.net

[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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:39:35+00:00Added an answer on May 30, 2026 at 11:39 am

    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:

    $(function(){
        $("#site").cycle({
            fx : "scrollHorz",
            next : ".next a",
            prev : ".prev a",
            startingSlide : 1,
            timeout : 0
        });
      });​
    

    and the prev & next buttons are a little different:

    <div class="next"><a href="#">&raquo;</a></div>
    ...
    <div class="prev"><a href="#">&laquo;</a></div>
    

    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+u will 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:

    $(".pager").click(function(){
      $this = $(this);
      // this hides the current div by sliding it up
      $this.parent().slideUp();  
      // this line removes the btn from the link's ID to get the target div's ID
      // then it shows the target div by sliding it down
      $("#"+$this.attr("id").substring(0,5)).slideDown();
    });​
    

    and the markup is this

    <div id="site">
    <div id="page1">
        <h1>Page 1</h1>
        <p>In quis nibh metus...</p>
        <a href="#" id="page2btn" class="pager bottom">Page 2</a>
    </div>
    <div id="page2">
        <a href="#" id="page1btn" class="pager top">Page 1</a>
        <h1>Page 2</h1>
        <p>In quis justo velit, quis sagittis diam...</p>
        <a href="#" id="page3btn" class="pager bottom">Page 3</a>
    </div>
    <div id="page3">
        <a href="#" id="page2btn" class="pager top">Page 2</a>
        <h1>Page 3</h1>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
    </div>
    </div>​
    

    the basics of the CSS are

    #page1, #page2, #page 3, #site {height:100%;width:100%}
    #page1, #page3 {display:none}
    

    There are extra slide effects in jQueryUI, with that you can

    $(".pager").click(function(){
      $this = $(this);
      $this.parent().hide("slide", { direction: "left" }, 1000);  
      $("#"+$this.attr("id").substring(0,5)).show("slide", { direction: "left" }, 1000);
    });​
    

    but you’d have to tweak the CSS

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i would like know some reference. I know i can googling it. but prefer
I would like to replicate the tile/slide effect from the Google Chrome WebStore on
I would like provide and animation effect but i don't how to do. Even
I would like to know an easy way to implement a function playWav[filename_String] that
I would like to know how threads are handled on the server side using
Would like to know what a programmer should know to become a good at
Would like to know the c# code to actually retrieve the IP type: Static
I would like to know if I can open 2 different diagrams using MS
I would like to know which dependency described in my pom.xml brings a transitive
I would like to know what semaphores, messageQueues, etc... are active in my vxWorks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.