I have a problem with animating a div in IE.
As the user scrolls down, i want to move a div down aswell. The div is positioned absolutely with top property set to 5% and then in js file im adjusting the top property value based on the scrollTop value of window.
Everything works fine in other browsers but in IE, the animation is behaving strangely (seems like the animation fires only AFTER the window is scrolled, which makes it look bad and not smooth).
I tried using both jquery animate and css functions but the same effect occurs.
In this codepen fiddle i replicated the problem. Both methods are included(just comment/uncomment the one you want to see) http://codepen.io/bbpg/pen/bdJVGb
jqCaption.stop().animate({top: (5 + wScroll * 0.2) + '%'}, 0); or jqCaption.css({top: (5 + wScroll * 0.2) + '%'});
Thanks for any advice!
1