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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:09:08+00:00 2026-05-27T20:09:08+00:00

The new Github HTML5 and CSS3 (HTML5 History API) tree navigation is great: https://github.com/blog/760-the-tree-slider

  • 0

The new Github HTML5 and CSS3 (HTML5 History API) tree navigation is great:
https://github.com/blog/760-the-tree-slider

Which JQuery Plugin are they using to do the UI slide effect? Or maybe a similar one (Jquery Slide with Ajax loading)

Thanks

  • 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-27T20:09:09+00:00Added an answer on May 27, 2026 at 8:09 pm

    I looked through their source code and they are NOT using CSS3 or a plugin. It uses jquery animate. And the code snippets they give on the Github blog are a good start, but the popstate handler is misleading. Try this instead:

    $(window).bind('popstate', function (e) {
        if (e.originalEvent.state && e.originalEvent.state.path) {
            $.get(e.originalEvent.state.path, function(data) {
                $('#slider').slideTo(data);      
            });
            return false;
        }
        return true;
    }
    

    The actual sliding uses more tricks:

    1. set #slider overflow: hidden
    2. get the width of the section to animate.
    3. create a transfer div twice this width (transfer).
    4. copy the contents of the original div to a temp div (current).
    5. put the new contents in another temp div (next).
    6. put current and next side by side into transfer.
    7. remove content from original div and put new transfer div in (should look the same).
    8. animate transfer div – new look complete.
    9. replace original div contents with new data (looks the same as previous step).

    Here’s slide left:

    $.fn.slideTo = function(data) {
        var width = parseInt($('#slider').css('width'));
        var transfer = $('<div class="transfer"></div>').css({ 'width': (2 * width) + 'px' });
        var current = $('<div class="current"></div>').css({ 'width': width + 'px', 'left': '0', 'float': 'left' }).html($('#slider').html());
        var next = $('<div class="next"></div>').css({ 'width': width + 'px', 'left': width + 'px', 'float': 'left' }).html(data);
        transfer.append(current).append(next);
        $('#slider').html('').append(transfer);
        transfer.animate({ 'margin-left': '-' + width + 'px' }, 300, function () {
            $('#slider').html(data);
        });
    }
    

    And here’s a working example: Slider example. Click on the menu with a browser that supports history. I started to use CSS3, but detecting when the transition/transform is complete is easier with the jquery animate callback.

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

Sidebar

Related Questions

In github's blog post about how they created the new tree slider, they give
Full code at https://gist.github.com/992562 . I am using HTML File API and drag/drop to
as said on the dm-rails gem site (https://github.com/datamapper/dm-rails) i m doing *rails new project_name
Which one is better? Using fragment identifiers... http://www.alinkthatdoesnotwork.com/#!/dir1/dir2/file.html ...or the new Javascript History API?
This question is about the Todos Backbone.js sample, which is at: http://documentcloud.github.com/backbone/docs/todos.html The following
(NOTE: Source code here https://github.com/cthielen/dss-evote ) I've got a simple voting application. A survey
In this rails app: https://github.com/ryanb/govsgo/blob/master/app/views/authentications/index.html.erb There is a form that as 'new_user_path' Where is
I am using https://github.com/feelinglucky/php-readability and I am able to get the author's example to
While I was playing and figure out how things work in https://github.com/enormego/EGOTableViewPullRefresh I found
pls show any example of using Cocoon's 'link_to_add_association' with html_options. https://github.com/nathanvda/cocoon Documentation says: html_options:

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.