New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animating scrollTop #392
Comments
Here you go. Doesn't work in Firefox though. Care to improve? https://github.com/suprMax/ZeptoScroll |
Thanks, I'll take a look. I ended up using a generic JS solution but will perhaps retrofit your plugin. |
Sorry for the duplicate. I would just like to add that the ScrollLeft value is good in addition to ScrollTop. Especially useful for animating for example carousels and photo galleries. |
Zepto only supports CSS transitions for animations. Stuff that isn't CSS therefore can't be animated. I'm going to think about animating |
This is definitely plugin material. |
So... I am having an issue with scrollTop() by itself in latest Firefox 19.0.2 I've built zepto from src to get the latest version of scrollTop(), but in FF scrollTop() is always just 0. Works fine in chrome & safari. I haven't tested in IE yet. window.onscroll = -> So long as you can get an accurate scrollTop() animating the scroll is fairly trivial and I agree and would prefer adding no non CSS animations if at all possible to Zepto but getting accurate scrollTop() scrollLeft() seems more than reasonable. Any help or comment would be greatly appreciated. |
Ok. So I figured out the issue I was having not sure what the solution is though... webkit will report a proper scrollTop() value on |
I also need to animate the |
Uncaught TypeError: $(...).animate is not a function How to solve? |
Do you have zepto included in your document head? On Tuesday, 31 May 2016, fangmingcong notifications@github.com wrote:
|
The following works in jQuery but not zepto. Am I missing something?
The text was updated successfully, but these errors were encountered: