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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:01:32+00:00 2026-05-28T13:01:32+00:00

I have 2 pages embedded on my single HTML file. so what it does

  • 0

I have 2 pages embedded on my single HTML file. so what it does is that initially it shows PAGE1, then if i swipe from right to left OR left to right PAGE2 should show. my problem is how can I change the page animation based on my swipe? like when I swipe form right to left the animation should be the page scrolling from right to left and vice versa?

i am aware of the page swipe events but i dont know how to programatically change its animation

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-28T13:01:33+00:00Added an answer on May 28, 2026 at 1:01 pm

    Updated Answer:

    If you’re looking for page transitions I would suggest reading:

    • http://jquerymobile.com/demos/1.0/docs/api/methods.html
    • http://jquerymobile.com/demos/1.0/docs/pages/page-transitions.html

    Example:

    Adding this attribute will slide from right to left

    data-transition="slide"
    

    Adding these attributes will slide from left to right

    data-transition="slide" data-direction="reverse"
    

    Original Answer below:

    Live Example:

    • http://jsfiddle.net/yxzZf/4/

    JS:

    $("#listitem").swiperight(function() {
        $.mobile.changePage("#page1");
    });
    

    HTML:

    <div data-role="page" id="home"> 
        <div data-role="content">
            <p>
                <ul data-role="listview" data-inset="true" data-theme="c">
                    <li id="listitem">Swipe Right to view Page 1</li>
                </ul>
            </p>
        </div>
    </div>
    
    <div data-role="page" id="page1"> 
        <div data-role="content">
    
            <ul data-role="listview" data-inset="true" data-theme="c">
                <li data-role="list-divider">Navigation</li> 
                <li><a href="#home">Back to the Home Page</a></li>
            </ul>
    
            <p>
                Yeah!<br />You Swiped Right to view Page 1
            </p>
        </div>
    </div>
    

    Related:

    • Adding JQM swipe event to listview link
    • Adding jquery mobile swipe event
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some pages on my site that are plain HTML pages, but I
I have embedded flash in my html pages but upon refresh, it flickers, is
Currently we have a lot of web pages that either have SQL statements embedded
Around 90% of the pages for our websites have no .Net code embedded in
I have HTML page where windows media player is embedded. It works very well
Embedded custom-tag in dynamic content (nested tag) not rendering. I have a page that
I have a plain html web page with an embedded flash object. Based on
I have a hidden embedded QuickTime object on my page that I'm trying to
I have two pages of jQuery, Page1 and Page2, and I'm able to get
We have several fairly large JavaScript files embedded into a single script resources DLL.

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.