[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:48:59 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=46087
--- Comment #8 from Chris Marrin <cmarrin at apple.com> 2010-12-07 09:48:59 PST ---
(In reply to comment #7)
> 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);
> }
There does seem to be a bug here. But I'm confused about why you're trying to change visibility in this particular example. If you're starting an object off-screen with 0 opacity, why would you want to "animate" visibility? Or did you stumble on this bug when doing some other effect?
--
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