-2
Good afternoon,
I’m trying to use a jQuery feature through a code I found on the internet. But it’s not working! You can help me fix it?
When I click on 'See more', I should scroll the page to the div 'I Want to Be a Part''.
Look at you:
BUTTON / LINK:
<a href="#QueroFazerParte" target="_self" class="button white is-gloss scrollTo" style="border-radius:99px;">
<span>VEJA MAIS</span>
</a>
JQUERY:
<script type="text/javascript">
jQuery(function ($) {
$(".scrollTo").on('click', function(e) {
e.preventDefault();
var target = $(this).attr('href');
$('html, body').animate({
scrollTop: ($(target).offset().top)
}, 2000);
});
});
</script>
SCROLL TO:
<div class="row row-collapse row-full-width QueroFazerParte" id="row-11071">
Edit your question by putting what you want to do and what your question is!
– LeAndrade