I'm using the scrollToFixed plugin to work with fixed elements on the screen. What I'm trying to do is: I have a div and when my header reaches a certain height I want this div to move along and when it gets close to my footer it stops. The thing is, I can not do this with this plugin. What I'm doing:
$(document).ready(function () {
$('#divBusca').scrollToFixed({
marginTop: 20,
limit: 1725
});
});
Example of what I need to do: Example here