So basicaly I got 2 bugs using jQuery animation, and I want to fix this bugs in Firefox, Chrome, Safari, Opera and Internet Explorer.
Bugs:
- Animation does not work
- Animation complete function trigger twice
I tried this:
$("html").animate({...}, {duration: 500, complete: function () {...}});
Firefox: Animation works
; Animation complete trigger once
Chrome: Animation does not work ; Animation complete trigger once
Safari: Animation does not work ; Animation complete trigger once
Opera: Animation does not work ; Animation complete trigger once
Internet Explorer: Animation works
; Animation complete trigger once
$("body").animate({...}, {duration: 500, complete: function () {...}});
Firefox: Animation does not work ; Animation complete trigger once
Chrome: Animation works
; Animation complete trigger once
Safari: Animation works
; Animation complete trigger once
Opera: Animation works
; Animation complete trigger once
Internet Explorer: Animation does not work ; Animation complete trigger once
$("html, body").animate({...}, {duration: 500, complete: function () {...}});
Firefox: Animation works
; Animation complete trigger twice
Chrome: Animation works
; Animation complete trigger twice
Safari: Animation works
; Animation complete trigger twice
Opera: Animation works
; Animation complete trigger twice
Internet Explorer: Animation works
; Animation complete trigger twice
My test enviroment: Windows 7
Firefox version 41.0.1
Chrome version 46.0.2490.80 m
Safari version 5.1.7
Opera version 32.0
Internet explorer version 11
Is there any solution to this problem? To remove this 2 bugs on all browsers?