Open JWestarp opened 10 years ago
You got a typo in asing: "ease"
but not sure if that helps. ;) I have no problems with moveTo
.
oops.. thx :) but this doesn't solve the problem.
i noticed that the first menu-item still got the class "active" after moveTo... because there is no id (wich triggers the css-style) my work-arround looks now like this:
$("#link").click(function() {
$('.onepage-pagination li a').removeClass('active');
$(".main").moveTo(2);
$('.onepage-pagination li:nth-child(2)').addClass('active');
});
have anybody solved this issue ? cause i have the same trouble
$('.go_to_service').on('click', function(e){
e.preventDefault();
$('.main').moveTo(2);
});
I'm having the same issue, when I click the link that should get me to the third section on my page, I get this error in the console:
Uncaught TypeError: undefined is not a function
my jQuery code looks like this:
$(".project").on("click", function(event) {
event.preventDefault();
$(".main").moveTo(2);
});
$('.nav-links').each(function(index){ $(this).click(function(e){ e.preventDefault(); $(".main").moveTo(index+1); }); this works but idontknow how
Hi,
i use the index to trigger some animations. But when I use the moveTo function the index is "undifined"
Am I doing anything wrong?
->