Hey folks,

I wanted to create something similar to 
http://fastflip.googlelabs.com/?source=news, at first it seems like a simple 
side-scroller but there's one feature here I don't know how to get working - 
basically when you click NEXT or PREVIOUS the scroller aligns the left side to 
the image from the next page (or the one that was partly shown). Try resizing 
the window, and clicking NEXT - it'll always scroll to the item that's 
half-shown (on the right). 

How would you go about and do it?

My original idea was to filter an element collection for the first element that 
getPosition().x returns a higher value than the container's width itself... 
This proven to be working, but it get's more complicated when we start thinking 
about the second page... There would be a lot of storing/reading and looping to 
get this working. So it seems like this isn't the way to go...

This is what I have so far - http://www.jsfiddle.net/oskar/nBu2Z/

Any ideas?

Oskar

Reply via email to