I have no idea why this isnt working for me. Maybe one of the jQuery Guru's out there can help me make this work!
From the script below you can see that i have a UL block named five that i would like to ease to there anchor(#web). When i click the menu item i do get the alert to activate so i think that part is correct.
$(function() {
$('ul.five a').bind('click',function(event){
var $anchor = $(this);
alert('hellooo')
$('html, body, section').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 500,'easeInOutExpo');
event.preventDefault();
});
});
This is what one of my sections looks like in case this would help?
<section class="row divider-down" id="section1">
<header>
<h1><img src="image/image1.png" alt="Alt"></h1>
<p>some text</p>
</header>
Does anyone see anything that is obviously wrong here? Like i said the alert pops up but it doesnt "ease" down to the section?