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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:03:53+00:00 2026-06-15T22:03:53+00:00

I m working on a small mobile framework and have a timing problem with

  • 0

I m working on a small mobile framework and have a timing problem with jQuery animation methods like fadeIn() or fadeOut() on iPhone. On Desktop-machines it works perfect!
The problem is, that the iphone browser ignores most times the callback-time, and starts the function before the animation ends.

Here my code

    function show_edit_product_page(curr_key){
    $('#pageid_10001').remove();
    console.log('removed...')
    $.ajax({
        url     :   '../scripts/webservice.php',
        dataType:   'html',
        type    :   'GET',
        data    :   'type=my_type_data&key='+curr_key,
        success: function(data) {
            $('#all_pages').append(data);
            $('#page_content .page').not('#pageid_10001').fadeOut(350,function() {
                $('#pageid_10001').fadeIn(350, function(){
                    myScrol2.refresh();
                }); 
            });
        }
    });
}

‘data’ contains a mainwrapper(#pageid_10001) and this is hidden. It should only fadeIn, when the other pages finishs fading out.

Any ideas, how i can optimize the behavior.

  • 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-15T22:03:54+00:00Added an answer on June 15, 2026 at 10:03 pm

    Unfortunately JavaScript-based animations are not something that Safari on the iPhone handles all that well. In this case, it’s likely that the animate function itself completes successfully, while the actual “displayed” animation is getting visually hung up.

    I would recommend using the CSS3 transition effects built into Safari to get a nice smooth fade in/out you’re looking for: https://developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Introduction.html

    Once you have consistent animations at your disposal, synchronizing the timing (in your case, calling a function on the animations completion) should be fairly trivial.

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

Sidebar

Related Questions

I have a small working application in ASP.NET and C#, and I would like
Iam working on small booking room system. In my solution I have a Reservation
Im working on a small application to try out an idea that I have.
I'm working on a small uni project where I have a program for a
I'm working on a small MVC framework in PHP for an exercise. PHP, however,
I am working with small application for display bubbles images on android screen.I have
I'm working on a jQuery lightbox type plugin that needs to function for mobile
I've been working on a mobile first website, and have found that my media
I'm working on a JQuery Mobile project and I've recently changed the way some
I'm working on a quick landing page to access a number of small, mobile-optimized

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.