-1
I have this code that works well (just scroll down) in firefox and Chrome , but if you then click the 'backward' browser (Chrome) it does Trigger just in the load page without me do scroll. In HTML I have:
`<body onunload="">...`
js.js
$(document).ready(function() {
window.scrollTo(0, 0); // ir logo para topo no load da pagina para evitar
// que faça trigger à animação sem eu fazer scroll
.......
$(window).scroll(function() {
if ($(window).scrollTop() > 10){
var href = $('.toWork').attr('href');
$('#wrapper').animate({
"margin-top": "-1000px"
}, 800, function(){
window.location=href;
});
}
});
})
I do, 1.11.1. Isn’t there a way to, with code, turn this around? Based on the code I posted
– Miguel