Is there some event like "webkitTransitionEnd"? RRS feed

  • Question

  • Hello,
    Is there some event like "webkitTransitionEnd"?
    I am using "-ms-transition" property and would like to know the exact time when transitions end.
    I think that using setTimeout function will make sense, but I'm worrying if it may cause time lag.

    • Edited by _Y_O Monday, January 23, 2012 10:40 AM
    Monday, January 23, 2012 10:40 AM


All replies

  • Hi Y,

    There is no event fired that will tell you the exact time when transitions end.  Out of curiosity, why do you need to know this for your application?  I think setTimeout should work fine.

    You could also use the Animation Library that returns promises.  Then you could know when the animation has finished:





    Jeff Sanders (MSFT)
    Monday, January 23, 2012 3:18 PM
  • Hello Jeff,

    The reason I wanted to know the exact time is, I sometimes feel that the transition animations seems not to end in the expected time, especially when I set very short duration (e.g. less than 500).
    This issue may be referred from the device spec, because I usually work with mobile devices and they have low spec compared to PC.
    So there are no problem if setTimeout will work enough in windows 8.

    I will try Animation Library also :)

    Thanks a lot!


    Tuesday, January 24, 2012 3:45 AM
  • Hey Y,

    One of my coworkers pointed out we do have an event as you wanted:

    We do have transition end: http://msdn.microsoft.com/en-us/library/hh673535(v=vs.85).aspx#mstransitionend


    Jeff Sanders (MSFT)
    Tuesday, January 24, 2012 5:22 PM
  • Thanks Jeff!

    I tried MSTransitionEnd and it worked completely :)



    Wednesday, January 25, 2012 9:16 AM