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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:57:20+00:00 2026-06-14T20:57:20+00:00

MAIN EDIT: This will help to explain the question better, take a look of

  • 0

MAIN EDIT:

This will help to explain the question better, take a look of this, as you can see, the two slides changes using a fading effect, how can I change this effect for an sliding to the left effect like the one you see in tree exploration on Github ?


Picture two divs, one called Master and the second one Slave.

<div id="container">
  <div id="master" style="background-color:#ABC;">1</div>
  <div id="slave" style="background-color:#CBA;">2</div>
</div>

The content on the slave div gets updated via ajax only when a button get press on the master div (already programed), on success (the ajax call finish and the div slave is updated) I want the Master div to slide to the left while the slave div slide too.

On the first state the user can only see the Master div, slave is invisible, when the button is pressed master slide goes out to the left and Slave slides to ocupy the original master position (just a simple slider). As I said, I already program all the basic interactions on jquery and the server side code (php + ajax), but I have NO idea how to set the css in order to accomplish this, for the animations im using a simple $('#div').slideLeft(400);

I dont want to use any existant jquery plugin or html5 or css3 (if possible), just want to keep it simple, but again, im not very good front-end dev and figuring out the css to get this right is driving me crazy. Thanks for any help!

EDIT
I meant when i said slideLeft:

$(this).hide("slide", { direction: "left" }, 1000);
$(this).show("slide", { direction: "left" }, 1000);
  • 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-06-14T20:57:21+00:00Added an answer on June 14, 2026 at 8:57 pm

    By using the css2 “clip” property, adding one extra container div [to make the clip work] and by slightly modifying your fiddle code to rely on animate instead of fadeIn and fadeOut, this effect is possible. However, the solution isn’t as simple as you might like it to be, or as clean. Neverless, it works.

    HTML:

    <div style="position:relative;width:200px;height:100px;left:100px;">
        <div style="position:absolute;clip:rect(0px,200px,100px,0px);overflow:none;width:200px;height:100px">
        <div class="table-cont" style="display: none; position:absolute; background-color:#ABC;width:100%;height:100px;"></div>
        <div class="table-coupons" style="display: none; position:absolute;top: 0px; background-color:#CBA;width:100%;height:100px;"></div>
    </div>
    </div>
    

    JS:

     $(document).ready(function() {
    
    $('div.table-coupons').css({opacity:0,marginLeft:200});
    
         calltable();
            function calltable()    {
    $('div.table-coupons').css('display','block');
    $('div.table-cont').css('display','block');
    
                $('div.table-coupons').animate({opacity:0,marginLeft:200},{ duration: 300, queue: false,complete:function(){$(this).css('display', 'none')}});
                $('div.table-cont').html('HELLO World! <a href="#" class="coupon_link">Next</a>');
                $('div.table-cont').animate({opacity:1,marginLeft:0},{ duration: 300, queue: false });
                $('a.coupon_link').click(function() { next_slide(); });
            }
            function next_slide() {
    $('div.table-coupons').css('display','block');
    $('div.table-cont').css('display','block');
    
                $('div.table-cont').animate({opacity:0,marginLeft:-200},{ duration: 300, queue: false, complete:function(){$(this).css('display', 'none')}});
                $('div.table-coupons').html('HELLO again! <a href="#" class="back_link">Back</a>');
                $('div.table-coupons').animate({opacity:1,marginLeft:0},{ duration: 300, queue: false });
                $('a.back_link').click(function() { back_slide(); });            
            } 
            function back_slide() {    
                calltable();            
            }            
    
     });
    

    JSFiddle: http://jsfiddle.net/97pcj/1/

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

Sidebar

Related Questions

This is complicated, but I will do my best to explain my question. Object
EDIT: My main code no longer works, should this function work? <script type=text/javascript src=jquery-1.7.2.js></script>
This is really bugging me, so I hope someone can help me a bit
My main.xml has 2 edit text for the user to insert values. And my
I want to create simple app able to edit images. Main view of app
Ok, i have 2 edit controls and a button in my main window; in
Main OS is windows 7 64bit. Using VM player to create two vm CentOS
This question might seem very specific but I am in need of some ideas
EDIT: Here is the entire chunck of what is in the table Hopefully this
Example of Textfile: 5 <- I need to edit this number. 0 1 0

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.