javascriptjqueryextendzepto

Extend Zepto.js with a jQuery method? scrollTop()


I'm using Zepto.js on a current project. Zepto doesn't support the scrollTop() method that jQuery has in it.

Is it possible to kind of extend Zepto to work with scrollTop() too?

Update: All I want is to create my own small and simple "animated scroll" function like I have used before with jQuery. See the working example here. However I have no idea how to make the same function work without the scrollTop() function available in Zepto.js.


Solution

  • dont want to steel nobody work so here is the short answer Porting from jQuery to Zepto