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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:11:08+00:00 2026-05-23T18:11:08+00:00

I’m building an iOS app with PhoneGap. I’m using translate3d CSS animations to create

  • 0

I’m building an iOS app with PhoneGap. I’m using translate3d CSS animations to create the ‘flip’ effect.

This works great on simpler elements…a DIV with front/back divs and maybe an extra span or two.

But when I attempt to flip a larger element…namely the entire screen, I get redraw glitches. What happens as soon as I swap the css class to start the transition, parts of the ‘bottom’ div pop-through the ‘top’ div, then the flip happens, then they pop-out again. And it’s not the entire element that shows through…it’s half of the element split along the axis that I’m doing the translate 3d rotation on.

Any ideas or theories as to what might be causing this? It happens the same both on the iPad as an app and on the desktop in Safari, so appears to be a webkit issue.

Could it be some CSS issues? Or is attempting to do a full-screen translate3d rotation with complex nested elements with large background images just more than Safari can handle?

UPDATE 1:

I’ve made progress in narrowing down the issue.

What’s happening is that the elements that are ‘peeking through’ when I do the translate3d flip happen to be child elements that had been previously positioned via translate3d.

My ‘page’ structure that I want to transition with translate3d:

<div id="frontbackwrapper">
    <div id="front">    
    </div><!--/front-->
    <div id="back">  
    </div><!--/back-->
</div><!--/frontbackwrapper-->  

This works on it’s own. The front div is replaced with the back div with a card-flip effect.

The problem is that prior to doing the full page flip, I’ve already animated some elements within the #front div using translate3d:

<div id="frontbackwrapper">
    <div id="front">  

        <div class="modal"></div>  

    </div><!--/front-->
    <div id="back">  
    </div><!--/back-->
</div><!--/frontbackwrapper--> 

Example CSS:

.modal {
    width: 800px;
    height: 568px;
    position: absolute; 
    left: 112px;
    z-index: 100;
    -webkit-transition-duration: 1s;
    -webkit-transform: translate3d(0,-618px,0); /* set off screen by default */
 }
.modal.modalOn {
    -webkit-transform: translate3d(0,80px,0); /* slides the div into place */
 }

If–instead of using translate3d–I just reposition the div with a top style or transform the top property, I don’t get the peek-through issue. Of course, that means I have to give up the slick animation or hardware acceleration, respectively.

At this point, it looks like a webkit bug. I’ll keep doing some playing with it. If anyone has run into this before and found a workaround, I’m all ears!

  • 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-23T18:11:09+00:00Added an answer on May 23, 2026 at 6:11 pm

    solution! After a night of sleep, I mulled over the culprit and what to do with it. It’s not necessarily the act of animating a child element with translate3d but rather the face that the element that was translated has that CSS property at the time it’s parent is being animated with translate3d.

    The fix is to first animate the child element, then remove the translate style all together.

    The CSS structure is now:

    /* default class for the start of your element */
    .modal-startposition {
      -webkit-transition-duration: 1s;
      -webkit-transform: translate3d(0,-618px,0);
      }
    
    /* add this class via jQuery to then allow
       webkit to animate the element into position */
    .modal-animateposition {
      -webkit-transform: translate3d(0,80px,0);
    }
    
    /* when animation is done, remove the above class
       and replace it with this */
    .modal-endposition {
      top: 80px;
    }
    

    And some sample jQuery:

    //[attach a click event to trigger and then...]
    $myModal
        .addClass("modal-animateposition")
        .on('webkitTransitionEnd',function () {
             $myModal
                .removeClass('modal-startposition')
                .removeClass('modal-animateposition')
                .addClass('modal-endposition');
        });
    

    A little tedious, but it completely fixes the screen redrawing problem.

    EDIT: Corrected a typo

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

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am using Paperclip to handle profile photo uploads in my app. They upload
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
this is what i have right now Drawing an RSS feed into the php,

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.