A jQuery plugin for iOS style headers
For a project I was working on, I wanted to create a simple feature: as the user scrolls down the page, I wanted the heading for that section to follow the user. Partly so that navigation could follow the user, and partly to remind the user where they were. When getting the user to the next section, the headers needed to change, and a new header follow the user. I pretty much wanted to re-create the effect that headers do on iOS applications, such as contents or playlists.
So, I had a look around to see if there was anything around that would help me do this. There were plenty of tutorials for creating a similar effect. Bootstrap has the affix option, but nothing seemed to be exactly what I wanted. I not only wanted an element to follow a user, I wanted an element to follow the user, and then delegate the behaviour to another element.
So, I put together my solution, and then just continued to play with it. After realising that I could use the solution on multiple projects, I decided to create a jQuery plugin from it. I then thought other people would enjoy it, so I have opened it up to you all