I am currently searching for a useful tutorial or code snippet that demonstrates how to create a popular effect seen frequently on websites. This particular effect involves an element sticking to the top of the window when it reaches a certain point while scrolling. I am unsure of the proper term for this functionality, making it challenging to find more information on how to implement it.
An illustration of this effect can be found in the Twitter Bootstrap Docs. In this example, a bar below the heading and sub-heading sticks to the window as you scroll past it, aiding in page navigation.
Another instance of this functionality can be observed on the Android Developers Pages. The left side navigation element also remains attached to the window during scrolling.
Any help with this matter would be greatly valued.
Thank you in advance & have a great day!