UIPageControl UIScrollView Weather.app iPhone like using javascript on a web app

jojo

New Member
I'm trying to find a Javascript snippet that I can archive the UIScrollView + UIPageControl effect of the iOS using Javascript and CSS3.Generating the page control to a dot to each view and do the switching is very easy, but the complicated part it is to do the elastic movement.
DhtNd.jpg
I would want to do this myself, but it seems to much work to me, like hours of work, tried googling, but I not found anything. I don't like JQuery but the mobile framework doesn't seems to do this.
9alsV.png
If I had to do this by myself, do you guys have any suggested approach? I'm thinking in using a parent div, with a bunch of divs inside for each view. Use the parent with overflow: hidden;and attach event to the parent view and listen to drags and bind to the horizontal scroll offset. This would be a good way? or using css transitions with \[code\]left\[/code\] or translate-x would be more smooth?
 
Back
Top