Use IDs ;) Also, you don't really need an overflow div, as there are no scrollbars to look nasty, and hiding elements outside of the viewport makes scrolling impossible. You simply show the element you want for animations ;)
-- Yehuda On 7/30/07, Randy Walker <[EMAIL PROTECTED]> wrote: > > > I was thinking along the same lines all day yesterday! How would one use > scrollto, or something like it, to scroll content in an overflow div? > Ie.now that I have the alphabet in place, how would I cause a tap on the > alphabet to scroll the overflowed div to the right letter? I don't want > to > use anchors since they seem to always cause the address bar to drop down > for > a minute and then disappear again. Blech! > > > On 7/30/07 3:02 AM, "Yehuda Katz" <[EMAIL PROTECTED]> wrote: > > > > > Hey guys, > > > > I had something of a breakthrough this evening that will make page > > transitions super-smooth. > > > > I was playing with Firebug on iphone, looking through all the various > > properties available (and I believe strongly that there are some > > unexplored avenues) when it hit me. Instead of trying to move elements > > around the page, why not try scrolling the viewport itself. > > > > We already know that scrollTo works just fine, so I tried to see how > > many scrollTo's I could make happen using a simple setTimeout. I was > > amazed. I was able to get super-smooth page transitions using > > scrollTo. I told Joe about this finding, and he was able to duplicate > > it for use in iUI. > > > > Good luck folks! I'm excited, > > > > -- Yehuda Katz > > > > > > > > > > > > > -- Yehuda Katz Web Developer | Procore Technologies (ph) 718.877.1325 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
