Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript IE10 element.style.AnimationDelay

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #161082
    Schmotty
    Participant

    I am having some trouble with setting the animation delay in javascript. It works fine in all browsers except IE10+. IE. Every other setting is changed in IE, but not animation delay. What am I doing wrong?

    f.style.AnimationDelay=(Math.random()*2)+'s';
         f.style.AnimationDuration=fd+'s';
         f.style.AnimationName='mymove';
         f.style.webkitAnimationDelay=(Math.random()*2)+'s';
         f.style.webkitAnimationDuration=fd+'s';
         f.style.webkitAnimationName='mymove';
         f.style.MozAnimationDelay=(Math.random()*2)+'s';
         f.style.MozAnimationDuration=fd+'s';
         f.style.MozAnimationName='mymove';
         f.style.MSAnimationDelay=(Math.random()*2)+'s';
    
Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.