[Webkit-unassigned] [Bug 27159] Unsetting an object's transition property to restyle it without animating doesn't work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 10 14:40:35 PDT 2009


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





--- Comment #1 from Neven Mrgan <neven.mrgan at gmail.com>  2009-07-10 14:40:35 PDT ---
Re-setting the transition property in a timeout - even at 0 ms - will make the
setting/unsetting work as expected.

    function moveBack()
    {
        document.getElementById('obj').style.webkitTransition = 'none';
        document.getElementById('obj').style.webkitTransform='translateX(0px)';
        setTimeout('document.getElementById("obj").style.webkitTransition =
"-webkit-transform .5s linear";', 0);
        i = 0;
    }

-- 
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