HI guys, I'm redoing my old photography website and I'm still at the very beginning of the project. Somewhere I saw a jquery bounce functionality implemented and I thought I'd do it for my website as well, so I downloaded all I needed from the jquery ui website and got it work. The good news is that it seems to work OK in every browser except in IE - I have 11 installed.
Now, the actual animation works, but what it does is every time the animation restarts (it runs all the time) the page jumps a bit to the top, not all the way though, just the size of the height of the arrow being animated. If it makes no sense, here is the URL and you can check yourself in IE:
http://antonioborrillo.co.uk/new_photography/home.html
If you click the animated arrow, the page scrolls down all the way till the navigation is visible but in IE it then scrolls back up so that the arrow appears again.
Now, the way I've implemented the functionality is very simple:
$(document).ready(function(){
//animateArrow();
bounce();
var $banner = $(".contentWrapper");
...
});//end of doc ready
function bounce(){
$(".arrow").effect( "bounce", 3500, bounce);
}
I was thinking whether a preventDefault would help here, but I'm not sure it's the right thing to do, fact is I don't quite understand why it behaves like that in IE. Needless to say I had a look on the net first, but I couldn't quite come up with anything significant.
Does anybody have an idea as to what's going on in IE?
thanks