Skip to content
Advertisement

Failed to execute ‘animate’ on ‘element’: parameter 1 is not of type ‘object’

JavaScript

Advertisement

Answer

As a minimum you need an animation object and a duration for the animation Element.animate(). And then I think you got some of your code upside down.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement