search

Home  >  Q&A  >  body text

javascript - How to determine whether an element is in a transitional state?

Is there such an attribute? Can you tell whether an element is in a transitional state? Now I mark it by adding attributes to each transitioned element in the transitionend event

typechotypecho2704 days ago794

reply all(1)I'll reply

  • 迷茫

    迷茫2017-07-05 10:38:10

    You can monitor the following separately, and then use variables to control the status yourself.

    transitionrun //Ready to start
    transitionstart //Start, there may be delaytranstionend //End between
    run and start

    reply
    0
  • Cancelreply