Ah now i understand. I think that's some custom code that you are using right?
Can you post your javascript code that you used here?
Edit:
Ah ok I found the code myself:
/// scroll
Frontend.GlobalEvents.on("newpageshown", function(layoutObj, type, obj){
var scroll_pos = 0;
var animation_begin_pos = 900; //where you want the animation to begin
var animation_end_pos = 1200; //where you want the animation to stop
jQuery(document).scroll(function() {
scroll_pos = jQuery(this).scrollTop();
if(scroll_pos >= animation_begin_pos && scroll_pos <= animation_end_pos ) {
jQuery("body.slug-home a").css('color', 'blue');
} else {
jQuery("body.slug-home a").css('color', 'black');
}
});
});
///scroll end
var colors = ['#f6e9de', '#f0f0f1']
Frontend.GlobalEvents.on("newpageshown", function(){
var ix = getRandomInt(0, colors.length);
var color = colors[ix];
jQuery('body').css('background-color', color);
});
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
// Returns a random integer between min (included) and max (excluded)
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min)) + min;
}
/// thumbnail video hover
window.laytheme.on("newpageshown", function(){
jQuery('body.slug-work video').each(function(){
this.pause();
});
jQuery('body.slug-work video').on('mouseenter', function(){
this.play();
});
jQuery('body.slug-work video').on('mouseleave', function(){
this.pause();
});
});
Did you code that by yourself? Maybe you can ask the person who coded this to fix the issues you're having. Because those issues are not directly lay theme related but related to your custom javascript.
I think you should try and improve the scrolling code a bit. On smaller screens the text never becomes blue. The "animation_begin_pos" number should be lower or should depend on window.innerHeight instead of a number.
Then when you go to any page, those blue links should be reset to be black. So on "nepageshown" just remove the css of these links.