Return to Snippet

Revision: 34287
at October 20, 2010 11:23 by peterbelsky


Initial Code
...
scrollTo(0, 0);
 
// HACK
var toStart = 'translateX(' + (backwards ? '-' : '') + window.innerWidth + 'px)';
fromPage.css( 'webkitTransform', toStart );
// /HACK
 
// Define callback to run after animation completes
var callback = function(event){
  // HACK
  fromPage.css( 'webkitTransform', '');
  // /HACK
  ...




  // HACK
  if (animation.name === "slide") {
    var toStart = 'translateX(' + (backwards ? '-' : '') + window.innerWidth + 'px)';
    fromPage.css('webkitTransform', toStart);
  }
  // /HACK
 
...
 
  // HACK
  if (animation.name === "slide") {
    fromPage.css('webkitTransform', '');
  }
  // /HACK

Initial URL
http://www.amberonrails.com/2010/06/jqtouch-animation-flicker-bug-fix/

Initial Description

                                

Initial Title
JQTouch Animation Flicker Bug Fix

Initial Tags

                                

Initial Language
JavaScript