如何从该网站创建拖放效果? [英] How to create the drag and slide effect from this website?

查看:110
本文介绍了如何从该网站创建拖放效果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果从水平菜单中快速拖动并释放,菜单将自动滑动一段距离.拖动和释放的速度似乎更快.来源-> appear.dk

If you drag and release quickly from the horizontal menu, the menu will auto slide for a distance. It seems to slide more the faster you drag and release. Source ->appear.dk

我如何实现此效果?与某些复杂的公式有关吗?

How do i achieve this effect? Has it got to do with some complex formulaes?

推荐答案

此技术称为动态滚动(您模拟了动能).自从iphone问世以来,这项技术就被大肆宣传,尽管它可以在移动设备上使用,但是却受益匪浅,我将避免在网站内部使用它(像其他所有滚动方式一样)

This technique is called kinetic scrolling (you simulate kinetic energy). Since the dawn of the iphone this technique has been hyped, though it can be used on mobile devices with great benefit, I would refrain from using it inside a website (like all other sorts of scrolling)

但是,这是一个易于使用的jquery插件:您在这里

However, here's an easy to use jquery plugin: Here you go

这篇关于如何从该网站创建拖放效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆