[Webkit-unassigned] [Bug 46087] Element doesn't get animated through -webkit-transition if trying to animate 'visibility' and '-webkit-transform' at the same time.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 7 09:29:13 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=46087





--- Comment #7 from Andrey Okonetchnikov <andrej.okonetschnikow at gmail.com>  2010-12-07 09:29:14 PST ---
And I'm using following JS workaround for it: 

resetWebkitTransitions: function(){
    var dummy = document.createElement('DIV');
    dummy.style.position = 'fixed';
    dummy.style.width = '1px';
    dummy.style.height = '1px';
    dummy.style.zIndex = 1;
    dummy.style.webkitTransitionProperty = '-webkit-transform';
    dummy.style.webkitTransitionDuration = '.1s';
    dummy.style.webkitTransform = 'scale(1)';
    Element.insert(document.body, dummy);
    (function(){
      dummy.style.webkitTransform = 'scale(0)';
    }).delay(.1);
    (function(){
      Element.remove(dummy);
    }).delay(.2);
  }

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list