Using a Javascript plugin named Skrollr, I am incorporating the functionality to shift the position of elements on my webpage as the user scrolls. However, a challenge has arisen as I notice that adjusting the top
position causes noticeable jitteriness in Safari and Firefox, while it functions smoothly in IE 8. On the other hand, utilizing transform:translate(x,y)
resolves this issue across all browsers except for IE 8 where support for transform
is lacking. A potential solution that crosses my mind is to automatically switch the Skrollr attributes to top
when detecting an IE8 user.
The desired transition involves...
<div class="example" data-0="transform:translate(0%, 100%);" data-700="transform:translate(0%, 0%);">
Changing it to...
<div class="holder" data-0="top:100%;" data-700="top:0%;">
I am contemplating if there exists a method to alter these properties using javascript/jquery, or if there is a different approach that would yield better results. My attempt with IE conditional comments turned into a chaotic endeavor, failing to function outside of IE8 as intended.