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
Post a Comment