When a user scrolls past a div I need it\'s css changed to position:fixed. Much like what is done here: http://imakewebthings.com/jquery-waypoints/shortcuts/sticky-elements/
I noticed in your answer #this
disappears abruptly once you get down to #footer
. I've tweaked your answer to allow for #this
to stick to #footer
and scroll which is a lot smoother.
My demo uses slightly different markup and is a little more verbose so jump over to jsFiddle and check it out.