jquery scrollify - Use `move` method for neighbouring section, and `instantMove` for non-neighbouring section -


am looking way animate scrollbar when moving between neighbouring sections. scrollify gives move , instantmove methods need logic of working out whether section move neighbouring or non-neighbouring section.

is there way pass in additional info afterrender method or suggestions achieve goal?

afterrender: function() {   $(".pagination a").on("click", function() {   $.scrollify.move($(this).attr("href"));  }); } 

find example fiddler reference.

here trying navigate between sections based on condition, targeting section should nearest current section. if targeting section nearest scrollify animation added using $.scrollify.move() function, else $.scrollify.instantmove() function executed.

hope helps.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -