Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create the drag and slide effect from this website?

Tags:

jquery

slide

drag

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?

like image 486
p0larBoy Avatar asked May 07 '10 17:05

p0larBoy


3 Answers

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)

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

like image 138
Dänu Avatar answered Oct 23 '22 07:10

Dänu


Overscroll didn't work well for me on the iPad. Here are some more options:

  • iScroll
  • TouchScroll
  • jScrollTouch
like image 2
ʇsәɹoɈ Avatar answered Oct 23 '22 08:10

ʇsәɹoɈ


None of those jquery librarys listed above .. can compare to custom prototype code used in appear.dk The smoot

like image 1
displayName Avatar answered Oct 23 '22 08:10

displayName