example page
I have a floating menu that i've built to the left side (green), and i've made it start moving after 200 pixels. and now i need to to stop and not go over the footer (blue) area. any ideas how to make my JS better?
this thing is, I cannot check this on the scroll event, because of the animation going on after i scroll, so it needs to be done someway else.
so how to make the animation stop at the end just before the footer?