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 3433136
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:32:12+00:00 2026-05-18T07:32:12+00:00

I want to have a sliding door effect, where the user clicks a link

  • 0

I want to have a sliding door effect, where the user clicks a link and a door comes down over the current content and goes up revealing the new content. Chris Carey did this in prototype, but I want to use jquery. Are there any plugins or tutorials? I saw one, but it was very basic.

prototype example

  • 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-18T07:32:13+00:00Added an answer on May 18, 2026 at 7:32 am

    Here’s a basic example to get you started:

    Try it out: http://jsfiddle.net/yuF8S/3/ (updated to switch content)

    js

    $('a').click(function() {
        var index = $(this).index();
        $('#door').animate({top:0}, 500, function() {
            $('#content > .contentItem').hide()
                .eq(index).show();
            $(this).animate({top: -200}, 500);
        });
    });
    

    html

    <div id='container'>
        <div id='content'>
            <div class='contentItem'>content display 1</div>
            <div class='contentItem'>content display 2</div>
            <div class='contentItem'>content display 3</div>
        </div>
        <div id='door'></div>
    </div>
    
    <div id='links'>
        <a href='#'>content 1</a>
        <a href='#'>content 2</a>
        <a href='#'>content 3</a>
    </div>
    

    css

    #container {
        float:left;
        width: 200px;
        height: 300px;
        clip: auto;
        overflow: hidden;
        position: relative;
    }
    #content {
        width: 100%;
        height: 200px;
        background: yellow;
        position: absolute;
        bottom: 0;
    }
    .contentItem {
        display:none;
    }
    .contentItem:first-child {
        display:block;
    }
    #door {
        width: 100%;
        height: 100%;
        position: absolute;
        top: -200px;
        background: black;
    }
    #links {
        float: left;
    } 
    a {
        display: block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have list of images. I want that user can see images by sliding
Look at this site. I want to have the same sliding effect after you
I have a UITextView and I want have two buttons. When the user taps
I want to have a window with the border radius of the content border
I want to have a form on my page take user input, a URL
I want to have a sliding switch. On the left would be Off and
I have two sliding panels, panel1 is sliding down, while panel2 is sliding from
i m new to jquery..i want to make an scrollLeft sliding gallery..i have done
I have a sliding panel and on the last element I want the animation
I am trying to create the effect of a draggable sliding door using jquery

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.