Menu icon Foundation

My Posts


My Comments

Dor Zuberi commented on Dor Zuberi's post about 5 years

figured it out, i've added the option "scrolltop : false" to the foundation js init...

Dor Zuberi commented on Dor Zuberi's post about 5 years

I've forgot to add the js function:

 ``` $( document ).ready( function() {
      $( "#menu .top-bar-section li a" ).click( function ( e ){
        e.preventDefault();

        var sectionID = $( this ).attr( "href" );

        $( "html, body" ).animate({ scrollTop: $( sectionID ).offset().top - $( "#menu" ).height() } , 2000);

      } );
    } );

Posts Followed

No Content

Following

    No Content

Followers

My Posts


My Comments

You commented on Dor Zuberi's post about 5 years

figured it out, i've added the option "scrolltop : false" to the foundation js init...

You commented on Dor Zuberi's post about 5 years

I've forgot to add the js function:

 ``` $( document ).ready( function() {
      $( "#menu .top-bar-section li a" ).click( function ( e ){
        e.preventDefault();

        var sectionID = $( this ).attr( "href" );

        $( "html, body" ).animate({ scrollTop: $( sectionID ).offset().top - $( "#menu" ).height() } , 2000);

      } );
    } );

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content