顶部

div1

I become pinned when I am at 10px from the window's top and I'll scroll with the document from that point onwards.
请向下滚动↓

div2

I am "hard" pinned: I am pinned to my initial position, and I stay like that forever.

底部