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

  • Home
  • SEARCH
  • 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 7730381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:12:40+00:00 2026-06-01T06:12:40+00:00

Im making a 3 page mobile optimised website. I need horizontal slide navigation as

  • 0

Im making a 3 page mobile optimised website. I need horizontal slide navigation as can be provided by jQuery mobile. If your on page 1 and you navigate to page 2, page 2 slides in from the right.

However from page 1 you can also navigate to page 3. If you do so I dont want page 3 to slide in in the same way page 2 would. Instead I need page 2 to slide and keep moving so then page 3 slides in instead.

Here is my javascript demo. Clicking ‘map’ from page 1 goes to page 2. Clicking ‘1’ on page 1 goes past page 2 and takes you to page 3.

http://smartpeopletalkfast.co.uk/pos/

Ive made a more complicated demo that does this but im having lots of cross device and other unexpected issues so id love to use a framework like jQuery mobile if it can do this. 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-06-01T06:12:42+00:00Added an answer on June 1, 2026 at 6:12 am

    You can hi-jack the link clicks and send the user to the correct pseudo-page with the animation you want:

    $(function () {
    
        //create an associative array of objects to pas to the `changePage()` function for a specific transition
        var convert = {
    
                //from page1
                page1 : {
    
                    //to page2
                    page2 : { transition : 'slide'},
    
                    //to page3
                    page3 : { transition : 'slide'}
                },
    
                //from page2
                page2 : {
    
                    //to page1
                    page1 : { transition : 'slide', direction : 'reverse' },
    
                    //to page3
                    page3 : { transition : 'slide'}
                },
    
                //from page3
                page3 : {
    
                    //to page1
                    page1 : { transition : 'slide', direction : 'reverse' },
    
                    //to page2
                    page2 : { transition : 'slide', direction : 'reverse' }
                }
            };
        $('.my-links').bind('click', function () {
    
            //change to the specified page
            $.mobile.changePage($(this).attr('href'), convert[$.mobile.activePage[0].id][$(this).attr('href').replace('#', '')]);
            return false;
        });
    });
    

    This binds to any element with the .my-links class. Also page/page2/page3 are the IDs of the three pages.

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

Sidebar

Related Questions

I'm making a mobile website, but on a few of the pages, I can't
I'm making a mobile web app. At the top of the page, I have
I'm making a page which has some interaction provided by javascript. Just as an
For mobile web development: I am making a website which asks the user (on
JQuery Mobile is making my cry tonight. I'm trying to build custom controls so
I am making mobile web app in Html, css, javascript, jquery . I am
I'm working on making a mobile version of a website hosted on a GoDaddy
I have created a small app having navigation UI similar to jQuery Mobile site.
I'm making a mobile-friendly stylesheet for a page of mine. Is there a simple
I'm making an PhoneGap app using Jquery Mobile, but I have a little problem

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.