I tried to run the example: http://tutorials.jenkov.com/html5-canvas/animation.html.
But it gives me following error on Opera 12+:
Uncaught exception: TypeError: ‘reqAnimFrame’ is not a function.
Thanks
Sneha
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The proposed requestAnimationFrame() method is not yet implemented in Opera. It will be supported in a future version, for now you will need a JavaScript that falls back to using setTimeout() in browsers that do not support requestAnimationFrame().
The script you linked to makes no attempt to be compatible with older browsers. In fact, it event doesn’t attempt to be compatible with future browsers that will presumably drop the prefixes and define just window.requestAnimationFrame(). It would be a good idea for the author to amend the script to fix these issues in his demo – it’s not really hard to do so.