1
I want to scrollTop after I click on a button. Just not on the page I’m on but on the page that will open.
My HTML:
<a href="/clinicas" class="saibaMais cp margin-top-40 margin-bottom-25 f-left unidadesClick">
<div class="saibaMaisText">saiba mais</div>
<div class="saibaMaisHover">saiba mais</div>
</a>
And my Jquery:
$('.unidadesClick').click(function () {
$('html, body').stop().animate({
scrollTop: '620px'
}, 700);
});
The way it is, it does Scrolltop on the same page. How do I make it work when I’m inside the a
/clinics?
Like a
#ancora
?– Thomas
No. When I click
a
, it opens the page and gives a Scrolltop.– Felipe Viero Goulart
Ah, like a
#ancora
with the smooth rolling?– Thomas
This, it can be yes. What happens is that you are scrolling on the page before accessing the
a
.– Felipe Viero Goulart