Forums

  • # May 19, 2013 at 2:15 pm

    Hello.

    I recently experimented creating a single page website: [http://www.electromueblestony.com](http://www.electromueblestony.com “Sample page”) and would like add two things:

    1. When user clicks on a menu item, which takes it to an anchor, I would like that item to be the active or selected item on the nav.

    2. I would like to have a smooth slide to the section or anchor.

    Thanks in advanced for your time.

    # May 19, 2013 at 2:37 pm

    a [Javascript](http://www.itnewb.com/tutorial/Creating-the-Smooth-Scroll-Effect-with-JavaScript) only version

    and a [jquery one by @mottie](http://jsfiddle.net/Vk7gB/187/) – that uses the scroll wheel but can be easily adapted to your needs

    # May 19, 2013 at 3:29 pm

    Ok.

    Thanks both, @unasAquila and @atelierbram for replying.

    I’ll take a look a your suggestion.

    Thanks again.

    # May 20, 2013 at 9:48 am

    The one of Mottie is not working.

    I cant see where this: $(‘#nav’).onePageNav(); was defined in the js code.
    i mean the .onePageNav, and so it’s not working when copied out of jsfiddle.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag