Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Dreamer

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Newbie

About Dreamer

  • Rank
    Newbie
  1. Hi, how can i create anchor links for a horizontal scrolling? My version is not working correctly: $(".menu-item").on("click", function (event) { event.preventDefault(); var id = $(this).attr('href'); var left = $(id).offset().left; $('body,html').animate({ scrollTop: left }, 1500); });
×