I’m trying to achieve an effect that is present in long lists on iOS.
In the contact app there’s a long list of names and there’s a sticky letter showing which is the letter you have scrolled to. When you scroll and the letters overlap the previous is pushed out if the way.
Even with scripting I’m finding it difficult to achieve this effect. How would you do it?
Yeah that’s close to the effect. You really have to see it to know what I mean though. In the contacts section of the phone app when you scroll to the letter B, the letter A becomes unfixed an b pushes A out of the way. I believe these solutions would all snap the headers at a switch point.
It’s the effect of the two letters pushing each other just before they get fixed in place I am trying to achieve.
One thing this solution doesn’t nail is that the javascript scroll event listeners only fire when a scroll animation has ended on iOS which breaks the effect.
Should be able to make something work with different events like touch or simple timers if need be.