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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:37:56+00:00 2026-06-12T14:37:56+00:00

I am trying to build a swipe menu for the ipad where a swipe

  • 0

I am trying to build a swipe menu for the ipad where a swipe will result in the content from the next menupoint will push the current content out.

However, with barely no content (or just images in divs) it’s very fluent. But as soon as I introduce a more compliated DOM it’s sluggish in chrome with touch enabled, and unusable on the ipad3 and ipad2.

I’ve used the transform: translate3d to enabled hardware acceleration, but it just doesn’t seem to cut it. Are there any other way to improve performance. I’ve seen some websites that presents quite a lot of content with a very fluid swipe animation (eg. The Mobile Playbook), but I can’t get that same feel.

I’ve used the jquery.event.swipe plugin to introduce a code in this format :

 $(document).ready(function(){
    var $swipeArea = $("#swipeBox"),
        $pages = $swipeArea.find(".page"),
        $currentPage = $(".currentPage"),
        index = $pages.index($currentPage),
        width = $swipeArea.width();

    $swipeArea
    .on('swipeleft', function(e){
        if(index == $pages.length - 1 ) { return; }
        $pages.eq(index+1).trigger('switchPage');
    })
    .on('swiperight', function(e){
        if(index == 0) { return; }
        $pages.eq(index-1).trigger('switchPage');
    })
    .on('switchPage', function(e){
        $pages.eq(index).removeClass("currentPage");
        $(e.target).addClass("currentPage");
        index = $pages.index($(e.target))
    });

Using this css:

.swipeContentArea .page{
   -webkit-transform: translate3d(0,0,0);
   -moz-transform: translate3d(0,0,0);
   -ms-transform: translate3d(0,0,0);
   -o-transform: translate3d(0,0,0);
   transform: translate3d(0,0,0);
   position:absolute;
   left:-100%;
   height:100%;
   z-index:1;
   overflow-x:hidden;
} 
.swipeContentArea .page.currentPage{
   left:0;
   z-index:2;
}
.swipeContentArea .page.currentPage ~ .page {
   left:100%;
}

with

  transition-property: left,height;
  transition-duration: 600ms;

on the swipeArea for the css transitions.

  • 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-12T14:37:58+00:00Added an answer on June 12, 2026 at 2:37 pm

    I may be wrong, but setting a left (and animating it) differs entirely from translate3d: left is not hardware accelerated, while translate3d is. Which is probably why it is not running smoothly.

    translate3d requires parameters in x, y and z form. x being the horizontal axis, y the vertical and z the ‘depth’ axis, if you will. I ran in to a similar case a while ago and created a simple jquery function that would calculate the width of my sliding element (in your case; the next page), and set a translate3d style with either a negative (element moves left) or positive (element moves right) value for x on that element.

    Say your sliding element is 1200px wide, you would animate it by setting its style like this:

    1. the element is the next page: translate3d(1200px,0px,0px)
    2. the element is the current page: translate3d(0px,0px,0px)
    3. the element is the previous page: translate3d(-1200px,0px,0px)

    (don’t forget to incorporate margins, if the element has them. Just add them to the x value)

    Here is more on CSS (3d) transforms

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

Sidebar

Related Questions

Trying to build a micro-CMS (of sorts), which needs to dish out content i.e.
I am trying build a jQuery EasyUI datagrid or treegrid out of a large
I was trying Build For Archiving application (from Titanium Mobile) with xCode 4.4, but
I'm trying build a method which returns the shortest path from one node to
Trying to build out an exception if move.UserId does not equal currentUserId then Redirect
I have a std::vector< tr1::shared_ptr<mapObject> > that I'm trying build from data contained in
Trying to build a marquee control with smooth text animation. Current efforts include: Using
I'm trying build a regex that will replace any characters not of the format:
Im trying to build sort of slide where when click on link .animate will
Im trying to build a extremely basic content management system. I want to do

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.