質問

How has Facebook built this fixed-on-scroll box (sticky sidebar) on their new prasentation site for the new newsfeed?

enter image description here

I know many of the solutions for doing this but this one is special. The switching between position: relative and position: fixed works at the touchmove event (not special) but it also works on the iOS scroll pan!

I thought that wasn't possible - see here. How did they do this?

役に立ちましたか?

解決

Apparantly it uses the webkit function position: -webkit-sticky;

Explanation is found here.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top