I'm not sure how to call the effect, but can someone point me into a library that would help me do the same effect as this website?

http://www.makr.com

Basically, it moves up the row to the top of the page on mouse click. A code snippet, preferably jQuery, can help to, if there is no such specialized effect library for it.

我不确定我是否需要开始另一个主题,但有谁能帮我用一个小的jQuery片段来实现Makr UI的整体效果吗?

推荐答案

可以使用jQuery设置页面顶部的动画.

$('html, body').animate({
    scrollTop: $(".middle").offset().top
 }, 2000);

See this site: http://papermashup.com/jquery-page-scrolling/

Jquery相关问答推荐

提交表单时运行自定义验证脚本

DataTables - this.api 用于回调函数中的多个表

在正则表达式字符括号中包含连字符?

jQuery 1.4.1 中缺少 JSON 字符串化?

将一个类动态添加到 Bootstrap 的popover容器中

提交前添加 POST 参数

jQuery 动画滚动

jQuery $.browser 是否已弃用?

jquery - 单击事件不适用于动态创建的按钮

如何使用给定的 url 判断图像是否存在?

如何使用 jQuery 或 JavaScript 模拟单击​​按钮的动作?

如何使用 jQuery Select 的插件重置表单?

单击后如何禁用提交按钮?

在完成前一个请求之前中止新的 AJAX 请求

使用 jQuery 获取选定的选项 id

使用 jQuery 拖放防止单击事件

如何通过js打开 Select 文件对话框?

将片段添加到 URL 而不导致重定向?

在jQuery中获取CSS规则的百分比值

jQuery,简单的轮询示例