AngularJS location.hash animation
AngularJS location.hash animation
在angularjs中,我使用的是$location.hash('id_bottom')向下滚动到页面底部。它非常快速和跳跃。有没有一种方法可以使用angularjs很好地向下滚动,即更慢?(动画?)。
如果是的话,有人能告诉我这是如何实现的吗?
在这种情况下,使用jQuery是可以的。如果您正在使用jQuery,请查看这个问题和这个插件的答案。您甚至可以将调用打包到Angular服务中,这样您就可以使用以下内容:
app.controller("...", function($scope, scrollTo) {
...
scrollTo("id_bottom");
...
});
相关文章:
- paper.js animation along a path
- Jquery animation/fadeIn/fadeOut
- IE中不支持JQuery window.location.hash
- Animation cuts off multiple lines of text in <p>
- jquery animation.scrollTop()在mdl链接中不起作用
- IE与Firefox链接(hash与htm5)
- NodeJS:创建一个hash并返回一个函数的值
- 基于URL中的HASH打开引导模式
- 历史推送状态不在独立的 location.hash 或 location.href 中,而是在 Location 对象本
- jQuery if url hash, click event/activate javascript
- window.location.hash = “”;强制在Chrome和Safari上重新加载框架集
- Stop ::-webkit-progress-value animation
- 将 JQuery Animation 转换为 Javascript/CSS3
- page.js使examples/hash与hashbang:true一起工作
- hash在该函数中的重要性
- location.hash总是空的
- 正在尝试将变量传递到window.location.hash
- 从(window.location.hash)中删除哈希
- 在hash更改或导航、angularjs、多个视图上更改部分视图
- AngularJS location.hash animation