I have been looking down to a pendulum in html5 and jquery, i found this example on a website...
http://www.webdevdoor.com/javascript-ajax/jquery-pendulum-animation-pivot-point/
I embedded with customization to my website, i have read the documentation of this mentioning that this will not work on Ie8 and older versions of firefox and safari, after arranging all my UI together, it seems to be a problem with it in IE9...
I dnt know what but the example is working not my demo...
Example:-
http://www.webdevdoor.com/demos/html5-pendulum-demo/
My demo:-
Screenshot:-
My JS:-
$(document).ready(function(){
var rotation = 7;
var swingtime = 1603;
var swinger = $('.pendulum-parent');
function init() {
swinger.animate({rotate: rotation}, 0, function () {
swinger.css("display", "block");
rotation *= -1;
pendulumswing1();
});
}
function pendulumswing1() {
swinger.animate({rotate: rotation},swingtime, "swing", function(){
rotation *= -1;
pendulumswing1();
});
}
init();
});
Any solution for the above? Where i have been mistaken? or its an OS or Browser issue?